2024-04-19 07:18 AEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000423mercuryBugpublic2016-10-04 21:12
Reporterlpimmes 
Assigned Tojuliensf 
PriorityurgentSeveritycrashReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformDell Precision Laptop xeonOSUbuntuOS Version16.04
Product Version 
Target VersionFixed in Version 
Summary0000423: java grade fails on installation for Mercury 14.01.1
Description...
 79 Making Mercury/javas/jmercury/thread__semaphore.java
 80 Making Java class files
 81 Note: Some input files use unchecked or unsafe operations.
 82 Note: Recompile with -Xlint:unchecked for details.
 83 Making mer_std.jar
 84 ** Error making `mer_std.jar'.
 85 Error: unknown result code from system command
 86 sh: 1: jar: not found
 87 /tmp/mmake.6uTTad:1750: recipe for target 'libmer_std.install' failed
 88 make[2]: *** [libmer_std.install] Error 1
 89 make[2]: Leaving directory '/opt/mercury-srcdist-14.01.1/install_grade_dir.java/library'
 90 To clean up from failed install, remove /opt/mercury-srcdist-14.01.1/install_grade_dir.java
 91 /tmp/mmake.q2lFmI:1412: recipe for target 'install_grades' failed
 92 make[1]: *** [install_grades] Error 1
 93 make[1]: Leaving directory '/opt/mercury-srcdist-14.01.1'
 94 Makefile:37: recipe for target 'install' failed
 95 make: *** [install] Error 2
 96 luke@luke-Precision-7710:/opt/mercury-srcdist-14.01.1$
Steps To Reproduce/opt/mercury-srcdist-14.01.1$ ./configure --enable-libgrades=hlc.gc,none.gc,none.gc.stseg,java
...
  $ make
...
   $ sudo make install
<error above>
Additional Information$ uname -a
Linux luke-Precision-7710 4.4.0-38-generic 0000057-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

luke@luke-Precision-7710:/opt/mercury-srcdist-14.01.1$ which mmc
/usr/local/mercury-14.01.1/bin/mmc

Same mercury version install java OK on macBookPro.

Any help would be appreciated; thanks.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0000927

juliensf (administrator)

Are the Java development tools correctly installed and in your PATH? It looks like it can't find
the archive tool ('jar'),

From below:

    sh: 1: jar: not found

~0000928

lpimmes (reporter)

luke@luke-Precision-7710:/opt/jdk1.8.0_101$ which jar
/opt/jdk1.8.0_101/bin/jar

'jar' seems to be found.

~0000929

juliensf (administrator)

I take it you are using the official JDK release from Oracle? I've tried reproducing the problem you encountered with on Ubuntu 16.04 and OpenJDK, but the install completed successfully with that.

~0000930

lpimmes (reporter)

Using open JDK:

luke@luke-Precision-7710:~$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
luke@luke-Precision-7710:~$ which mmc
/usr/local/mercury-14.01.1/bin/mmc

java grades work in mercury.
Thanks.

~0000931

juliensf (administrator)

I've tried this with the Oracle JDK (version 8u101) as well, and couldn't reproduce the problem using that.
+Notes

-Issue History
Date Modified Username Field Change
2016-10-03 16:21 lpimmes New Issue
2016-10-03 16:37 juliensf Assigned To => juliensf
2016-10-03 16:37 juliensf Status new => feedback
2016-10-03 16:37 juliensf Note Added: 0000927
2016-10-03 18:03 lpimmes Note Added: 0000928
2016-10-03 18:03 lpimmes Status feedback => assigned
2016-10-04 00:26 juliensf Note Added: 0000929
2016-10-04 06:08 lpimmes Note Added: 0000930
2016-10-04 09:41 juliensf Note Added: 0000931
2016-10-04 21:12 juliensf Status assigned => closed
2016-10-04 21:12 juliensf Resolution open => unable to reproduce
+Issue History