http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53400
Bug #: 53400 Summary: java build failure with NullPointerException Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassig...@gcc.gnu.org ReportedBy: j...@worldlinc.net Compiler: gcc-4.6.1, building gcc-4.6.3 java with options /usr/local/gcc-4.6.3/configure --prefix=/usr --enable-languages=java --disable-bootstrap (I used gcc 4.6.1 to build and test gcc 4.6.3 just recently. disable-bootstrap was used to save time, not going to waste time rebuilding gcc three times just to have java crash. That's the reason why I didn't build gcc-4.6.1 with java. java crashes and the build doesn't finish) Original system java: gcj -v Using built-in specs. Reading specs from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/libgcj.spec rename spec startfile to startfileorig rename spec lib to liborig Target: i586-manbo-linux-gnu Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --with-bugurl=https://qa.mandriva.com/ --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --build=i586-manbo-linux-gnu --host=i586-manbo-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-objc-gc --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror --with-ppl --with-cloog --with-python-dir=/lib/python2.6/site-packages Thread model: posix gcc version 4.4.1 (GCC) System: i686-pc-linux-gnu Options: Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.6.1/lto-wrapper Target: i686-pc-linux-gnu Configured with: /usr/local/gcc-4.6.1/configure --prefix=/usr --enable-languages=c,c++,fortran,lto,objc,ada Thread model: posix gcc version 4.6.1 (GCC) compiler/build messages: libtool: compile: /home/dilbert/bld463/./gcc/xgcc -shared-libgcc -B/home/dilbert/bld463/./gcc -nostdinc++ -L/home/dilbert/bld463/i686-pc-linux-gnu/libstdc++-v3/src -L/home/dilbert/bld463/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/usr/local/gcc-4.6.3/libjava -I./include -I./gcj -I/usr/local/gcc-4.6.3/libjava -Iinclude -I/usr/local/gcc-4.6.3/libjava/include -I/usr/local/gcc-4.6.3/libjava/classpath/include -Iclasspath/include -I/usr/local/gcc-4.6.3/libjava/classpath/native/fdlibm -I/usr/local/gcc-4.6.3/libjava/../boehm-gc/include -I../boehm-gc/include -I/usr/local/gcc-4.6.3/libjava/libltdl -I/usr/local/gcc-4.6.3/libjava/libltdl -I/usr/local/gcc-4.6.3/libjava/.././libjava/../gcc -I/usr/local/gcc-4.6.3/libjava/../zlib -I/usr/local/gcc-4.6.3/libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr\" -DTOOLEXECLIBDIR=\"/usr/lib\" -DJAVA_HOME=\"/usr\" -DBOOT_CLASS_PATH=\"/usr/share/java/libgcj-4.6.3.jar\" -DJAVA_EXT_DIRS=\"/usr/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/usr/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/usr/lib/gcj-4.6.3-12\" -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\" -DLIBGCJ_DEFAULT_DATABASE=\"/usr/lib/gcj-4.6.3-12/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.6.3-12/classmap.db\" -g -O2 -D_GNU_SOURCE -MT posix-threads.lo -MD -MP -MF .deps/posix-threads.Tpo -c /usr/local/gcc-4.6.3/libjava/posix-threads.cc -o posix-threads.o >/dev/null 2>&1 here=`pwd`; cd /usr/local/gcc-4.6.3/libjava/classpath/lib; \ find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \ gjar -cfM@ $here/libgcj-4.6.3.jar jar: internal error: java.lang.NullPointerException at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.10) at gnu.classpath.tools.jar.Creator.run(libgcj-tools.so.10) at gnu.classpath.tools.jar.Main.run(libgcj-tools.so.10) at gnu.classpath.tools.jar.Main.main(libgcj-tools.so.10) make[3]: *** [libgcj-4.6.3.jar] Error 1 make[3]: Leaving directory `/home/dilbert/bld463/i686-pc-linux-gnu/libjava' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/dilbert/bld463/i686-pc-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/home/dilbert/bld463' make: *** [all] Error 2 The above error message has been given for trying to build java 4.6.1, 4.6.3, and possibly 4.4.x.