make: gcc: Command not found
Hello,
My first question. I have been installing LFS 7.1 on my system during the last 3 days. I am reading the book to the letter. Everything has gone very fine until today. At 6.7 this happened: Code:
root:/sources# cd linux-3.2.6 Thanks in advance! |
Hi
You do have a problem with gcc as you have posted http://www.linuxquestions.org/questi...5/#post4695491 Do you think this might be causing problems? |
Hi. Thanks for your answer. I don't think there is any problem with gcc itself, since I managed to build all packages in chapter 5 using gcc. It seems like there is broken link or something like that. gcc is there, in /tools/bin/ but it cannot be run.
Code:
root:/sources/linux-3.2.6# echo $PATH |
You should be building gcc-4.7.0
Did you reboot or leave chroot? Did you re enter correctly Quote:
Quote:
|
Quote:
Quote:
Code:
mount -v --bind /dev $LFS/dev Quote:
Something must have gone wrong after I started chapter 6. As I said the whole chapter 5 went smoothly and I have no reasons to believe that there is anything wrong with the toolchain. Last night I quit after building Xz-utils (chapter 5.33.1) and I had no problems at all. Today continued by changing ownership of /tools by Code:
chown -R root:root $LFS/tools |
Hi
The host system requirements for 7.1 Quote:
Here Quote:
|
All commands in /tools/bin are available, except for gcc.
Code:
root:/tools/bin# ./gcc I could start all over again from the beginning, but I know there is nothing I can do different. I followed the book to the letter. |
Hi
Something must of gone wrong somewhere tho, Have you physically check it,s not there. |
Hi,
Quote:
|
if you cd into /tools/bin just to check if it,s there if it,s not then gcc went wrong
|
Code:
root /tools/bin # ls -al gcc |
When you rebooted/restarted did you mount the partition in chapter 2.4 Then do 6.2.2 -6.2.3 before chroot
|
I did 6.2.2-6.2.3 and then chroot. I don't need to remount, since there is an entry for LFS in /etc/fstab. I would not be able to do the command above if the partition was not mounted.
|
Did your host pass the requriements test I know it failed on gcc can you just post the output . Others wise I,m at a loss
|
Code:
bash version-check.sh Np, thanks for your help. I am totally confused as well. Can't understand why I get the message "gcc not found". I assume that a fault in gcc would give an error when attempting to run gcc, but what it tells me is that gcc is not there! Even tho ls gcc is showing that the file is there. |
All times are GMT -5. The time now is 07:48 PM. |