Robert Connolly wrote:
Hi. Uhm, using glibc-20050321. I get this in chapter 5's adjusting:

lfs:/mnt/lfs/sources/binutils-build$ echo 'main(){}' > dummy.c
lfs:/mnt/lfs/sources/binutils-build$ cc dummy.c
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.so: file format not recognized; treating as linker script
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.so:5: parse error
collect2: ld returned 1 exit status
lfs:/mnt/lfs/sources/binutils-build$ readelf -l a.out | grep ': /tools'
readelf: Error: 'a.out': No such file


$ cat /tools/lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /tools/lib/libc.so.6 /tools/lib/libc_nonshared.a AS_NEEDED ( /tools/lib/ld-linux.so.2 ) )


So, I removed "AS_NEEDED ( /tools/lib/ld-linux.so.2 )" and it works.

Just a heads up.

robert

I Got the same error using glibc-20050314.

--
Eric Hobbs
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to