Hello Christophe,

The issue is fixed by using ct-ng-linaro-1.13.1-4.8-2014.04 with " 
--disable-multilib --with-system-zlib"

The exact command line of error has " -mfloat-abi=soft", even the gcc was 
configured using " ct-ng linaro-arm-linux-gnueabihf"

[ALL  ]    
/projects/broadcom-linux/joelz/r/linaro-gcc-build/.build/arm-linux-gnueabihf/build/build-cc/./gcc/xgcc
 
-B/projects/broadcom-linux/joelz/r/linaro-gcc-build/.build/arm-linux-gnueabihf/build/build-cc/./gcc/
 
-B/projects/broadcom-linux/joelz/opt/gcc-linaro-arm-linux-2.6-gnueabihf/arm-linux-gnueabihf/bin/
 
-B/projects/broadcom-linux/joelz/opt/gcc-linaro-arm-linux-2.6-gnueabihf/arm-linux-gnueabihf/lib/
 -isystem 
/projects/broadcom-linux/joelz/opt/gcc-linaro-arm-linux-2.6-gnueabihf/arm-linux-gnueabihf/include
 -isystem 
/projects/broadcom-linux/joelz/opt/gcc-linaro-arm-linux-2.6-gnueabihf/arm-linux-gnueabihf/sys-include
    -O2 -g -pipe -fno-stack-protector -U_FORTIFY_SOURCE -marm -march=armv4t 
-mfloat-abi=soft -O2  -O2 -g -pipe -fno-stack-protector -U_FORTIFY_SOURCE 
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual 
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem 
./include   -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc 
-fno-stack-protector   -fPIC -fno-inline -I. -I. -I../../.././gcc 
-I/projects/broadcom-linux/joelz/r/linaro-gcc-build/.build/src/gcc-linaro-4.8-2014.01/libgcc
 
-I/projects/broadcom-linux/joelz/r/linaro-gcc-build/.build/src/gcc-linaro-4.8-2014.01/libgcc/.
 
-I/projects/broadcom-linux/joelz/r/linaro-gcc-build/.build/src/gcc-linaro-4.8-2014.01/libgcc/../gcc
 
-I/projects/broadcom-linux/joelz/r/linaro-gcc-build/.build/src/gcc-linaro-4.8-2014.01/libgcc/../include
  -DHAVE_CC_TLS  -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 
-c 
/projects/broadcom-linux/joelz/r/linaro-gcc-build/.build/src/gcc-linaro-4.8-2014.01/libgcc/libgcc2.c
 -fvisibility=hidden -DHIDE_EXPORTS

Thanks,

Joel


-----Original Message-----
From: Christophe Lyon [mailto:christophe.l...@linaro.org] 
Sent: Sunday, September 14, 2014 6:23 PM
To: Joel (Xi Zhou) Zhou
Cc: linaro-toolchain@lists.linaro.org
Subject: Re: Toolchain for kernel 2.6.36

Hello Joel

Could you provide us with:
- the exact command line used (the one calling GCC, with all the flags)
- the output of gcc -v the see how it was configured

From what you say it looks like your compiler is currently configured
to generated hard-float code by default, and that you are compiling a
module with -mfloat-abi=soft while the compiler has no support for
multilibs.

Christophe


On 12 September 2014 20:10, Joel (Xi Zhou) Zhou <joel.z...@broadcom.com> wrote:
> Hi all,
>
> I'm using ct-ng to rebuild Linaro toolchain (arm-linux-gnueabihf ) for Linux 
> kernel 2.6.36.
> Ct-ng version: ct-ng-linaro-1.13.1-4.8-2014.01-01
>
> There is a “FATAL: Kernel too old” message after mounting the rootfs. It 
> turns out the default config using pre-built sysroot from Linaro website. 
> After setting " CT_PREBUILT_SYSROOT=n" to build sysroot with lower kernel 
> version, I get the following error:
> [EXTRA]    Building final compiler
> [ERROR]    
> /projects/broadcom-linux/joelz/opt/gcc-linaro-arm-linux-2.6-gnueabihf/arm-linux-gnueabihf/libc/usr/include/gnu/stubs.h:7:29:
>  fatal error: gnu/stubs-soft.h: No such file or directory
> [ERROR]    make[5]: *** [_muldi3.o] Error 1
> [ERROR]    make[4]: *** [multi-do] Error 1
>
> I tried to put " -mfloat-abi=hard" as CFLAG in different place, still can't 
> pass this error.
>
> If you have any idea how to fix it, please let me know.
>
> Thanks,
> Joel
>
> _______________________________________________
> linaro-toolchain mailing list
> linaro-toolchain@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-toolchain
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to