Mercury Bugs - mercury
View Issue Details
0000431mercuryBugpublic2017-03-05 23:522017-03-06 15:45
Assigned Tojuliensf 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformMacOSOS X YosemiteOS Version10.10.5
Product Version 
Target VersionFixed in Version 
Summary0000431: Install fails during make install of java grade in rotd-2017-02-22
DescriptionThe installation of Mercury with the default set of grades fails on Mac OS X during installation of the Java grade.
Steps To Reproduce1. sh configure (OK)
2. make PARALLEL=-j6 (OK)
3. make PARALLEL=-j6 install (ERROR; see attached mer_std.err)
TagsNo tags attached.
Attached Files? mer_std.err (4,090) 2017-03-05 23:52

2017-03-06 01:15   
What are the versions of OS X and Java are you using?
2017-03-06 04:45   
I'm using Mac OS X Yosemite 10.10.5

Entering "java -version" in terminal shows this result:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
2017-03-06 08:42   
Ah, the OS version was above -- my phone chose to display it using a tiny font so I couldn't read it :-(

It looks as though we are generating code that is not compatible with Java 1.6 for the uint type.
I think I know what the problem is. (I can confirm that the current ROTD does work with Java 1.8,
so if that's an option, you may wish to use that until a fix is available.)
2017-03-06 15:45   
Fixed in rotd-2017-03-06. (Part of the MLDS->Java code generator was not handling the builtin uint type correctly; the problem would only show in versions of Java that don't support autoboxing.)

Issue History
2017-03-05 23:52dirkzNew Issue
2017-03-05 23:52dirkzFile Added: mer_std.err
2017-03-06 01:15juliensfAssigned To => juliensf
2017-03-06 01:15juliensfStatusnew => feedback
2017-03-06 01:15juliensfNote Added: 0000940
2017-03-06 04:45dirkzNote Added: 0000941
2017-03-06 04:45dirkzStatusfeedback => assigned
2017-03-06 08:42juliensfNote Added: 0000942
2017-03-06 15:45juliensfStatusassigned => resolved
2017-03-06 15:45juliensfResolutionopen => fixed
2017-03-06 15:45juliensfNote Added: 0000943