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).
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) ...
libgcj/libjava has been removed so closing as won't fix