[Bug java/17265] [4.0 Regression] Libjava doesn't build

ebotcazou at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Oct 9 16:09:00 GMT 2004


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-10-09 16:09 -------
Reverting the change in class.c lets the library build, but only to stumble upon
another problem:

/opt/build/eric/gcc/gcc/gcj -B/opt/build/eric/gcc/gcc/
-B/opt/build/eric/local/gcc-4.0/sparc-sun-solaris2.8/bin/
-B/opt/build/eric/local/gcc-4.0/sparc-sun-solaris2.8/lib/ -isystem
/opt/build/eric/local/gcc-4.0/sparc-sun-solaris2.8/include -isystem
/opt/build/eric/local/gcc-4.0/sparc-sun-solaris2.8/sys-include -m64 -g -O2 -m64
-m64 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc 
-L/opt/build/eric/gcc/sparc-sun-solaris2.8/sparcv9/libjava
-L/opt/build/eric/gcc/sparc-sun-solaris2.8/sparcv9/libjava/.libs
./.libs/libgcj.so
-L/opt/build/eric/gcc/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src
-L/opt/build/eric/gcc/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs
-lpthread -lrt -ldl -L/opt/build/eric/gcc/gcc/sparcv9 -L/opt/build/eric/gcc/gcc
-L/usr/ccs/bin/sparcv9 -L/usr/ccs/bin -L/usr/ccs/lib/sparcv9 -L/usr/ccs/lib
-L/lib/sparcv9 -L/usr/lib/sparcv9 -lgcc_s_sparcv9 -lgcc_s_sparcv9 -Wl,-R
-Wl,/opt/build/eric/local/gcc-4.0/lib/sparcv9
ld: warning: file
/opt/build/eric/gcc/sparc-sun-solaris2.8/sparcv9/libjava/.libs/libgcj.so: linked
to ./.libs/libgcj.so: attempted multiple inclusion of file
ld: warning: file
/opt/build/eric/gcc/sparc-sun-solaris2.8/sparcv9/libjava/.libs/libgcj.so: linked
to ./.libs/libgcj.so: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
java::lang::Class::isPrimitive()    ./.libs/libgcj.so
java::lang::Class::getSuperclass()   ./.libs/libgcj.so
_Jv_InitClass                       ./.libs/libgcj.so
java::lang::Class::isArray()        ./.libs/libgcj.so
java::lang::Class::getComponentType()   ./.libs/libgcj.so
java::lang::Class::isInterface()    ./.libs/libgcj.so
__gxx_personality_v0                ./.libs/libgcj.so
java::lang::Class::getModifiers()   ./.libs/libgcj.so
ld: fatal: Symbol referencing errors. No output written to .libs/jv-convert
collect2: ld returned 1 exit status
gmake[4]: *** [jv-convert] Error 1

I'll try to revert the whole patch tomorrow.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17265



More information about the Java-prs mailing list