compiling main_librfid
martin at garben.net
martin at garben.net
Sat Oct 13 20:02:12 UTC 2007
Something weird:
I tried to set up the standalone version of librfid:
The librfid.firm configuration failed:
./configure --host=arm-elf --enable-firmware
/usr/local/arm/lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib/libc.a(mallocr.o): In function `_malloc_$
../../../../../../src/newlib-1.14.0/newlib/libc/stdlib/mallocr.c:2160: undefined reference to `_sbrk_$
../../../../../../src/newlib-1.14.0/newlib/libc/stdlib/mallocr.c:2197: undefined reference to `_sbrk_$
/usr/local/arm/lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib/libc.a(stdio.o): In function `__sclose':
../../../../../../src/newlib-1.14.0/newlib/libc/stdio/stdio.c:120: undefined reference to `_close_r'
/usr/local/arm/lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib/libc.a(stdio.o): In function `__sseek':
../../../../../../src/newlib-1.14.0/newlib/libc/stdio/stdio.c:103: undefined reference to `_lseek_r'
/usr/local/arm/lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib/libc.a(stdio.o): In function `__swrite':
../../../../../../src/newlib-1.14.0/newlib/libc/stdio/stdio.c:76: undefined reference to `_lseek_r'
../../../../../../src/newlib-1.14.0/newlib/libc/stdio/stdio.c:84: undefined reference to `_write_r'
/usr/local/arm/lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib/libc.a(stdio.o): In function `__sread':
../../../../../../src/newlib-1.14.0/newlib/libc/stdio/stdio.c:47: undefined reference to `_read_r'
/usr/local/arm/lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib/libc.a(freer.o): In function `_malloc_tr$
../../../../../../src/newlib-1.14.0/newlib/libc/stdlib/mallocr.c:3326: undefined reference to `_sbrk_$
../../../../../../src/newlib-1.14.0/newlib/libc/stdlib/mallocr.c:3335: undefined reference to `_sbrk_$
But when I compile my firmware with reference to the librfid.firm directory
it works out. I get the main_librfid.bin
Ok thats great but:
Whats going on? How can I cross compile the firmware without a .configure of the librfid for arm??
Best regards, Martin
More information about the openpcd-devel
mailing list