Bug 35257 - jar: internal error: java.lang.NullPointerException bootstrapping libjava
Summary: jar: internal error: java.lang.NullPointerException bootstrapping libjava
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.3.0
: P3 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-19 23:42 UTC by Gerald Pfeifer
Modified: 2008-06-20 11:02 UTC (History)
5 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
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 Gerald Pfeifer 2008-02-19 23:42:39 UTC
Building on openSUSE 11.0 Alpha2 (as well as Alpha1) I have been seeing
the following with a plain ./configure --prefix=... (omitting those dozen
fancy options that the distros usually employ).

libtool: compile:  /tmp/OBJ-0219-2155/./gcc/xgcc -shared-libgcc -B/tmp/OBJ-0219-2155/./gcc -nostdinc++ -L/tmp/OBJ-0219-2155/x86_64-unknown-linux-gnu/32/libstdc++-v3/src -L/tmp/OBJ-0219-2155/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -B/suse/gp/gcc-x86_64/x86_64-unknown-linux-gnu/bin/ -B/suse/gp/gcc-x86_64/x86_64-unknown-linux-gnu/lib/ -isystem /suse/gp/gcc-x86_64/x86_64-unknown-linux-gnu/include -isystem /suse/gp/gcc-x86_64/x86_64-unknown-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H -I. -I/mounts/users-space/gp/gcc/trunk/libjava -I./include -I./gcj -I/mounts/users-space/gp/gcc/trunk/libjava -Iinclude -I/mounts/users-space/gp/gcc/trunk/libjava/include -I/mounts/users-space/gp/gcc/trunk/libjava/classpath/include -Iclasspath/include -I/mounts/users-space/gp/gcc/trunk/libjava/classpath/native/fdlibm -I/mounts/users-space/gp/gcc/trunk/libjava/../boehm-gc/include -I../boehm-gc/include -I/mounts/users-space/gp/gcc/trunk/libjava/libltdl -I/mounts/users-space/gp/gcc/trunk/libjava/libltdl -I/mounts/users-space/gp/gcc/trunk/libjava/.././libjava/../gcc -I/mounts/users-space/gp/gcc/trunk/libjava/../zlib -I/mounts/users-space/gp/gcc/trunk/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 -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/suse/gp/gcc-x86_64\" -DTOOLEXECLIBDIR=\"/suse/gp/gcc-x86_64/lib/../lib\" -DJAVA_HOME=\"/suse/gp/gcc-x86_64\" -DBOOT_CLASS_PATH=\"/suse/gp/gcc-x86_64/share/java/libgcj-4.4.0.jar\" -DJAVA_EXT_DIRS=\"/suse/gp/gcc-x86_64/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/suse/gp/gcc-x86_64/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/suse/gp/gcc-x86_64/lib/../lib/gcj-4.4.0-9\" -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\" -DLIBGCJ_DEFAULT_DATABASE=\"/suse/gp/gcc-x86_64/lib/../lib/gcj-4.4.0-9/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.4.0/classmap.db\" -g -O2 -D_GNU_SOURCE -m32 -MT posix-threads.lo -MD -MP -MF .deps/posix-threads.Tpo -c /mounts/users-space/gp/gcc/trunk/libjava/posix-threads.cc -o posix-threads.o >/dev/null 2>&1
here=`pwd`; cd /mounts/users-space/gp/gcc/trunk/libjava/classpath/lib; \
        find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \
        gjar -cfM@ $here/libgcj-4.4.0.jar
jar: internal error:
java.lang.NullPointerException: man
        at java.util.jar.JarOutputStream.<init>(JarOutputStream.java:43)
        at  gnu.classpath.tools.jar.Creator.writeCommandLineEntries(Creator.java:225)
        at gnu.classpath.tools.jar.Creator.run(Creator.java:246)
        at gnu.classpath.tools.jar.Main.run(Main.java:276)
        at gnu.classpath.tools.jar.Main.main(Main.java:284)
gmake[5]: *** [libgcj-4.4.0.jar] Error 1
gmake[5]: Leaving directory `/tmp/OBJ-0219-2155/x86_64-unknown-linux-gnu/32/libjava'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/tmp/OBJ-0219-2155/x86_64-unknown-linux-gnu/32/libjava'
gmake[3]: *** [multi-do] Error 1
gmake[3]: Leaving directory `/tmp/OBJ-0219-2155/x86_64-unknown-linux-gnu/libjava'
gmake[2]: *** [all-multi] Error 2
gmake[2]: Leaving directory `/tmp/OBJ-0219-2155/x86_64-unknown-linux-gnu/libjava'
gmake[1]: *** [all-target-libjava] Error 2
gmake[1]: Leaving directory `/tmp/OBJ-0219-2155'
gmake: *** [bootstrap-lean] Error 2
Comment 1 Gerald Pfeifer 2008-02-20 00:01:38 UTC
Sorry, I wasn't clear enough here -- this also happens with 4.3.0.
Comment 2 Tom Tromey 2008-02-20 21:10:49 UTC
Based on the command line it looks like your system gjar is crashing.
Is that the case?
Comment 3 Gerald Pfeifer 2008-03-10 01:35:39 UTC
(In reply to comment #2)
> Based on the command line it looks like your system gjar is crashing.
> Is that the case?

Good point.  Yes, that seems to be the case, and I asked Richi about it.

Comment 4 Gerald Pfeifer 2008-04-13 10:34:44 UTC
Seems it was an openSUSE-specific issue that no longer reproduces with
the current codebase, thus closing this.
Comment 5 Andrew Pinski 2008-06-19 12:09:58 UTC
*** Bug 36576 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Pinski 2008-06-19 16:02:48 UTC
*** Bug 36576 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Pinski 2008-06-20 11:02:24 UTC
*** Bug 36576 has been marked as a duplicate of this bug. ***