Cross Compiler PowerPC603E

cabaton_david@yahoo.fr cabaton_david@yahoo.fr
Tue Jan 16 22:42:00 GMT 2007


Sorry I forgot to give you an important information.

The first time I tried to compile a HelloWord :

$ ./powerpc-603-linux-gnu-gcj --main=Test -o Test 
/home/obelix/HelloWorld/Test.java

./../lib/gcc-lib/powerpc-603-linux-gnu/3.2.3/../../../../powerpc-603-linux-gnu/lib/libgcj.so: 
undefined reference to `dlopen'
collect2: ld returned 1 exit status

after some research on the web I rename the specs file to libcgj.spec


$cp 
opt/crosstool/gcc-3.2.3-glibc-2.3.2/powerpc-603-linux-gnu/lib/gcc-lib/powerpc-603-linux-gnu/3.2.3/specs 
/opt/crosstool/gcc-3.2.3-glibc-2.3.2/powerpc-603-linux-gnu/lib/gcc-lib/powerpc-603-linux-gnu/3.2.3/libgcj.spec

and now I have this error :
$ ./powerpc-603-linux-gnu-gcj --main=Test -o Test 
/home/dcabaton/HelloWorld/Test.java
/tmp/ccQrtW1D.o(.text+0x1e): In function `main':
: undefined reference to `_Jv_Compiler_Properties'
/tmp/ccQrtW1D.o(.text+0x2a): In function `main':
: undefined reference to `_Jv_Compiler_Properties'
/tmp/ccQrtW1D.o(.text+0x40): In function `main':
: undefined reference to `JvRunMain'
/tmp/ccYUxC7n.o(.text+0x20): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `_Jv_InitClass'
/tmp/ccYUxC7n.o(.text+0x26): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `java::lang::System::class$'
/tmp/ccYUxC7n.o(.text+0x2a): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `java::lang::System::class$'
/tmp/ccYUxC7n.o(.text+0x66): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `java::lang::System::class$'
/tmp/ccYUxC7n.o(.text+0x6a): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `java::lang::System::class$'
/tmp/ccYUxC7n.o(.text+0x6c): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `_Jv_InitClass'
/tmp/ccYUxC7n.o(.text+0x7a): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `java::lang::System::out'
/tmp/ccYUxC7n.o(.text+0x7e): In function 
`Test::main(JArray<java::lang::String*>*)':
: undefined reference to `java::lang::System::out'
/tmp/ccYUxC7n.o(.text+0xd8): In function `Test::Test[in-charge]()':
: undefined reference to `java::lang::Object::Object[in-charge]()'
/tmp/ccYUxC7n.o(.data+0x38): undefined reference to 
`java::lang::Object::finalize()'
/tmp/ccYUxC7n.o(.data+0x3c): undefined reference to 
`java::lang::Object::hashCode()'
/tmp/ccYUxC7n.o(.data+0x40): undefined reference to 
`java::lang::Object::equals(java::lang::Object*)'
/tmp/ccYUxC7n.o(.data+0x44): undefined reference to 
`java::lang::Object::toString()'
/tmp/ccYUxC7n.o(.data+0x48): undefined reference to 
`java::lang::Object::clone()'
/tmp/ccYUxC7n.o(.data+0x58): undefined reference to `vtable for 
java::lang::Class'
/tmp/ccYUxC7n.o(.data+0x6c): undefined reference to 
`java::lang::Object::class$'
/tmp/ccYUxC7n.o(.eh_frame+0x11): undefined reference to 
`__gcj_personality_v0'
collect2: ld returned 1 exit status



thanks again for your help

David

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list