Problem when building from LFS-6.3 Ubuntu Gusty
Alexander E. Patrakov
patrakov at ums.usu.ru
Wed Oct 3 07:40:53 MDT 2007
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
More information about the lfs-dev
mailing list