This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] fix bootstrap in libjava


Tom Tromey writes:
> >>>>> "Matthias" == Matthias Klose <doko@cs.tu-berlin.de> writes:
> 
> >> What platform is this?  This is a strange failure... I don't see it,
> >> and the code is valid (though weird).
> 
> Matthias> i486-linux-gnu, binutils-2.16.1, glibc-2.3.2, current Debian
> Matthias> unstable.
> 
> I backed out this change, update all of gcc, and did a clean build,
> and I still don't see the bug :-(
> 
> Could you post the command line used to compile java.awt.im to
> bytecode?  And to native?  I see:
> 
> 
> /home/tromey/gnu/Trunk/build/gcc/gcj -B/home/tromey/gnu/Trunk/build/i686-pc-linux-gnu/libjava/ -B/home/tromey/gnu/Trunk/build/gcc/ -Wno-deprecated --encoding=UTF-8 --bootclasspath '' --classpath ..:/home/tromey/gnu/Trunk/gcc/libjava:/home/tromey/gnu/Trunk/build/i686-pc-linux-gnu/libjava:../../../../../gcc/libjava/classpath:../../../../../gcc/libjava/classpath/external/w3c_dom:../../../../../gcc/libjava/classpath/external/sax:.: -C -d . -MD -MF lists/java-awt-im.deps -MT lists/java-awt-im.stamp @lists/java-awt-im.list
> 
> /home/tromey/gnu/Trunk/build/gcc/gcj -B/home/tromey/gnu/Trunk/build/i686-pc-linux-gnu/libjava/ -B/home/tromey/gnu/Trunk/build/gcc/ -ffloat-store -fclasspath= -fbootclasspath=/home/tromey/gnu/Trunk/build/i686-pc-linux-gnu/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -c -MT java/awt/im.lo -MD -MP -MF java/awt/im.deps @java/awt/im.list -fPIC -o java/awt/.libs/im.o
> 
> 
> I tried running the latter with '-O2' as well, and that also worked
> fine.

just rebuilt, I still get:

/home/packages/gcc/snap/gcc-snapshot-20050719/build/gcc/gcj -B/home/packages/gcc/snap/gcc-snapshot-20050719/build/i486-linux-gnu/libjava/ -B/home/packages/gcc/snap/gcc-snapshot-20050719/build/gcc/ -Wno-deprecated --encoding=UTF-8 --bootclasspath '' --classpath ..:/home/packages/gcc/snap/gcc-snapshot-20050719/src/libjava:/home/packages/gcc/snap/gcc-snapshot-20050719/build/i486-linux-gnu/libjava:../../../../../src/libjava/classpath:../../../../../src/libjava/classpath/external/w3c_dom:../../../../../src/libjava/classpath/external/sax:.: -C -d . -MD -MF lists/java-awt-im.deps -MT lists/java-awt-im.stamp @lists/java-awt-im.list
../../../../../src/libjava/classpath/java/awt/im/InputContext.java: In class 'java.awt.im.InputContext':
../../../../../src/libjava/classpath/java/awt/im/InputContext.java: In method '<clinit>()':
../../../../../src/libjava/classpath/java/awt/im/InputContext.java:119: error: variable 'line' may not have been initialized
../../../../../src/libjava/classpath/java/awt/im/InputContext.java:128: error: variable 'in' may not have been initialized
make[7]: *** [lists/java-awt-im.stamp] Error 1
make[7]: Leaving directory `/home/packages/gcc/snap/gcc-snapshot-20050719/build/i486-linux-gnu/libjava/classpath/lib'
make[6]: *** [compile-classes] Error 2

Native compilation doesn't work, because java/awt/im.list doesn't yet exist.

Configured with: ../src/configure -v --enable-languages=c,c++,java --prefix=/usr/lib/gcc-snapshot --enable-shared --with-system-zlib --disable-nls --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --with-java-home=/usr/lib/gcc-snapshot/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --disable-werror i486-linux-gnu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]