hello,i got a big hassle when compile gcc .i have successfully compiled the gmp,mpfr and mpc ,and the configure option of gcc is :
../gcc-4.5.1/configure --target=i686-lfs-linux-gnu --prefix=/tools --disable -nls --disable-shared --disable-multilib --disable-decimal-float --disable-threa ds --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c --with-gmp=/tools --with-mpfr=/tools --with-mpc=/tools --without-ppl --without-c loog (the directory /tools point to the $LFS/tools) when i make ,a error occured: checking for suffix of object files... configure: error: in `/mnt/lfs/gcc-build/i686-lfs-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/mnt/lfs/gcc-build' make: *** [all] Error 2 and i check the config.log .found all the error message below: conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.c:53:20: error: libelf.h: No such file or directory conftest.c:20:20: error: libelf.h: No such file or directory conftest.c:53:18: error: gelf.h: No such file or directory conftest.c:20:18: error: gelf.h: No such file or directory conftest.c:53:27: error: libelf/libelf.h: No such file or directory conftest.c:20:27: error: libelf/libelf.h: No such file or directory conftest.c:53:25: error: libelf/gelf.h: No such file or directory conftest.c:20:25: error: libelf/gelf.h: No such file or directory i have googled but not found solution . i doubt whether the packet needs a patch? eh...i don't really konw.i'm trying out the lfs project . Regards!. many Thx! ------------------------------- 技术改变生活! Technology changes life ! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page