On 14/04/10 17:11, fantasy xu wrote:
> i have compiled glibc successfully at section 6.9.1 (Installation of Glibc),
> but when trying to install it, i got an error.the error message is
>
> CC="gcc" /usr/bin/perl scripts/test-installation.pl
> <http://test-installation.pl> /sources/glibc-build/
> cc1: error: unrecognized command line option
> "-W1,-dynamic-linker=/lib/ld-linux.so.2"
> Execution of gcc failed!
> and also told me, the script doesn't work if you're installing GNU libc not
> as your primary library!
>
> SilentHunter.fantasy
>
Given that the error is from test-installation.pl, it's possible that you made
a mistake
executing the commands on that page that relate to test-installation.pl, ie:
DL=$(readelf -l /bin/sh | sed -n 's...@.*interpret.*/tools\(.*\)]...@\1@p')
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
scripts/test-installation.pl
unset DL
Delete the glibc source and build directories and start the page again. Copy
and paste
the commands from Firefox to avoid typos
Andy
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page