michu
Still Fresh
OK i've a big problem... I use debian and oopo's toolchain..
i try to compile for example zlib:
config:
CC='gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CXX='gp2x-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CFLAGS='-O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2' LDFLAGS='-L/usr/local/gp2xdev/lib' ./configure --prefix=$PREFIX
-> runns fine
make:
CC='gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CXX='gp2x-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CFLAGS='-O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2' LDFLAGS='-L/usr/local/gp2xdev/lib' make
-> now i get this error:
gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -DNO_vsnprintf -DUSE_MMAP -o example example.o -L. libz.a
/usr/local/gp2xdev/lib/gcc/gp2x/4.0.2/../../../../gp2x/lib/crt1.o: In function `_start':
../sysdeps/arm/elf/start.S:94: undefined reference to `__libc_csu_fini'
../sysdeps/arm/elf/start.S:94: undefined reference to `__libc_csu_init'
when i check /usr/local/gp2x.save/gp2x/lib/crt1.o i see this:
crt1.o: ELF 32-bit LSB relocatable, ARM, version 1 (ARM), not stripped
00000000 t $a
U abort
00000000 r $d
00000000 d $d
0000002c t $d
00000000 r $d
00000000 D __data_start
00000000 W data_start
00000000 R _IO_stdin_used
U __libc_csu_fini
U __libc_csu_init
U __libc_start_main
U main
00000000 T _start
somewhere i read that this could be if i use the wrong compiler...
I'm out of ideas! thanks in advance
michu
i try to compile for example zlib:
config:
CC='gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CXX='gp2x-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CFLAGS='-O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2' LDFLAGS='-L/usr/local/gp2xdev/lib' ./configure --prefix=$PREFIX
-> runns fine
make:
CC='gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CXX='gp2x-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib' CFLAGS='-O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2' LDFLAGS='-L/usr/local/gp2xdev/lib' make
-> now i get this error:
gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -DNO_vsnprintf -DUSE_MMAP -o example example.o -L. libz.a
/usr/local/gp2xdev/lib/gcc/gp2x/4.0.2/../../../../gp2x/lib/crt1.o: In function `_start':
../sysdeps/arm/elf/start.S:94: undefined reference to `__libc_csu_fini'
../sysdeps/arm/elf/start.S:94: undefined reference to `__libc_csu_init'
when i check /usr/local/gp2x.save/gp2x/lib/crt1.o i see this:
crt1.o: ELF 32-bit LSB relocatable, ARM, version 1 (ARM), not stripped
00000000 t $a
U abort
00000000 r $d
00000000 d $d
0000002c t $d
00000000 r $d
00000000 D __data_start
00000000 W data_start
00000000 R _IO_stdin_used
U __libc_csu_fini
U __libc_csu_init
U __libc_start_main
U main
00000000 T _start
somewhere i read that this could be if i use the wrong compiler...
I'm out of ideas! thanks in advance
michu