LFS V6.3 5.5. Linux- API Headers

Dan Nicholson dbn.lists at gmail.com
Tue Jan 15 17:22:32 PST 2008

On Jan 15, 2008 5:15 PM, Lee McCafferty <lee.mccafferty at gmail.com> wrote:
> Okay, I'm trying to install lfs onto an Ext3 partition on a dual core
> intel x86, with ubuntu 7.10 as my base system. In chapter 5.5 Linux API
> Headers I get this error after running make headers_check
> lfs at lee-desktop:/mnt/lfs/sources/linux-$ make mrproper
>   CLEAN   include/linux/version.h
> lfs at lee-desktop:/mnt/lfs/sources/linux-$ make headers_check
>   CHK     include/linux/version.h
>   UPD     include/linux/version.h
>   HOSTCC  scripts/basic/fixdep
> /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[1]: *** [scripts/basic/fixdep] Error 1
> make: *** [scripts_basic] Error 2
> I've searched for an answer on the list archives but could not find
> anything that described my problem. Any enlightenment would be greatly
> appreciated.

It appears you're still using your host's gcc instead of the one at
/tools/bin/gcc. Perhaps you missed the /tools/bin/cc -> gcc symlink?
Maybe /tools/bin is not at the beginning of your PATH? What's the
output of `which cc' and `which gcc'?


More information about the lfs-support mailing list