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: Tue, 6 May 2014 05:15:47 -0500

Ok, after revisiting it, ./configure works on the build machine (for cross-compile) and fails on the target machine.

TARGET:
>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.9.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../gcc/configure --prefix=/arm-linux-gnueabihf --build=x86_64-cross-linux-gnu --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf --libexecdir=/arm-linux-gnueabihf/lib --with-local-prefix=/arm-linux-gnueabihf --enable-long-long --enable-c99 --enable-shared --enable-threads=posix --disable-multilib --disable-nls --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --enable-cloog-backend=isl --with-gmp=/arm-linux-gnueabihf --with-mpfr=/arm-linux-gnueabihf --with-mpc=/arm-linux-gnueabihf --with-isl=/arm-linux-gnueabihf --disable-isl-version-check --with-cloog=/arm-linux-gnueabihf --with-system-zlib --with-native-system-header-dir=/arm-linux-gnueabihf/include --disable-libssp --disable-install-libiberty --enable-checking=release --enable-libstdcxx-time CFLAGS='-O3 -pipe -mfpu=neon -mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard' CXXFLAGS='-O3 -pipe -mfpu=neon -mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard' LDFLAGS='-L/arm-linux-gnueabihf/lib -Wl,-rpath -Wl,/arm-linux-gnueabihf/lib' CPPFLAGS=-I/arm-linux-gnueabihf/include
Thread model: posix
gcc version 4.9.0 20140405 (experimental) (GCC)

TARGET-FAIL
>./configure --disable-ifconfig --disable-logger --disable-syslogd --disable-whois --disable-servers CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" 2>&1 | tee configure.log
configure.log:
checking for library containing strerror... none required
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/media/ext/src/inetutils':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
config.log:
configure:6746: checking how to run the C preprocessor
configure:6771: gcc -std=gnu11 -E -I/include -I/usr/include -I/usr/local/include -I/arm-linux-gnueabihf/include conftest.c
In file included from /arm-linux-gnueabihf/include/features.h:402:0,
                 from /arm-linux-gnueabihf/include/limits.h:25,
                 from conftest.c:11:
/arm-linux-gnueabihf/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
                             ^
TARGET-SUCCESS:
>./configure --disable-ifconfig --disable-logger --disable-syslogd --disable-whois --disable-servers CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" CC="${CC} ${CFLAGS}" 2>&1 | tee configure.log 
configure.log:
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -O3 -pipe -mfpu=neon -mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard -std=gnu11 -E
config.log:
configure:6746: checking how to run the C preprocessor
configure:6771: gcc -O3 -pipe -mfpu=neon -mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard -std=gnu11 -E -I/include -I/usr/include -I/usr/local/include -I/arm-linux-gnueabihf/include conftest.c
configure:6771: $? = 0

BUILD:
>arm-linux-gnueabihf-gcc -v
Reading specs from /home/user/Desktop/CLFS/cross-tools/bin/../lib/gcc/arm-linux-gnueabihf/4.9.0/specs
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/home/user/Desktop/CLFS/cross-tools/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../gcc/configure --prefix=/cross-tools --build=x86_64-cross-linux-gnu --host=x86_64-cross-linux-gnu --target=arm-linux-gnueabihf --with-sysroot=/home/user/Desktop/CLFS --with-local-prefix=/arm-linux-gnueabihf --with-native-system-header-dir=/arm-linux-gnueabihf/include --disable-nls --enable-shared --disable-static --enable-languages=c,c++ --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix --disable-multilib --with-mpfr=/cross-tools --with-gmp=/cross-tools --with-isl=/cross-tools --with-cloog=/cross-tools --with-mpc=/cross-tools --with-arch=armv7-a --with-float=hard --with-fpu=neon --disable-isl-version-check --with-system-zlib --enable-checking=release --enable-libstdcxx-time AR=ar 'CFLAGS_FOR_BUILD=-O3 -pipe -march=corei7 -mtune=corei7 -D__ARM_PCS_VFP' 'CXXFLAGS_FOR_BUILD=-O3 -pipe -march=corei7 -mtune=corei7 -D__ARM_PCS_VFP' 'CFLAGS_FOR_TARGET=-O3 -pipe' 'CXXFLAGS_FOR_TARGET=-O3 -pipe' LDFLAGS='-L/cross-tools/lib -Wl,-rpath -Wl,/cross-tools/lib'
Thread model: posix
gcc version 4.9.0 20140405 (experimental) (GCC)
>./configure --prefix=/${CLFS_TARGET}/usr --build=${CLFS_HOST} --host=${CLFS_TARGET} --disable-ifconfig --disable-logger --disable-syslogd --disable-whois --disable-servers CFLAGS="${targetCFLAGS}" CXXFLAGS="${targetCXXFLAGS}" LDFLAGS="${targetLDFLAGS}" CPPFLAGS="${targetCPPFLAGS}" 2>&1 | tee configure.log 
configure.log:
checking for library containing strerror... none required
checking how to run the C preprocessor... arm-linux-gnueabihf-gcc -std=gnu11 -E
config.log:
configure:6746: checking how to run the C preprocessor
configure:6771: arm-linux-gnueabihf-gcc -std=gnu11 -E -I/arm-linux-gnueabihf/include conftest.c
configure:6771: $? = 0

Interesting how Build (cross-compile) doesn't use CFLAGS yet still succeeds.

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

   I've recently encountered another program that had CC hardcoded, so
   passing the flag wouldn't do anything. I had to edit the Makefile.

inetutils (or in reality, autoconf/automake) don't hard code CC to
anything.

   If you would like more, I can whip out a test when I wake up and
   submit log results.

I'd like to see check.log and make.log at least -- since you haven't
specified what exactly fails or what the error is..  If you can make a
smaller test case, that would be wonderful.

Cheers, Alfred.

Attachment: inetutilsLogs.zip
Description: Zip archive


reply via email to

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