problem with GCJ while running java code

Cesc ffileppo@alice.it
Mon Apr 14 13:37:00 GMT 2008


Andrew Haley wrote:
>>> Ah, your gcc target and your as target don't match. arm-linux-gnueabi and
> arm-linux-uclibcgnueabi; this is bad. It's really important to configure
> binutils and gcc for the *same( target.
>> Anyway, you should be able to get it to work by making sure your PATH is
> set
> correctly when builfing for ARM.
>> Andrew.
>>
Hi, I recompiled gcc target as "arm-linux-uclibcgnueabi" 
Now when running (with correct as in PATH):
./arm-linux-uclibcgnueabi-gcj --verbose -save-temps -oecj1
--main=org.eclipse.jdt.internal.compiler.batch.GCCMain ecj.jar
I get this error:
Using built-in specs.
Reading specs from
/root/tmp/f8/install/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: arm-linux-uclibcgnueabi
Configured with: ../configure --prefix=/root/tmp/f8/install
--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
Thread model: posix
gcc version 4.4.0 20080411 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1'
'-fbootclasspath=./:/root/tmp/f8/install/share/java/libgcj-4.4.0.jar' '-g1'
'-shared-libgcc'
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1'
'-fbootclasspath=./:/root/tmp/f8/install/share/java/libgcj-4.4.0.jar' '-g1'
'-shared-libgcc'
 /root/tmp/f8/install/libexec/gcc/arm-linux-uclibcgnueabi/4.4.0/jc1 ecj.jar
-fuse-divide-subroutine -fcheck-references -fuse-boehm-gc
-fkeep-inline-functions -quiet -dumpbase ecj.jar -auxbase ecj -g1 -version
-fbootclasspath=./:/root/tmp/f8/install/share/java/libgcj-4.4.0.jar
-faux-classpath ecj.zip -o ecj.s
GNU Java (GCC) version 4.4.0 20080411 (experimental)
(arm-linux-uclibcgnueabi)
 compiled by GNU C version 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2), GMP version 4.2.1, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
 ecj.zip/ (zip)
 ./ (system)
 /root/tmp/f8/install/share/java/libgcj-4.4.0.jar/ (system) (zip)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1'
'-fbootclasspath=./:/root/tmp/f8/install/share/java/libgcj-4.4.0.jar' '-g1'
'-shared-libgcc'
 as -meabi=4 -o ecj.o ecj.s
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1'
'-fbootclasspath=./:/root/tmp/f8/install/share/java/libgcj-4.4.0.jar' '-g1'
'-shared-libgcc'
 /root/tmp/f8/install/libexec/gcc/arm-linux-uclibcgnueabi/4.4.0/jvgenmain
org.eclipse.jdt.internal.compiler.batch.GCCMainmain
org.eclipse.jdt.internal.compiler.batch.GCCMainmain.i
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1' '-g1' '-shared-libgcc'
 /root/tmp/f8/install/libexec/gcc/arm-linux-uclibcgnueabi/4.4.0/cc1
org.eclipse.jdt.internal.compiler.batch.GCCMainmain.i -quiet -dumpbase
org.eclipse.jdt.internal.compiler.batch.GCCMainmain.c -g1 -version
-fdollars-in-identifiers -o
org.eclipse.jdt.internal.compiler.batch.GCCMainmain.s
GNU C (GCC) version 4.4.0 20080411 (experimental) (arm-linux-uclibcgnueabi)
 compiled by GNU C version 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2), GMP version 4.2.1, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 838e9f0a7618d27fee578c408a5f784d
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1' '-g1' '-shared-libgcc'
 as -meabi=4 -o org.eclipse.jdt.internal.compiler.batch.GCCMainmain.o
org.eclipse.jdt.internal.compiler.batch.GCCMainmain.s
COMPILER_PATH=/root/tmp/f8/install/libexec/gcc/arm-linux-uclibcgnueabi/4.4.0/:/root/tmp/f8/install/libexec/gcc/arm-linux-uclibcgnueabi/4.4.0/:/root/tmp/f8/install/libexec/gcc/arm-linux-uclibcgnueabi/:/root/tmp/f8/install/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/:/root/tmp/f8/install/lib/gcc/arm-linux-uclibcgnueabi/
LIBRARY_PATH=/root/tmp/f8/install/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/:/root/tmp/f8/install/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/../../../../arm-linux-uclibcgnueabi/lib/:/mnt/new/lib/:/mnt/new/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-oecj1' '-g1' '-shared-libgcc'
 /root/tmp/f8/install/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/install/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/crtbegin.o
-L/root/tmp/f8/install/lib/gcc/arm-linux-uclibcgnueabi/4.4.0
-L/root/tmp/f8/install/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/install/lib/gcc/arm-linux-uclibcgnueabi/4.4.0/crtend.o
/mnt/new/usr/lib/crtn.o
collect2: cannot find 'ld'
Francesco
-- 
View this message in context: http://www.nabble.com/problem-with-GCJ-while-running-java-code-tp15455624p16677663.html
Sent from the gcc - java mailing list archive at Nabble.com.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /