[mc1322x] contiki compilation error
Mariano Alvira
mar at devl.org
Mon Dec 7 11:05:15 EST 2009
On Mon, Dec 07, 2009 at 09:34:18AM -0500, Camilo, Alex wrote:
> Thanks for the help. I made it to the linker and i got the following errors.
> I don't understand why a library would use hardware floating point. I was under
> the assumption that the arm7tdmi in this chip lacks the requisite coprocessor.
> arm-elf-gcc -T ../../cpu/mc1322x/mc1322x.lds -nostartfiles -static
> -DCONTIKI_TARGET_MC1322X -I. -I../../core -I../../cpu/mc1322x -I../../cpu/
> mc1322x/loader -I../../cpu/mc1322x/dbg-io -I../../platform/mc1322x -DWITH_UIP
> -DWITH_ASCII -DMCK= -Werror -mcpu=arm7tdmi-s -mthumb-interwork -march=armv4t
> -mtune=arm7tdmi-s -DCONFIG_ARM -D__ARM__ -g -Os -DRUN_AS_SYSTEM -DROM_RUN
> -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -DTEXT_BASE=
> 0x00400000 -fno-builtin-printf -fno-builtin-sprintf -I. -I../../platform/
> mc1322x/. -I../../platform/mc1322x/apps -I../../platform/mc1322x/net -I../../
> cpu/mc1322x/. -I../../core/dev -I../../core/lib -I../../core/net -I../../core/
> net/mac -I../../core/net/rime -I../../core/net/routing -I../../core/sys -I../..
> /core/cfs -I../../core/ctk -I../../core/lib/ctk -I../../core/loader -I../../
> core/. -nostartfiles -o hello-world.mc1322x hello-world.co obj_mc1322x/
> contiki-mc1322x-main.o obj_mc1322x/startup.o obj_mc1322x/symbols.o
> contiki-mc1322x.a contiki-mc1322x.a
> /Users/acamilo/yagarto/yagarto-4.4.2/bin/../lib/gcc/arm-elf/4.4.2/../../../../
> arm-elf/bin/ld: ERROR: /Users/acamilo/yagarto/yagarto-4.4.2/bin/../lib/gcc/
> arm-elf/4.4.2/interwork/libgcc.a(_udivsi3.o) uses hardware FP, whereas
> hello-world.mc1322x uses software FP
To me this looks like your glibc is using hardware FP. The OE
toolchain builds glibc with "--without-fp"
from glibc/glibc-package.bbclass:
def get_glibc_fpu_setting(bb, d):
if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
return "--without-fp"
return ""
TARGET_FPU is set to soft in mc1322x/conf/machine/mc13224v.conf
I've never used yagarto. Can you build glibc with --without-fp?
-Mar.
More information about the mc1322x
mailing list