1 |
Jean-Claude Gervais wrote: |
2 |
> On Wed, 2007-10-31 at 20:43 +0100, Pal Szasz wrote: |
3 |
>> Just a little addition: there is another flag which might be involved: |
4 |
>> |
5 |
>> -mfloat-abi=softfp |
6 |
>> |
7 |
> |
8 |
> How do I pass those flags to the compiler by using crossedev? |
9 |
> |
10 |
> Here's the shell script I am currently using. |
11 |
> I changed it to go with Jason's recommended toolset versions but I am |
12 |
> still getting the same linking errors about floating-point |
13 |
> incompatibilities... |
14 |
> |
15 |
> .-.-.-.-.-.-.- |
16 |
> |
17 |
> #!/bin/bash |
18 |
> |
19 |
> CBUILD="i686-pc-linux-gnu" |
20 |
> |
21 |
> CHOST=$CBUILD |
22 |
> |
23 |
> CTARGET="arm-softfloat-linux-uclibc" |
24 |
> |
25 |
> #export ROOT="/usr/arm-softfloat-linux-uclibc" |
26 |
> |
27 |
> PORTAGE_CONFIGROOT="/usr/arm-softfloat-linux-uclibc" |
28 |
> |
29 |
> UCLIBC_CPU="ARM920T" USE="-*" crossdev -v --binutils 2.17 --gcc 3.4.6-r2 |
30 |
> --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target |
31 |
> arm-softfloat-linux-uclibc |
32 |
|
33 |
before you tried this command, did you delete the old attempt? eg |
34 |
|
35 |
crossdev -C arm-softfloat-linux-uclibc |
36 |
|
37 |
Chances are you have stale uclibc files installed from a previous |
38 |
attempt that are conflicting with the current attempt. |
39 |
|
40 |
Also, make sure you unset PORTAGE_CONFIGROOT, CTARGET, CHOST, and |
41 |
CBUILD. Those may foul up crossdev (You're not cross-compiling a |
42 |
cross-compiling toolchain are you?). Those variable assignments are for |
43 |
_after_ the toolchain is built when you want to use it. |
44 |
|
45 |
hth, |
46 |
|
47 |
Jason. |
48 |
-- |
49 |
gentoo-embedded@g.o mailing list |