Bug 70165 - build failure in libgcj-6.0.0.jar
Summary: build failure in libgcj-6.0.0.jar
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 6.0
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 16:11 UTC by Tom de Vries
Modified: 2016-11-05 16:38 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2016-03-10 16:11:04 UTC
Once in a while, I run into this error while building gcc:
...
make[5]: *** [libgcj-6.0.0.jar] Error 1
make[5]: Leaving directory `build/x86_64-pc-linux-gnu/32/libjava'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `build/x86_64-pc-linux-gnu/32/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `build/x86_64-pc-linux-gnu/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `build/x86_64-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: *** Waiting for unfinished jobs....
...

The command producing the jar file seems to be:
...
here=`pwd`; \
  cd src/libjava/classpath/lib; \
  find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \
  build/x86_64-pc-linu-gnu/libjava/scripts/jar -cfM@ $here/libgcj-6.0.0.jar
...

I cannot reproduce the failure on the command line.

It's hard to say what the cause of the failure is, given that the error is silent, AFAICT.

Actually, it seems that the complete jar file is produced correctly (pkgdiff with jar file from finish build reports 'result: UNCHANGED', and size is the same).
Comment 1 Tom de Vries 2016-03-10 17:06:52 UTC
Something like this would be helpful, but that's bash, and the script is sh:
...
index e9cb9f5..1d13056 100644
--- a/libjava/scripts/jar.in
+++ b/libjava/scripts/jar.in
@@ -386,6 +386,7 @@ while test -n "$commands"; do
 done
 
 set -e
+trap '$progname: $LINENO: command returns $?' ERR
 
 case "X$jarfile" in
   X)
...
Comment 2 Andrew Pinski 2016-11-05 16:38:14 UTC
libgcj/libjava has been removed so closing as won't fix