bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] Configure For Hard Float


From: Nathan
Subject: Re: [bug-inetutils] Configure For Hard Float
Date: Mon, 5 May 2014 14:54:03 -0500

I should have included what I was using:
>export CLFS_TARGET="arm-linux-gnueabihf"
>export CLFS_ARCH=arm
>export CLFS_ARM_ARCH="armv7-a"
>export CLFS_ARM_TUNE="cortex-a9"
>export CLFS_FLOAT="hard"
>export CLFS_FPU="neon"

>export targetCFLAGS="-O3 -pipe -mfpu=${CLFS_FPU} -mtune=${CLFS_ARM_TUNE} -march=${CLFS_ARM_ARCH} -mfloat-abi=${CLFS_FLOAT}"
>export targetCPPFLAGS="-I/${CLFS_TARGET}/include"
>export targetCXXFLAGS="${targetCFLAGS}"
>export targetLDFLAGS="-L/${CLFS_TARGET}/lib -Wl,-rpath -Wl,/${CLFS_TARGET}/lib"

 >./bootstrap
 >./configure --disable-ifconfig --disable-logger --disable-syslogd --disable-whois --disable-servers CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" CC="${CC} ${CFLAGS}"
 >make > make.log 2>&1
 >make check > check.log 2>&1
 >make install > install.log 2>&1

Some programs would fail on "make check", while others would fail on "make" when compiling for hard-float as it looks for "stubs-soft.h" which it shouldn't since I designate "-mfloat-abi=hard".
And it's because there are places in Makefile that isn't using CFLAGS, so you'll note the 'CC="${CC} ${CFLAGS}"' appended to ./configure.

I've recently encountered another program that had CC hardcoded, so passing the flag wouldn't do anything. I had to edit the Makefile.
It's almost like the linux-world isn't quite ready for hard-ARM, yet I've seen plenty of boards out there (odroid in my case).
If you would like more, I can whip out a test when I wake up and submit log results.
Currently I stepped back and am trying to cross-compile python (ugh).

Sorry for not being more descriptive.

On Mon, May 5, 2014 at 1:26 PM, Alfred M. Szmidt <address@hidden> wrote:

   I've been encountering this in everything I've built so far (lzlib,
   plzip, git, flex, bison, iproute2...)Essentially it fails looking
   for "stubs-soft.h" when hard float is being used and even set in
   CFLAGS (mfloat-abi=hard).The tip I was given from the lzlib
   developer before it was fixed in the dev pre-release is to set
   CC="$CC $CFLAGS".

I am not sure I follow how this relates to inetutils.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]