[oe] cortex-a9 machine build failure at gcc

Koen Kooi k.kooi at student.utwente.nl
Mon Nov 23 08:12:08 UTC 2009


On 23-11-09 07:14, RK Raggit wrote:
> Hi,
>
> I am adding support for a cortex-a9 based machine but the build fails at gcc
> with this error -
>
> ****************
> |
> /home/work/armv7a-angstrom-linux-gnueabi/gcc-cross-initial-4.2.4-r9.1/gcc-4.2.4/gcc/crtstuff.c:1:
> error: bad value (cortex-a9) for -mtune= switch

Gcc 4.2.4 doesn't support armv7


> gcc variables in my local.conf read thus -
>
> PREFERRED_VERSION_gcc                    = "4.2.4"
> PREFERRED_VERSION_gcc-cross              = "csl-arm-2008q1"
> PREFERRED_VERSION_gcc-cross-initial      = "csl-arm-2008q1"
> PREFERRED_VERSION_gcc-cross-intermediate = "csl-arm-2008q1"

Don't use CSL toolchains, they are waaaay to broken, especially 2008qX: 
http://hardwarebug.org/2008/11/28/codesourcery-fails-again/
Stick with the default toolchain angstrom is using, it is tested on real 
hardware (CS only tests inside qemu) and is know to work well

regards,

Koen





More information about the Openembedded-devel mailing list