file format not recognized from ld right from the start????

Kevin Barnard kevin.barnard at gmail.com
Wed Nov 30 22:15:36 PST 2005


OK I thought I'd try to run through the LFS install.  I'm using a
basic Fedora Code 4 host minimal install with a few extra RPMs so I
can build.

Binutils pass 1 makes and installs but I get the following when I try
to create a LIB_PATH version of ld.  The same basic error happens when
I try to compile gcc as well

Is there something I missed or something I need to do like maybe try
an older distro to start from.

here's the output

lfs:/mnt/lfs/sources/binutils-build$ make -C ld
LIB_PATH=/tools/libmake: Entering directory
`/mnt/lfs/sources/binutils-build/ld'
make  all-recursive
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
Making all in po
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/ld/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld/po'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/ld'
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -g -O2   -o ld-new  ldgram.o ldlex.o lexsup.o
ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o
ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386linux.o  ../bfd/libbfd.la
../libiberty/libiberty.a  -ldl
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o ld-new
ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o
ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o
ei386linux.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libc.so:
file format not recognized; treating as linker script
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.0.2/../../../libc.so:5:
syntax error
collect2: ld returned 1 exit status
make[2]: *** [ld-new] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make: *** [all-recursive-am] Error 2
make: Leaving directory `/mnt/lfs/sources/binutils-build/ld'



--
Kevin Barnard

"Great Beauty, great strength, and great Riches,
 are really and truly of no great Use;
 a right Heart exceeds all." -- Benjamin Franklin



More information about the lfs-support mailing list