1 |
Mike Frysinger wrote: |
2 |
|
3 |
>you should look at config.log like the error message is telling you to |
4 |
>-mike |
5 |
> |
6 |
> |
7 |
> |
8 |
Thanks, Mike |
9 |
|
10 |
My config.log says: |
11 |
|
12 |
configure:2391: checking for C compiler default output |
13 |
configure:2394: arm-unknown-linux-gnu-gcc -O2 -march=k8 |
14 |
-fomit-frame-pointer -pipe -ffast-math conftest.c >&5 |
15 |
Assembler messages: |
16 |
Error: unknown architecture `k8' |
17 |
Error: unrecognized option -march=k8 |
18 |
conftest.c:1: error: bad value (k8) for -march= switch |
19 |
|
20 |
The -march=k8 switch comes from my global Gentoo CFLAGS, since I am |
21 |
using that architecture. However, when I run the emerge like this: |
22 |
|
23 |
CFLAGS="-O2" ROOT=/opt/arm-gentoo-uclibc-linux/stage3/ |
24 |
CHOST=arm-unknown-linux-gnu emerge -av bash, |
25 |
|
26 |
there is no error with -march=k8 switch, but I get an error right after: |
27 |
|
28 |
configure:2391: checking for C compiler default output |
29 |
configure:2394: arm-unknown-linux-gnu-gcc -O2 conftest.c >&5 |
30 |
configure:2397: $? = 0 |
31 |
configure:2443: result: a.out |
32 |
configure:2448: checking whether the C compiler works |
33 |
configure:2454: ./a.out |
34 |
./configure: line 2455: ./a.out: cannot execute binary file |
35 |
configure:2457: $? = 126 |
36 |
configure:2466: error: cannot run C compiled programs. |
37 |
If you meant to cross compile, use `--host'. |
38 |
|
39 |
I've got a feeling that I make a cardinal error elsewhere. |
40 |
Any thoughts? |
41 |
|
42 |
Best wishes, |
43 |
Stanislaw |
44 |
-- |
45 |
gentoo-embedded@g.o mailing list |