5.9 binutils configure doesn't go through

Andreas Gansen c64zottel at gmail.com
Thu Dec 24 13:23:33 PST 2009


hello,

i am trying the non-stable version and it stopped in chapter 5.9 with this:

lfs at battlecat:/mnt/lfs/sources/binutils-build$ CC="$LFS_TGT-gcc
-B/tools/lib/"    AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib
../binutils-2.20/configure --prefix=/tools    --disable-nls
--with-lib-path=/tools/lib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... i686-lfs-linux-gnu-gcc -B/tools/lib/
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
`/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

2nd. try:
lfs at battlecat:/mnt/lfs/sources/binutils-build$ CC="$LFS_TGT-gcc
-B/tools/lib/"    AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib
../binutils-2.20/configure --prefix=/tools    --disable-nls
--with-lib-path=/tools/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-lfs-linux-gnu
checking target system type... i686-lfs-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for i686-lfs-linux-gnu-gcc... i686-lfs-linux-gnu-gcc -B/tools/lib/
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-lfs-linux-gnu-gcc -B/tools/lib/ accepts -g... yes
checking for i686-lfs-linux-gnu-gcc -B/tools/lib/ option to accept ISO
C89... none needed
checking for i686-lfs-linux-gnu-g++... no
checking for i686-lfs-linux-gnu-c++... no
checking for i686-lfs-linux-gnu-gpp... no
checking for i686-lfs-linux-gnu-aCC... no
checking for i686-lfs-linux-gnu-CC... no
checking for i686-lfs-linux-gnu-cxx... no
checking for i686-lfs-linux-gnu-cc++... no
checking for i686-lfs-linux-gnu-cl.exe... no
checking for i686-lfs-linux-gnu-FCC... no
checking for i686-lfs-linux-gnu-KCC... no
checking for i686-lfs-linux-gnu-RCC... no
checking for i686-lfs-linux-gnu-xlC_r... no
checking for i686-lfs-linux-gnu-xlC... no
checking for g++... g++
configure: WARNING: using cross tools not prefixed with host triplet
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for i686-lfs-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for i686-lfs-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp
--ignore-initial=16 $$f1 $$f2
checking for version 0.10 of PPL... no
checking for correct version of CLooG... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... no
checking for ar... (cached) i686-lfs-linux-gnu-ar
checking for i686-lfs-linux-gnu-ar... (cached) i686-lfs-linux-gnu-ar
checking for i686-lfs-linux-gnu-as... i686-lfs-linux-gnu-as
checking for i686-lfs-linux-gnu-dlltool... no
checking for ld... (cached)
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.2/../../../../i686-lfs-linux-gnu/bin/ld
checking for i686-lfs-linux-gnu-ld... (cached)
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.2/../../../../i686-lfs-linux-gnu/bin/ld
checking for i686-lfs-linux-gnu-lipo... no
checking for i686-lfs-linux-gnu-nm... i686-lfs-linux-gnu-nm
checking for ranlib... (cached) i686-lfs-linux-gnu-ranlib
checking for i686-lfs-linux-gnu-ranlib... (cached) i686-lfs-linux-gnu-ranlib
checking for i686-lfs-linux-gnu-strip... i686-lfs-linux-gnu-strip
checking for i686-lfs-linux-gnu-windres... no
checking for i686-lfs-linux-gnu-windmc... no
checking for i686-lfs-linux-gnu-objcopy... i686-lfs-linux-gnu-objcopy
checking for i686-lfs-linux-gnu-objdump... i686-lfs-linux-gnu-objdump
checking where to find the target ar... pre-installed
checking where to find the target as... pre-installed
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... pre-installed
checking where to find the target windres... pre-installed
checking where to find the target windmc... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile


As you can see the modified command, with --host=$LFS_TGT goes
through, i get the WARNING. Is that ok? Or do i have to use --build?

There is also written on chapter  5.7 glibc:
../glibc-2.11/configure --prefix=/tools \
    --host=$LFS_TGT --build=$(../glibc-2.11/scripts/config.guess) \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.18 --with-headers=/tools/include \
    libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes

Should --enable-kernel=2.6.18 not be updated to 2.6.32?

Thanks for you help


HOST is ubuntu 8.04, 32bit



More information about the lfs-support mailing list