LFS 6.1.1 - Ch 5 GCC Build Error
dbn.lists at gmail.com
Sat Aug 5 08:07:15 PDT 2006
On 8/4/06, ksudhindra at issc.unipune.ernet.in
<ksudhindra at issc.unipune.ernet.in> wrote:
> /tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libc.so: file
> format not recognized; treating as linker script
> syntax error
> 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.
The problem is that ld from the binutils you just built isn't working.
IIRC, this was a problem with binutils-22.214.171.124.2.2 on newer Fedora
systems. So, it could be difficult to get LFS-6.1.1 working on your
Fortunately for you, a new stable version of LFS was just released
where this isn't a problem anymore.
Sorry if that means duplicating some effort. In the long run, this
will be the best path forward, though.
More information about the lfs-support