Hi there,

i am already running a lfs-system and want to build a clfs-system now.
the output of

expect -c "spawn ls"
is
spawn ls

the output of
readelf -l a.out | grep ': /lib'
is
[Requesting program interpreter: /lib/ld-linux-x86-64.so.2]

and the output of
gcc -v
is
Reading specs from /tools/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/specs
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1.1/configure --prefix=/tools --disable-multilib 
--build=i486-cross-linux-gnu --host=x86_64-unknown-linux-gnu
--target=x86_64-unknown-linux-gnu --libexec=/tools/lib 
--with-local-prefix=/tools --enable-long-long --enable-c99 --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-nls 
--enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 4.1.1

so far, everything seems to be ok, also the configure finishes ok of the 
binutils. when i try to do
make configure-host
this is the output
Configuring in ./libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking for build system type... x86_64-unknown-linux-gnu
checking for host system-type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [configure-libiberty] Error 1


config.log says:
----

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:611: checking host system type
configure:632: checking target system type
configure:650: checking build system type
configure:705: checking for a BSD compatible install
configure:758: checking whether ln works
configure:782: checking whether ln -s works
configure:1867: checking for gcc
configure:1980: checking whether the C compiler (gcc  ) works
configure:1996: gcc -o conftest   conftest.c  1>&5
configure:2022: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2027: checking whether we are using GHU C
configure:2055: checking whether gcc accepts -g
configure:2122: checking for gnatbind
configure:2187: checking whether compiler driuer understands Ada
configure:2219: checking how to compare bootstrapped objects
configure:2317: checking for correct uersion of gmp.h
configure:2330: gcc -c -g -O2   conftest.c 1>&5
configure:2320:17: error: gmp.h: Ho such file or directory
configure:  In function 'main':
configure:2324: error:  'choke' undeclared (first use in this function)
configure:2324: error:  (Each undeclared identifier is reported only once
configure:2324: error: for each function it appears in.)
configure:2324: error: expected ';' before 'me'
configure: failed program was:
#line 2319 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:3407: checking for bison
configure:3407: checking for byacc
configure:3407: checking for yacc
configure:3447: checking for bison
configure:3486: checking for gm4
configure:3486: checking for gnum4
configure:3486: checking for m4
configure:3525: checking for flex
configure:3525: checking for lex
configure:3565: checking for flex
configure:3604: checking for makeinfo
configure:3657: checking for expect
configure:3698: checking for runtest
configure:3746: checking for x86 64-unknown-linux-gnu-ar
configure:3821: checking for x86 64-unknown-linux-gnu-as
configure:3896: checking for x86 64-unknown-linux-gnu-dlltool
configure:3927: checking for dlltool
configure:3971: checking for x86 64-unknown-linux-gnu-ld
configure:4046: checking for x86 64-unknown-linux-gnu-lipo
configure:4077: checking for lipo
configure:4121: checking for x86 64-unknown-linux-gnu-nm
configure:4196: checking for x86 64-unknown-linux-gnu-ranlib
configure:4266: checking for x86 64-unknown-linux-gnu-strip
configure:4336: checking for x86 64-unknown-linux-gnu-windres
configure:4367: checking for windres
configure:4411: checking for x86 64-unknown-linux-gnu-objcopy
configure:4486: checking for x86 64-unknown-linux-gnu-objdump
configure:4866: checking for x86_64-unknown-linux-gnu-gcj
configure:4897: checking for gcj
configure:4957: checking for x86 64-unknown-linux-gnu-gfortran
configure:4988: checking for gfortran
configure:5113: checking for ar
configure:5266: checking for as
configure:5419: checking for dlltool
configure:5473: checking for x86 64-unknown-linux-gnu-dlltool
configure:5504: checking for dlltool
configure:5572: checking for ld
configure:5725: checking for lipo
configure:5779: checking for x86 64-unknown-linux-gnu-lipo
configure:5810: checking for lipo
configure:5878: checking for nm
configure:6031: checking for objdump
configure:6184: checking for ranlib
configure:6337: checking for strip
configure:6490: checking for windres
configure:6544: checking for x86 64-unknown-linux-gnu-windres
configure:6575: checking for windres
configure:6623: checking where to find the target ar
configure:6656: checking where to find the target as
configure:6689: checking where to find the target cc
configure:6722: checking where to find the target c++
configure:6758: checking where to find the target c++ for libstdc++
configure:6794: checking where to find the target dlltool
configure:6827: checking where to find the target gcc
configure:6860: checking where to find the target gcj
configure:6896: checking where to find the target gfortran
configure:6932: checking where to find the target ld
configure:6965: checking where to find the target lipo
configure:6988: checking where to find the target nm
configure:7021: checking where to find the target objdump
configure:7054: checking where to find the target ranlib
configure:7087: checking where to find the target strip
configure:7120: checking where to find the target windres
configure:7181: checking whether to enable maintainer-specific portions of 
Makefiles

----


Does anybody know how to fix this problem?

thanks a lot!

toby
 

_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to