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. |