1 |
>> http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/SPARC-Options.html#SPARC-Options |
2 |
>> You'll need to use -mno-fpu on the CFLAGS. And again, the -softfloat- |
3 |
>> thing on the CHOST is gentoo-specific and only applies to ARM. |
4 |
>> |
5 |
>> |
6 |
> |
7 |
> Thanks! i'll try it as soon as i can. |
8 |
|
9 |
Hi. |
10 |
man gcc says about -mno-fpu in SPARC section that "... you need to |
11 |
compile libgcc.a, the library that comes with GCC, with -msoft-float |
12 |
in order for this to work". So i try that: |
13 |
|
14 |
$ export CFLAGS="-msoft-float" |
15 |
$ crossdev sparc-module2-linux-gnu |
16 |
|
17 |
Unfortunately, binutils fails to build with link-time errors: |
18 |
|
19 |
../bfd/.libs/libbfd.so: undefined reference to `__floatsidf' |
20 |
../bfd/.libs/libbfd.so: undefined reference to `__adddf3' |
21 |
../bfd/.libs/libbfd.so: undefined reference to `__divdf3' |
22 |
|
23 |
I found, that these functions are gcc floating point implementation. |
24 |
But binutils should be built before gcc... So i think, that i am |
25 |
trying to do something wrong again. Could you help? |
26 |
|
27 |
Note, that without export CFLAGS="-msoft-float", crossdev successfully |
28 |
builds development tree, but i can't use -mno-fpu in it's CFLAGS (same |
29 |
errors). |
30 |
|
31 |
Thanks! |
32 |
Sergey |