Gentoo Archives: gentoo-embedded

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] crossdev-20100620 uses wrong gcc
Date: Thu, 23 Sep 2010 15:08:50
Message-Id: OFC962C986.500F58B7-ONC12577A7.004F830C-C12577A7.00505D60@transmode.se
1 Trying to add support for e300c2 in glibc/ports I got another error.
2 when crossdev is building cross-glibc-headers it uses the hosts gcc
3 instead of the cross compiler and glibc configure fails:
4
5 configure:7498: checking for compiler option for CPU variant
6 configure:7506: gcc -march=e300c2 -xc /dev/null -S -o /dev/null
7 /dev/null:1: error: bad value (e300c2) for -march= switch
8 /dev/null:1: error: bad value (e300c2) for -mtune= switch
9 configure:7509: $? = 1
10 configure:7506: gcc -mcpu=e300c2 -xc /dev/null -S -o /dev/null
11 `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
12 /dev/null:1: error: bad value (e300c2) for -mtune= switch
13 configure:7509: $? = 1
14 configure:7516: result: no
15 configure:7519: error: gcc does not support e300c2
16
17
18 Here is the configure log snippet when it finds the hosts gcc:
19
20 configure:2028: checking build system type
21 configure:2046: result: i686-pc-linux-gnu
22 configure:2068: checking host system type
23 configure:2083: result: powerpc-e300c2_softfloat-linux-gnu
24 configure:2114: checking for powerpc-e300c2_softfloat-linux-gnu-gcc
25 configure:2141: result: gcc
26 configure:2413: checking for C compiler version
27 configure:2421: gcc --version >&5
28 gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3
29 Copyright (C) 2010 Free Software Foundation, Inc.
30 This is free software; see the source for copying conditions. There is NO
31 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Replies

Subject Author
Re: [gentoo-embedded] crossdev-20100620 uses wrong gcc Peter Stuge <peter@×××××.se>
Re: [gentoo-embedded] crossdev-20100620 uses wrong gcc Mike Frysinger <vapier@g.o>