On Mon, Jan 09, 2017 at 03:05:14PM -0500, Dr. George E. Moore wrote:
> Building LFS using LFS-Book 7.10-systemd. Getting the following error
> message -Section "6.7. Linux-4.7.2 API Headers":
> 
> root:/sources/linux-4.7.2# make mrproper
>   CLEAN   include/generated
> root:/sources/linux-4.7.2# make INSTALL_HDR_PATH=dest headers_install
>   CHK     include/generated/uapi/linux/version.h
>   UPD     include/generated/uapi/linux/version.h
>   HOSTCC  scripts/basic/fixdep
> gcc: error trying to exec
> '/tools/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/as':
>  execv: No such file or directory
> make[1]: *** [scripts/Makefile.host:91: scripts/basic/fixdep] Error 1
> make: *** [Makefile:446: scripts_basic] Error 2
> 
> 
> The executable file "as" does exist at the indicated path:
> /tools/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/as'
>  
> 
> with the following mode:
> > -rwxr-xr-x 2 root root 1860328 Jan  7
> 19:47 ../../tools/x86_64-pc-linux-gnu/bin/as
> 
> Any thoughts on why it's not being located?

It probably references a file which isn't present.  We used to have
a FAQ for -support with a section on 'any No such file'.

Try using ldd on it.  You have only just started in chroot, so I
guess something in chapter 5 was mis-installed and linksed to the
host.  And if that mis-installed package is indeed pass-2
binutils you need to look at what you did in the chapter 5 build,
and in setting up the environment beforehand, to find out where you
did the wrong thing.

Oh, and this sort of question belongs on -support where people are
usually helpful.

Sorry those probably aren't the replies you were hoping for.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.'     -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to