From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 7.23 [en] Description of problem: Upgraded from FC 1 to FC 2. Tried to compile two programs that have compiled on FC 1 (Grass GIS 5.7 and SynCE 0.8). Both fail with message: C compiler cannot create executables. Upon examination of config.log, both programs list the following: /usr/local/bin/ld: unrecognized option '--as-needed' Version-Release number of selected component (if applicable): 2.15.90.0.3-5 How reproducible: Always Steps to Reproduce: 1.Type ./configure (options as needed) in source directory Additional info: Configure Results: checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler config.log: configure:829: checking whether the C compiler (gcc ) works configure:845: gcc -o conftest conftest.c 1>&5 /usr/local/bin/ld: unrecognized option '--as-needed' /usr/local/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status configure: failed program was: #line 840 "configure" #include "confdefs.h" main(){return(0);}
Move away /usr/local/bin/ld. It is not part of the distribution and GCC relies on various binutils features that are Required by the gcc rpms. /usr/bin/ld should be used. Alternatively, if you really for some weird reason must use a custom ld, you must take care of rebuilding it so that it will support all the required features.