problem with GCJ while running java code

Cesc ffileppo@alice.it
Mon Apr 14 17:27:00 GMT 2008




Andrew Haley wrote:
> 
> and with correct ld in path?  How come you have a binutils
> install directory with as but no ld, anyway?
> 

Yeah ld is also in the same PATH:

which as

/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/as

which ld

/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/ld

That's very strange...

I've tried adding to PATH arm-linux-uclibcgnueabi-ld (it is placed in
/root/tmp/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-ld)...Now
ld seems to be found (!!!?) but I get the following error:

........
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1'  '-g1' '-shared-libgcc'
 /root/tmp/f8/newinstall/libexec/gcc/arm-linux-uclibcgnueabi/4.4.0/collect2
--sysroot=/mnt/new --eh-frame-hdr -dynamic-linker /lib/ld-uClibc.so.0 -X -m
armelf_linux_eabi -oecj1 /mnt/new/usr/lib/crt1.o /mnt/new/usr/lib/crti.o
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/crtbegin.o
-L/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0
-L/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib
-L/mnt/new/lib -L/mnt/new/usr/lib
org.eclipse.jdt.internal.compiler.batch.GCCMainmain.o ecj.o -lgcc_s -lgcc
-lgcj -lm -lpthread -lrt -ldl -lgcc_s -lgcc -lstdc++ -lc -lgcc_s -lgcc
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/crtend.o
/mnt/new/usr/lib/crtn.o
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `open64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `__ctype_get_mb_cur_max'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `mmap64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `mbrtowc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `towupper'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `__ctype_b_loc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `towlower'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wmemcmp'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `btowc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `__rawmemchr'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wcrtomb'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wmemcpy'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wctob'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `__assert_fail'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `getrlimit64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `ungetwc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wmemmove'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wmemchr'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wctype'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wmemset'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `__ctype_tolower_loc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `fopen64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `putwc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `__lxstat64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `readdir64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `lseek64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `__ctype_toupper_loc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wcslen'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wcscoll'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wcsftime'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `__getdelim'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `wcsxfrm'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `__fxstat64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `getwc'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `ftruncate64'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libstdc++.so:
undefined reference to `iswctype'
/root/tmp/f8/newinstall/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.so:
undefined reference to `__xstat64'
collect2: ld returned 1 exit status




Binutils install directory seems to be ok, here is configure output:

root@portatile-hp:~/tmp/trunk/new# ../configure
--prefix=/root/tmp/f8/newinstall --with-sysroot=/mnt/new --disable-libssp
--disable-libgomp --disable-libmudflap --enable-libgcj --disable-bootstrap
--disable-multilib --disable-static --disable-sjlj-exceptions
--target=arm-linux-uclibcgnueabi --enable-languages=c,c++,java
--with-build-time-tools=/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
--disable-libstdcxx-debug
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... arm-unknown-linux-uclibcgnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1
$$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... yes
*** This configuration is not supported in the following subdirectories:
     target-libada gnattools target-libgfortran target-libobjc
target-libgomp target-libmudflap target-libssp
    (Any other directories should still work fine.)
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for cc in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for gcc in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
yes
checking for c++ in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
yes
checking for gcc in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
yes
checking for gcj in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for arm-linux-uclibcgnueabi-gcj... no
checking for gfortran in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for arm-linux-uclibcgnueabi-gfortran... no
checking for ar in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/ar
checking for as in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/as
checking for dlltool in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for dlltool... no
checking for dlltool in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for arm-linux-uclibcgnueabi-dlltool... no
checking for ld in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/ld
checking for lipo in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for lipo... no
checking for lipo in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for arm-linux-uclibcgnueabi-lipo... no
checking for nm in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/nm
checking for objdump in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/objdump
checking for ranlib in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/ranlib
checking for strip in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin/strip
checking for windres in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for windres... no
checking for windres in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for arm-linux-uclibcgnueabi-windres... no
checking for windmc in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for windmc... no
checking for windmc in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin...
no
checking for arm-linux-uclibcgnueabi-windmc... no
checking where to find the target ar... pre-installed in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
checking where to find the target as... pre-installed in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... pre-installed
checking where to find the target ld... pre-installed in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
checking where to find the target objdump... pre-installed in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
checking where to find the target ranlib... pre-installed in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
checking where to find the target strip... pre-installed in
/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
checking where to find the target windres... pre-installed
checking where to find the target windmc... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile


Thanks again

Francesco



-- 
View this message in context: http://www.nabble.com/problem-with-GCJ-while-running-java-code-tp15455624p16679914.html
Sent from the gcc - java mailing list archive at Nabble.com.



More information about the Java mailing list