Startup Problem 2: GCC-3.3.3 - Pass 1

Kevin P. Fleming kpfleming at linuxfromscratch.org
Sun Feb 6 17:06:48 PST 2005


spamtrap2 at noemail.com wrote:

> lfs at 0[gcc-build]$ ../gcc-3.3.3/configure --prefix=/tools     --with-local-prefix=/tools     --disable-nls --enable-shared     --enable-languages=c
> Configuring for a i586-pc-linux-gnu host.
> Created "Makefile" in /mnt/hdb7/build/gcc-build using "mt-frag"
> /tools/bin/ld: unrecognized option '--as-needed'
> /tools/bin/ld: use the --help option for usage information
> collect2: ld returned 1 exit status
> *** The command 'gcc -o conftest -g -O2   conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.

Please read the FAQ and search the mailing list archives before posting 
additional questions... or get on the #lfs IRC channel where people can 
help you more directly. This specific problem has been covered 
repeatedly on this list, and the solution involves you either building 
the book a different way (not recommended) or switching to a different 
host distribution.



More information about the lfs-support mailing list