Hello, * majia gm wrote on Thu, Dec 16, 2010 at 04:21:14PM CET: > I'm compiling gcc-4.4.2 on an Arm similar machine with Java enabled. > Compilation is completed, but a failure comes out when make install, > with the error of '"relink libgvm". > > Do anyone know the reason of the failure? > I really appreciate your support.
Can you please open up a bugzilla entry with all the details asked for in http://gcc.gnu.org/bugs/ ? Esp. how you invoke configure, make, make install exactly. Thanks. It would be great if you could retry with 4.5.2 or trunk (or a nightly snapshot) to see whether the behavior is still present. This might be one of those issues where --with-sysroot is missing, or that is fixed by newer libtool, or both; I can't tell yet. Thanks, Ralf [...] > /bin/sh ./libtool --mode=install /usr/bin/install -c 'libjvm.la' > '/home/vhome/FengYi/pxx/install/usr/lib/gcj-4.4.2-10/libjvm.la' > libtool: install: warning: relinking `libjvm.la' > libtool: install: (cd > /home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava; > /bin/sh > /home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/libtool > --tag CXX --mode=relink unicore32-linux-c++ -fno-rtti > -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum > -D_FILE_OFFSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE > -DPREFIX=\"/home/vhome/FengYi/pxx/install/usr\" > -DTOOLEXECLIBDIR=\"/home/vhome/FengYi/pxx/install/usr/lib\" > -DJAVA_HOME=\"/home/vhome/FengYi/pxx/install/usr\" > -DBOOT_CLASS_PATH=\"/home/vhome/FengYi/pxx/install/usr/share/java/libgcj-4.4.2.jar\" > -DJAVA_EXT_DIRS=\"/home/vhome/FengYi/pxx/install/usr/share/java/ext\" > -DGCJ_ENDORSED_DIRS=\"/home/vhome/FengYi/pxx/install/usr/share/java/gcj-endorsed\" > -DGCJ_VERSIONED_LIBDIR=\"/home/vhome/FengYi/pxx/install/usr/lib/gcj-4.4.2-10\" > -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\" > -DLIBGCJ_DEFAULT_DATABASE=\"/home/vhome/FengYi/pxx/install/usr/lib/gcj-4.4.2-10/classmap.db\" > -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.4.2-10/classmap.db\" -g > -O2 -D_GNU_SOURCE -o libjvm.la -rpath > /home/vhome/FengYi/pxx/install/usr/lib/gcj-4.4.2-10 -avoid-version > -Wl,-Bsymbolic-functions jni-libjvm.lo > -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs > libgcj.la ) > libtool: relink: warning: > `/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/libstdc++.la' > seems to be moved > libtool: relink: unicore32-linux-c++ -shared -nostdlib > /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crti.o > /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtbeginS.o > .libs/jni-libjvm.o -Wl,-rpath > -Wl,/home/vhome/FengYi/pxx/install/usr/lib -Wl,-rpath > -Wl,/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib > -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava/.libs > -L/home/vhome/FengYi/pxx/install/usr/lib -lgcj > -L/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava > -L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib > -lpthread -lrt -ldl > -L/home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2 > -L/home/vhome/FengYi/pxx/build_cross/unicore32-linux/lib -lstdc++ -lm > -lc -lgcc_s > /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/crtendS.o > /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/lib/crtn.o > -Wl,-Bsymbolic-functions -Wl,-soname -Wl,libjvm.so -o > .libs/libjvm.so > /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/bin/ld: > skipping incompatible /lib/libpthread.so.0 when searching for > /lib/libpthread.so.0 > /home/vhome/FengYi/pxx/build_cross/lib/gcc/unicore32-linux/4.4.2/../../../../unicore32-linux/bin/ld: > cannot find /lib/libpthread.so.0 > collect2: ld returned 1 exit status > libtool: install: error: relink `libjvm.la' with the above command > before installing it > make[4]: *** [install-dbexecLTLIBRARIES] Error 1 > make[4]: Leaving directory > `/home/vhome/FengYi/pxx/build_native/build_gcc/unicore32-linux/libjava'