[kaffe] Cross-compile error
FAbel
klm at lmib.org
Thu Aug 8 10:02:00 PDT 2002
Hi,
I'm porting kaffe to my Yopy Linux PDA, but when cross-compiling with gcc
version:
abel at linux:~/usr/kaffe-1.0.7> arm-linux-gcc -v
Reading specs from /usr/lib/gcc-lib/arm-linux/2.95.2/specs
gcc version 2.95.2 20000313 (Debian GNU/Linux)
I got this compile error
/usr/bin/arm-linux-gcc -shared tlk.lo wnd.lo evt.lo gra.lo fnt.lo clr.lo
img.lo imggif.lo imgjpeg.lo imgpng.lo cbd.lo -Wl,--rpath
-Wl,/usr/arm-linux/X11R6/lib/ -Wl,--rpath -Wl,/usr/local/lib
-L/usr/local/lib /usr/lib/libjpeg.so -lpng -lz -lm
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-L/usr/arm-linux/X11R6/lib/ -lXext -lSM -lICE -lX11 -Wl,-soname
-Wl,libawt-1.0.7.so -Wl,-retain-symbols-file -Wl,.libs/libawt.exp -o
.libs/libawt-1.0.7.so
/usr/lib/libjpeg.so(*ABS*+0x1df04): multiple definition of `_DYNAMIC'
/usr/arm-linux/lib/crti.o(.dynamic+0x0): first defined here
/usr/lib/libjpeg.so: In function `_init':
/usr/lib/libjpeg.so(.init+0x0): multiple definition of `_init'
/usr/arm-linux/lib/crti.o(.init+0x0): first defined here
/usr/lib/libjpeg.so: In function `_fini':
/usr/lib/libjpeg.so(.fini+0x0): multiple definition of `_fini'
/usr/arm-linux/lib/crti.o(.fini+0x0): first defined here
/usr/lib/libjpeg.so(*ABS*+0x1dfdc): multiple definition of
`_GLOBAL_OFFSET_TABLE_'
/usr/arm-linux/lib/crti.o(.got.plt+0x0): first defined here
collect2: ld returned 1 exit status
make[4]: *** [libawt.la] Error 1
make[4]: Leaving directory `/home/abel/usr/kaffe-1.0.7/libraries/clib/awt/X'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/abel/usr/kaffe-1.0.7/libraries/clib/awt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/abel/usr/kaffe-1.0.7/libraries/clib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/abel/usr/kaffe-1.0.7/libraries'
make: *** [all-recursive] Error 1
seems strange to me that the linker try to link against /usr/lib/libjpeg.so
instead /usr/arm-linux/lib/libjpeg.so , I've tried many configure options but
there are always error. Any help?
Anobody out there as kaffe binaries compiled for arm-linux?
bye,
Fabio.
More information about the kaffe
mailing list