Building AT91SAM7X Eclipse Demo on Mac OS X

elbric0 wrote on Saturday, March 15, 2008:

Hi,

Does anyone have experience with arm development under Mac OS X?

I tried to build the AT91SAM7X Demo for Eclipse and get errors at link time (see below). I tried many toolchains found on the internet and also tried to compile my own from the Yagarto sources. I always get similar errors. I can compile the project without any modification on Windows using the same version of Eclipse and the last Yagarto toolchain.

Here is a example of the errors I get.

/usr/local/arm/bin/…/lib/gcc/arm-elf/4.2.2/…/…/…/…/arm-elf/bin/ld: ERROR: /usr/local/arm/bin/…/lib/gcc/arm-elf/4.2.2/…/…/…/…/arm-elf/lib/thumb/interwork/libg.a(lib_a-memcpy.o) uses software FP, whereas RTOSDemo.elf uses hardware FP
/usr/local/arm/bin/…/lib/gcc/arm-elf/4.2.2/…/…/…/…/arm-elf/bin/ld: failed to merge target specific data of file /usr/local/arm/bin/…/lib/gcc/arm-elf/4.2.2/…/…/…/…/arm-elf/lib/thumb/interwork/libg.a(lib_a-memcpy.o)

Any idea why it works on Windows but not on Mac?

If someone can point me binaries or build instructions for a toolchain that do not produce theses errors, it would be really appreciated.