Problem with gcc

Jeremy Utley jeremy at jutley.org
Sun Nov 28 10:45:15 PST 2004


Erik Hurtado Sepulveda wrote:

> Hello everywhere, for first time i trying to construct an LFS, i use 
> the book version 5.1.1 and when i try to compile GCC-3.3.3 - Pass 1 
> the scrip configure crashes at:
>
> lfs at head-end-1:/mnt/lfs/sources/gcc-build$ ../gcc-3.3.3/configure
> --prefix=/tools --with-local-prefix=/tools --disable-nls
> --enable-shared --enable-languages=c
> Configuring for a i686-pc-linux-gnu host.
> Created "Makefile" in /mnt/lfs/sources/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 '/usr/bin/gcc -o conftest -g -O2   conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.
>
> i try to detect the problem but i not see any stange
>
> regards
>
> PD. sorry for my poor english.
>
Please search the archives before posting in the future, as this 
question is asked on a regular basis.  The problem is you're using 
Fedora Core 2 or later to build LFS 5.1.1, and that won't work.  Either 
use a slightly older distro, or build the "Testing" version of LFS, 
which is exactly what will be come LFS 6 in the future.

-J-



More information about the lfs-support mailing list