LFS binutils-build error : Pass 1
Am following instructions given in LFS v6.1.1 PDF and getting this error while compiling binutils-build.
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so: file format not recognized; treating as linker script
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so:5: syntax error
collect2: ld returned 1 exit status
make: *** [ld-new] Error 1
Did not have any problems in running, "configure, make, make install, make -C ld clean".
But this error is noticed while running, "make -C ld LIB_PATH=/tools/lib".
Searching (Googling) the net for such error revealed these answers but am not sure what the solution :
"libc.so.5 is too old. You'll need to install a distro which uses libc.so.6 if you want to install LFS"
"libc.so:5 : syntax error means that the script /usr/lib/libc.so is wrong at line 5.
Just log in as root and temporarily change the line 5 from
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 )
to GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )"
Could someone pls. help me ?