Version 5.1.1 GCC build problem

Jim Martin jam at sgi.com
Sun Jul 11 18:15:17 PDT 2004


Hi
In version 5.1.1 Chapter 5 (GCC-3.3.3 - Pass 1)  - Prepare GCC for 
compilation
When I enter:
configure --prefix=/tools --with-local-prefix=/tools --disable-nls 
--enable-shared --enable-languages=c

I get:

Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /lfs/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.

This is on a Fedora Core 2 (2.6.5 kernel ) system.. The CC compiler
environment variable is set to /usr/bin/gcc

Any help ?
Thanks !
jim
------------



More information about the lfs-support mailing list