Anonymous | Login | Signup for a new account | 11-10-2008 11:07 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0001069 | [buildroot] Architecture Specific | minor | always | 10-10-06 07:32 | 02-12-07 05:33 | |||||||
Reporter | spblinux | View Status | public | |||||||||
Assigned To | buildroot | |||||||||||
Priority | normal | Resolution | open | |||||||||
Status | assigned | Product Version | ||||||||||
Summary | 0001069: FLOAT: buildroot mipsel with soft-float does not compile libgcc with -msoft-float | |||||||||||
Description |
Buildroot toolchain gcc-4.1.0/uClibc-0.9.28 mipsel Compilation of asterisk-1.2.1 (with openwrt patches): - asterisk works if compiled with buildroot toolchain without soft-float option - asterisk runs but does not work properly if compiled with buildroot toolchain with -msoft-float Issue: many embedded device do not have a fpu; so -msoft-float should be used. Solution: when gcc is compiled libgcc has to be compiled with -msoft-float: the buildroot patch toolchain/gcc/4.1.0/100-uclibc-conf.patch has to add TARGET_LIBGCC2_CFLAGS= -fPIC -msoft-float to gcc-4.1.0/gcc/config/t-linux-uclibc. Credits go to David Wuertele (http://gcc.gnu.org/ml/gcc/2003-08/msg00634.html) [^] who found the solution. It would be nice if BR2_SOFT_FLOAT=y would automagically add -msoft-float. Christian Ostheimer |
|||||||||||
Additional Information |
--- gcc-4.1.0/gcc/config/t-linux-uclibc +++ gcc-4.1.0/gcc/config/t-linux-uclibc @@ -0,0 +1,8 @@ +# Remove glibc specific files added in t-linux +SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES)) + +# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc +LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH)) + +# compile libcc with softfloat (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8765) [^] +TARGET_LIBGCC2_CFLAGS= -fPIC -msoft-float |
|||||||||||
Attached Files | ||||||||||||
|
There are no notes attached to this issue. |
Copyright © 2000 - 2006 Mantis Group |