checking for a BSD compatible install... /static/bin/install -c
checking whether ln -s works... yes
checking for pwd... /static/bin/pwd
checking build system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.80, ok
configure: error:
I have no name!:/static/src/gcc-3.2# mkdir ../gcc-build &&
> cd ../gcc-build &&
> ../gcc-3.2/configure --prefix=/static \
> --disable-nls --disable-shared &&
> echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h &&
> make BOOT_LDFLAGS=-static bootstrap &&
> make prefix=$LFS/static install &&
> ln -s gcc $LFS/static/bin/cc
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /static/src/gcc-build using "mt-frag"
../gcc-3.2/configure: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
I have no name!:/static/src/gcc-3.2# mkdir ../gcc-build &&
说明这是第6章的。
我怀疑可能是第5章的GCC没有做好静态。你可以回到第5章的状态,也就是回到主系统里,执行ldd $LFS/static/bin/*
看看是否全部都是静态了。因为gcc没有很好的静态,所以引起找不到gcc。