having trouble with ld, and compiling gcc
jeroen at linuxfromscratch.org
Mon Aug 9 23:00:09 PDT 2004
Kevin P. Fleming said the following on 04-08-2004 20:06:
> first last wrote:
>> * Here is the output:
>> 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 'gcc -o conftest -g -O2 conftest.c' failed.
>> *** You must set the environment variable CC to a working
>> I got rid of /tools symlink last time this happened and I didn't get this
>> problem, but I had more problems later. So I thought I should start
>> over, and
>> make sure I was doing everything right before I asked questions.
> You are doing everything right, except for searching the list archives
> before reporting the problem. This problem has been discussed nearly
> every week for the last couple of months, and the cause is that you are
> using a host with newer tools than you are trying to build. Look at the
> other threads for solutions.
> Website team: can we get this added to the FAQ?
Kevin, do you mind creating a patch (or at least something in QA-format)
for this? I don't have the time to do the necessary research...
More information about the website