LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   i can't get in as directory (https://www.linuxquestions.org/questions/linux-from-scratch-13/i-cant-get-in-as-directory-4175544685/)

pepo_007 06-06-2015 03:38 PM

i can't get in as directory
 
hi everyone

i work from lfs book Version 7.6 and i reach to 6.7. Linux-3.16.2 API Headers and i get this error :(

Code:

root:/sources/linux-3.16.2#
root:/sources/linux-3.16.2# make INSTALL_HDR_PATH=dest headers_install
  CHK    include/generated/uapi/linux/version.h
  HOSTCC  scripts/basic/fixdep
gcc: error trying to exec '/tools/lib/gcc/i686-pc-linux-gnu/4.9.1/../../../../i686-pc-linux-gnu/bin/as': execv: No such file or directory
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 1
Makefile:454: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2

when i try this command
Code:


cd /tools/lib/gcc/i686-pc-linux-gnu/4.9.1/../../../../i686-pc-linux-gnu/bin/

its work and where execute ls -l this the result

Code:

root:/tools/i686-pc-linux-gnu/bin# ls -l
total 40048
-rwxr-xr-x 2 1001 1001 3797147 Jun  5 12:49 ar
-rwxrwxrwt 2 1001 1001 5428940 Jun  5 12:49 as
-rwxr-xr-x 4 1001 1001 5025057 Jun  5 12:49 ld
-rwxr-xr-x 4 1001 1001 5025057 Jun  5 12:49 ld.bfd
-rwxr-xr-x 2 1001 1001 3680120 Jun  5 12:49 nm
-rwxr-xr-x 2 1001 1001 4418657 Jun  5 12:49 objcopy
-rwxr-xr-x 2 1001 1001 5400089 Jun  5 12:49 objdump
-rwxr-xr-x 2 1001 1001 3797146 Jun  5 12:49 ranlib
-rwxr-xr-x 2 1001 1001 4418652 Jun  5 12:49 strip
root:/tools/i686-pc-linux-gnu/bin# cd as
bash: cd: as: Not a directory
root:/tools/i686-pc-linux-gnu/bin#

so why i can't go to as directory ??

and from where i686-pc-linux-gnu come ?? i review all commands i execute d but i can't find this ,, all i found is 9686-lfs-linux-gnu

Code:

root:/tools# ls -l
total 60
drwxr-xr-x  2 1001 1001 12288 Jun  6 17:36 bin
drwxr-xr-x  2 1001 1001  4096 Jun  5 12:22 etc
drwxr-xr-x  5 1001 1001  4096 Jun  5 12:39 i686-lfs-linux-gnu
drwxr-xr-x  4 1001 1001  4096 Jun  5 12:49 i686-pc-linux-gnu
drwxr-xr-x 38 1001 1001  4096 Jun  6 15:53 include
drwxr-xr-x 18 1001 1001 12288 Jun  6 15:53 lib
drwxr-xr-x  6 1001 1001  4096 Jun  6 11:51 libexec
drwxr-xr-x  7 1001 1001  4096 Jun  5 16:48 man
drwxr-xr-x  2 1001 1001  4096 Jun  6 15:51 sbin
drwxr-xr-x 16 1001 1001  4096 Jun  6 15:51 share
drwxr-xr-x  3 1001 1001  4096 Jun  5 12:22 var
root:/tools#


veerain 06-10-2015 06:20 AM

'as' is a file and not a directory. Directory starts with a 'd' in 'ls -l' output.

Why do you have both 'i686-lfs-linux-gnu' and 'i686-pc-linux-gnu'? Perhaps you erred somewhere.

Can you run the 'as' executable?

Run:

Code:

/tools/lib/gcc/i686-pc-linux-gnu/4.9.1/../../../../i686-pc-linux-gnu/bin/as
/tools/i686-pc-linux-gnu/bin/as


mayur_ 06-11-2015 06:58 AM

Did you ran the make command twice? Probably you should go back a few steps delete the directory and start again from untarring the tar ball

pepo_007 06-20-2015 08:08 AM

thankssss 4 all
i solve this problem . i found solution in this post
http://www.linuxquestions.org/questi...rs-4175534129/

i didn't know exactly how it's solved but i start over all from html version of book

....................

but is so hard to search in this forum , i use google and forum search to find solution but they did not get fit result and i researched manually and find this post in page 3 in this forum

because that can we make index for posts in this forum sorted by chapter number ?


All times are GMT -5. The time now is 01:03 PM.