gcc-3.4.3 bootstrap error

Dan Nicholson dbn.lists at gmail.com
Thu Feb 23 06:32:34 PST 2006


On 2/23/06, Terror Duizel <duizeltjuh at hotmail.com> wrote:
> i did everything as the book says but i get the next error when bootstrap
> gcc-3.4.3:
>
> mv libgcc_s.so.1.tmp libgcc_s.so.1 && ln -s libgcc_s.so.1 libgcc_s.so
> /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so: file format not
> recognized; treating as linker script
> /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so:5: syntax error
> collect2: ld returned 1 exit status

What's your host distro?

As a workaround, try the following after clearing the gcc-build
directory.  Change --enable-shared to --disable-shared in the
configure line.  Then, if everything completes successfully, run the
following command after `make install':

ln -sv libgcc.a `gcc -print-libgcc-file-name | \
	sed 's/libgcc/&_eh/'`

This should give you a symlink libgcc_eh.a -> libgcc.a in
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3.

--
Dan



More information about the lfs-support mailing list