1 |
妊快把忍快抄 妙我把抉扶抉志 wrote: |
2 |
> Hm, ok, i get it. But is any way to compile sparc envirment for leon3 |
3 |
> proc without fpu? |
4 |
> Maybe its possible to use sparcv8-unknown-linux-gnu and |
5 |
> USE="softfloat" (or similar) ? |
6 |
> |
7 |
> 2009/6/20 Ra迆l Porcel <armin76@g.o>: |
8 |
>> 妊快把忍快抄 妙我把抉扶抉志 wrote: |
9 |
>>> Hi! I'm trying to build cross-enviroment for |
10 |
>>> sparcv8-softfloat-linux-gnueabi, but without luck. |
11 |
>>> |
12 |
>>> gcc 4.3.2 (and 4.4.0) failes to build with message: |
13 |
>>> ... |
14 |
>>> checking whether string.h and strings.h may both be included... yes |
15 |
>>> checking for .preinit_array/.init_array/.fini_array support... yes |
16 |
>>> checking how to run the C preprocessor... yes |
17 |
>>> checking if mkdir takes one argument... i686-pc-linux-gnu-gcc -E |
18 |
>>> no |
19 |
>>> *** Configuration sparcv8-softfloat-linux-gnu not supported |
20 |
>>> checking for egrep... grep -E |
21 |
>>> checking for ANSI C header files... yes |
22 |
>>> checking for sys/types.h... make[1]: *** [configure-gcc] Error 1 |
23 |
>>> make[1]: *** Waiting for unfinished jobs.... |
24 |
>>> yes |
25 |
>>> checking for sys/stat.h... yes |
26 |
>>> ... |
27 |
>>> make[1]: Leaving directory |
28 |
>>> `/var/tmp/cross/sparcv8-softfloat-linux-gnueabi/portage/cross-sparcv8-softfloat-linux-gnueabi/gcc-4.3.2-r3/work/build' |
29 |
>>> make: *** [all] Error 2 |
30 |
>>> |
31 |
>>> Does anybody know combination of versions of gcc-glibc that works? |
32 |
>>> |
33 |
>> AFAIK gnueabi is only for ppc and ARM. Also softfloat(specifying it on |
34 |
>> the CHOST on gentoo) is for arm only. |
35 |
>> |
36 |
>> |
37 |
> |
38 |
> |
39 |
> |
40 |
|
41 |
http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/SPARC-Options.html#SPARC-Options |
42 |
You'll need to use -mno-fpu on the CFLAGS. And again, the -softfloat- |
43 |
thing on the CHOST is gentoo-specific and only applies to ARM. |