LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LFS 6.7 Linux API Headers - make headers_check fails (https://www.linuxquestions.org/questions/linux-newbie-8/lfs-6-7-linux-api-headers-make-headers_check-fails-675196/)

gmontjr 10-08-2008 08:00 PM

LFS 6.7 Linux API Headers - make headers_check fails
 
The error I'm seeing:
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
gcc: error trying to exec '/tools/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as': execv: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


I don't know why the gcc lib file path has been pre-pended to the gcc executable path, nor do I know which 'config' file is telling gcc to search that bogus path. I would appreciate any help with this.
Thanks,
George

weibullguy 10-09-2008 04:15 AM

It's looking for /tools/i686-pc-linux-gnu/bin/as that should have been installed in section 5.12. Its not a bogus path. Do you have the /tools/i686-pc-linux-gnu/bin directory and does it contain as?

gmontjr 10-09-2008 07:03 AM

Re: LFS 6.7 Linux API Headers - make headers_check fails
 
Well, I meant bogus in that gcc is looking for 'as' in '/tools/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as' rather than just '/tools/i686-pc-linux-gnu/bin/as'
'as' is where it's supposed to be, under '/tools/i686-pc-linux-gnu/bin/as'. :scratch:
Ah, I just tried the 'dummy.c' test, and gcc returned the same error. So it's gcc that's messed up somehow. I don't see that huge path anywhere in 'gcc -dumpspecs', though. :scratch:
I'll have to look at "Adjusting the toolchain'

jaydoc 01-26-2009 12:27 AM

welbuilguy, you helped me on an earlier post, and from there I had no real problems until I ran into the exact same error as the OP at the same stage.

Quote:

root:/linux-2.6.27.12/linux-2.6.27.12# make mrproper
CLEAN scripts/basic
CLEAN scripts
CLEAN usr/include
CLEAN include/linux/version.h
root:/linux-2.6.27.12/linux-2.6.27.12# make headers_check
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/basic/fixdep
gcc: error trying to exec '/tools/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/as': execv: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

an ls of /tools/i686-pc-linux-gnu/bin shows...

Quote:

ar as ld ld-old nm objcopy objdump ranlib strip

As befits a newbie I am clueless abt this. A search in Google says that this means that GCC is not installed. That would be a bad omen, and I hope it is not the case.

I could do with some advice and help..!

jaydoc 01-26-2009 01:56 AM

oops, never saw that I ws resurrecting a 3 month old thread.


All times are GMT -5. The time now is 11:26 PM.