1 |
On Mon, 06 Mar 2006 10:35:10 +0100 |
2 |
Lutz Schönemann <lutz.schoenemann@××××××××××××××.de> wrote: |
3 |
|
4 |
> Hi, |
5 |
> I've problems building an working Cross-Compiler to use it for an |
6 |
> i386 embedded system. Until now I've tried the following two things: |
7 |
> |
8 |
> - Using crossdev: |
9 |
> The crossdev script worked fine and installed the whole toolchain |
10 |
> (stage4: binutils, gcc, linux-headers, etc.). The trouble is that |
11 |
> when I want to merge a packege with this compiler (e.g.: |
12 |
> CFLAGS="-arch=i386" ROOT=/tmp/cross/ CHOST=i386-unknown-linux-gnu |
13 |
> emerge sys-boot/syslinux) it ends up with the message that the |
14 |
> compiler is unable to build executables. |
15 |
|
16 |
Just in case that wasn't a typo in transcription - you need |
17 |
CFLAGS="-march=i386" (with an 'm'). You should look at the config.log |
18 |
etc to find out exactly why the compiler couldn't build executables. |
19 |
|
20 |
BTW again just in case - if your host is an x86 system, you don't need a |
21 |
cross-compiler as your host compiler can build for all x86 variants - |
22 |
it's enough to get the CFLAGS right; e.g. |
23 |
|
24 |
CFLAGS="-march=i386" ROOT=/tmp/cross emerge <pkg> |
25 |
|
26 |
-- |
27 |
Kevin F. Quinn |