The following bug has been reported via IRC:

$ make -C ld LIB_PATH=/tools/lib
...
/tools/bin/ld: unrecognized option '--hash-style=both'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[2]: *** [ld-new] Error 1

I.e., the problem is that the host gcc attempts to use the newly-built 
ld that doesn't accept the --hash-style=both option (from the default 
specs). The problem does not exist in DIY Linux, because the command is 
modified there as follows:

$ make -C ld CC="gcc -B/usr/bin/" LIB_PATH=/tools/lib

Please fix the LFS book, and add this to the errata page.

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

Reply via email to