softfloat toolchain

Khem Raj kraj at mvista.com
Thu Nov 17 18:58:28 UTC 2005


You need this
diff -urNd gcc-3.4-orig/gcc/config/arm/linux-elf.h 
gcc-3.4.0/gcc/config/arm/linux-elf.h
--- gcc-3.4-orig/gcc/config/arm/linux-elf.h 2004-01-31 
07:18:11.000000000 +0100
+++ gcc-3.4/gcc/config/arm/linux-elf.h 2004-05-01 19:19:06.935979200 +0200
@@ -55,7 +73,7 @@
%{shared:-lc} \
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"

-#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
+#define LIBGCC_SPEC "-lgcc"

/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which



Konstantin Kletschke said the following on 11/17/2005 02:02 AM:
> Hi Folks!
>
> Is there any combination of gcc and binutils version which is able to
> compile a nofpu softfloat toolchain?
> I did not find one yet, every combination bails out sooner or later.
>
> When I select a 4.0.x gcc the result looks promising but in gcc final
> it (4.0.1 and 4.0.2) breaks at libmudflap:
>
> configure:2267: $? = 1
> configure:2290: checking for C compiler default output file name
> configure:2293:  /usr/src/buildroot/toolchain_build_arm_nofpu/gcc-4.0.1-final/gcc/xgcc -B/usr/src/buildroot/toolchain_build_arm_nofpu/gcc-4.0.1-final/gcc/ -B/usr/local/arm/gcc-4.0.1-uClibc-0.9.28/arm-linux-uclibc/bin/ -B/usr/local/arm/gcc-4.0.1-uClibc-0.9.28/arm-linux-uclibc/lib/ -isystem /usr/local/arm/gcc-4.0.1-uClibc-0.9.28/arm-linux-uclibc/include -isystem /usr/local/arm/gcc-4.0.1-uClibc-0.9.28/arm-linux-uclibc/sys-include -g -Os   conftest.c  >&5
> /usr/local/arm/gcc-4.0.1-uClibc-0.9.28/arm-linux-uclibc/bin/ld: cannot find -lfloat
> collect2: ld returned 1 exit status
> configure:2296: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME "libmudflap"
> | #define PACKAGE_TARNAME "libmudflap"
> | #define PACKAGE_VERSION "1.0"
> | #define PACKAGE_STRING "libmudflap 1.0"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "libmudflap"
> | #define VERSION "1.0"
> | /* end confdefs.h.  */
> | 
> | int
> | main ()
> | {
> | 
> |   ;
> |   return 0;
> | }
> configure:2335: error: C compiler cannot create executables
> See `config.log' for more details.
>
> Regards, Konsti
>
>   



More information about the uClibc mailing list