LFS V6.3 5.5. Linux-22.214.171.124 API Headers
lee.mccafferty at gmail.com
Tue Jan 15 17:33:53 PST 2008
On Tue, 2008-01-15 at 17:22 -0800, Dan Nicholson wrote:
> 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-126.96.36.199$ make mrproper
> > CLEAN include/linux/version.h
> > lfs at lee-desktop:/mnt/lfs/sources/linux-188.8.131.52$ 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: *** [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'?
Wow, speedy reply. Thanks. That could be the problem, although I did do
the symlink I may have done it wrong.
which cc gives -> /usr/bin/cc
which gcc gives -> /usr/bin/gcc
If that should be /tools/bin/cc then I have indeed done it wrong.
More information about the lfs-support