[SOLVED] Error While Trying Build of Binutils (1st Attempt)
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/tools should be present and is not removed during the build. Before you enter the chrooted environment, what does ls -l / show? If /tools -> /mnt/lfs/tools is not present, do the following (as root):
$LFS was not mounted although I did mount it this morning. Also "echo $LFS" did not work even though I fixed it this morning. Here are the latest commands and outputs:
dhcppc0:~ # export LFS=/mnt/lfs
dhcppc0:~ # echo $LFS
/mnt/lfs
dhcppc0:~ # mount -t ext3 /dev/sdb6 $LFS
dhcppc0:~ # df -h | grep $LFS
/dev/sdb6 9.9G 265M 9.1G 3% /mnt/lfs
dhcppc0:~ # ls -l /tools/bin/env
ls: cannot access /tools/bin/env: No such file or directory
dhcppc0:~ # 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
chroot: failed to run command `/tools/bin/env': No such file or directory
After becoming "root user" this morning I checked "echo $LFS": no output - ran "export LFS=/mnt/lfs" - that fixed "echo" command. Ran check if LFS was mounted - no output - mounted LFS using "df -h | grep $LFS" command. Ran the other "mount" commands.
I don't know how or why they changed. Thank you for your patience and help.
Unmount $LFS (umount /mnt/lfs) and post the output of ls -la /mnt/lfs/
I'm guessing you build (part of?) LFS while /dev/sdb6 was not mounted. If that is true then you need to delete everything and start from the beginning again.
Maybe the following will help you with you new build:
- Add the following line to your /root.bashrc file: export LFS=/mnt/lfs
- Add this to your /etc/fstab: /dev/sdb6 /mnt/lfs ext3 defaults 0 2
The above 2 suggestion need to be added to your host (Suse if I recall correctly). This way the LFS variable will always be set and LFS will be mounted when booting.
Hi,
Thanks again for all your help. I think some of the problem has to do with the external hard drive I'm installing lfs on. I've noticed that it doesn't light-up until I boot win 7.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.