Cpp fails sanity check. Cannot compile gcc in chapter 6 after entering chroot env.
Hi,
I got mostly done with installing LFS, however, I had to shutdown, and exit the environment with the variables lost. I don't know what to do. I redefined $LFS and $LFS_TGT, mounted both partitions, and mounted these: Code:
mount -v --bind /dev $LFS/dev Oh yes, I use LFS 6.6 as my book. |
Quote:
|
Hi,
LFS and LFS_TGT should be available (which you did). You need to do the relevant parts of chapter 6.2 (especially 6.2.2 and 6.2.3. You should not have to do the mkdir's, but check them anyway). After that you enter the chrooted environment as described in 6.4. (see the NOTE in chapter 6.4). You should be set to continue from this point on. Hope this helps. |
Quote:
EDIT: Oh, and I also forgot something else. I needed to set my PATH so that /tools/bin is there. That's what I forgot! It was late as well. Now it's the morning. |
*Duplicate*
|
Actually nevermind. Didn't work :(
"LFS_TGT=/tools/bin/i686-lfs-linux-gnu" right? Same error occured. What do you think the problem is? |
Hi,
LFS_TGT=$(uname -m)-lfs-linux-gnu (see chapter 4.4). But...... Quote:
Are you sure the problem lies in the way you re-entered the chrooted environment? I do assume you are working on 6.16. GCC-4.4.3 and something fails. Are you sure all the previous steps worked ok? Can you post the actual error you see? Hope this helps. |
Quote:
Code:
checking how to run the C preprocessor... /lib/cpp Code:
This file contains any messages produced by compilers while |
Hi,
I'm not sure what to make of the output, never seen this before..... Can you explain this: Quote:
Quote:
Are you sure you started with the following steps (after the reboot): 1) 6.2.2. Mounting and Populating /dev mount -v --bind /dev $LFS/dev 2) 6.2.3. Mounting Virtual Kernel File Systems mount -vt devpts devpts $LFS/dev/pts mount -vt tmpfs shm $LFS/dev/shm mount -vt proc proc $LFS/proc mount -vt sysfs sysfs $LFS/sys 3) 6.4. Entering the Chroot Environment chroot "$LFS" /tools/bin/env -i \ HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ /tools/bin/bash --login +h Hope this helps. |
Quote:
I did those exact commands, in order! Well, I first mounted my partitions. But I did do those commands. |
Hi,
How about my other question? If you did the above commands you do not have to set your path to include /tools/bin, you said you had to. Please tell a bit more, you are very short in your answers... Did you check if /lib/cpp is present? |
Quote:
|
Quote:
EDIT: Actually it doesn't. Sorry for the confusion. Feel free to delete this post. |
Hi,
If /lib/cpp does not exist, something went wrong in chapter 5.10. GCC-4.4.3 - Pass 2. That is where, among other things, cpp is compiled, made and installed. Everything build in chapter 5 is used as a sane base in chapter 6. You need to "fix" that first, which means you need to start from scratch again. Too many things have changed by now....... No good news, but that's how it is. |
Quote:
|
All times are GMT -5. The time now is 07:51 PM. |