buildroot fails for ARM w/ gcc 4.1 and soft float

Lance Spaulding lsjunk1 at cableone.net
Thu Jun 8 16:43:34 UTC 2006


Khem Raj wrote:

> Lance Spaulding said the following on 06/07/2006 07:09 AM:
>
>> Khem Raj wrote:
>> lding on and your config file and and any patches you are applying to 
>> the code?   
>
> hmmm I am not doing anything special. I am using patches from 
> buildroot and the releases tar files. I am not building the toolchain 
> using buildroot though. Do you enable c++ in --enable-languages option 
> to gcc configure?
> moreover look for "error:" keyword in the config.log file there might 
> be other errors which are causing build issue.
>
>> I've been trying the code from svn with the patch to arm/t-linux you 
>> suggested a while back.
>>
>> Thanks in advance,
>> Lance
>>
>
>
I didn't realize you weren't using buildroot.  Based on old email it 
looks like this hasn't worked in buildroot for at least a couple years.  
I did look in the build log and foundthat the c++ is set on the 
-enable-languages arg during the final stage of compiling gcc, but not 
the earlier stage.  Should it be set for both?   Here's how it was 
called for the final stage:

mkdir -p /root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final
# Important!  Required for limits.h to be fixed.
ln -snf ../include /usr/local/arm-uclibc/arm-linux-uclibc/sys-include
(cd /root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final; 
PATH=/usr/local/arm-uclibc/bin:/root/lance/buildroot/toolchain_build_arm_nofpu/bin:/bin:/sbin:/usr/bin:/usr/sbin 
\
    CC="gcc" \
    /root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0/configure \
    --prefix=/usr/local/arm-uclibc \
    --build=i386-pc-linux-gnu \
    --host=i386-pc-linux-gnu \
    --target=arm-linux-uclibc \
    --enable-languages=c,c++ \
    --enable-shared \
    --disable-__cxa_atexit \
    --enable-target-optspace \
    --with-gnu-ld \
    --disable-nls \
    --enable-threads \
    --enable-multilib \
    --with-float=soft \
       \
     \
    );

If it isn't easy to get this fixed in buildroot, would you mind sharing 
your script that you use to build a uClibc-based toolchain?  I just want 
to build a toolchain -- I'm not interested everything else buildroot does.

Thanks,
Lance




More information about the uClibc mailing list