[oe] cortex-a9 machine build failure at gcc
Phil Blundell
philb at gnu.org
Mon Nov 23 10:46:17 UTC 2009
On Mon, 2009-11-23 at 11:44 +0530, RK Raggit wrote:
> /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 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"
The version you select here needs to match ${PV} from one of the
available recipes in order to have any useful effect. It looks like the
magic string for 2008q1 (see gcc-csl-arm-2008q1.inc) would be:
PREFERRED_VERSION_gcc-cross-initial = "4.2.3+csl-arm-2008q1-126"
and likewise for the others. As things stand, it appears that you are
getting the regular gcc 4.2.4 selected and this one doesn't understand
cortex-a9.
If you wanted to try 2008q3 then that would be 4.3.2+csl-arm-2008q3-39.
> I had also tried something funky like below but to no avail -
>
> PREFERRED_VERSION_gcc = "4.2.4+csl-arm-2008q1-126"
> PREFERRED_VERSION_gcc-cross = "4.2.4+csl-arm-2008q1-126"
> REFERRED_VERSION_gcc-cross-initial = "4.2.4+csl-arm-2008q1-126"
> PREFERRED_VERSION_gcc-cross-intermediate = "4.2.4+csl-arm-2008q1-126"
That was close but, sadly, not quite on the button :-)
p.
More information about the Openembedded-devel
mailing list