Error While Trying Build of Binutils (1st Attempt)
Hi, I'm trying again to build LFS but now I'm stymied at the 1st build attempt of binutils-2.21. After creating the binutils-build directory, when I attempt to configure I get the following output:
Code:
lfs:/mnt/lfs/sources/binutils-build$ ../binutils-2.21/configure \ |
Quote:
http://www.linuxfromscratch.org/lfs/.../hostreqs.html What was the output? |
Thank you crts - I neglected to verify that my host distro (openSUSE) met all of the host requirements. So far I've advanced to ch.6.1 and am now logged-in as root. I cannot seem to access the packages I downloaded. When I try to cd to them I get the following:
Quote:
|
Hi,
If you are now doing chapter 6 (6.4 and beyound) then you are inside a chrooted environment and the /mnt/lfs is no longer needed/wanted. From within the chrooted environment you cd to /sources, not $LFS/sources. Have another look here: 6.4. Entering the Chroot Environment Hope this helps. |
Thank you druuna, I've been here before but forgot how to reach packages while 'root'. I'm using version 6.8 of LFS manual. In the past you gave me advice on re-entering chapter 6 of the manual. One of the steps says "check if LFS is mounted: *df -h | grep $LFS*". Should I expect some output from that command? Once again, thank you very much for your help and patience.
|
Hi,
Quote:
Every time you restart working on chapter 6 you need to do the following (copy/pasted from the previous thread): Code:
- become root user Hope this helps. |
Thanks for the quick reply. I think I messed-up. When I re-entered ch.6, I didn't get any output from the 'mount' check but I proceeded and am now at ch.6.16. What action do you suggest I take?
|
Hi,
Quote:
Just to make sure (not sure if you understand looking at the bold part in the above quote): The df -h | grep $LFS should be executed before you enter the chrooted environment, not after (which would not give any output). |
Hi,
Here is what I did: (1) became root; (2) did "echo $LFS" - no output so entered 'export' command - re-did "echo $LFS" - output=/mnt/lfs (3) entered "df -h | grep $LFS" - no output (4) entered "mount" commands (5) entered "chroot" command. I'm currently running "make -k check" in GCC. No unanticipated errors so far (at para. 6.16). Do I need to start over at para. 6.4 (Entering Chroot Environment)? Thanks. |
That looks fine and there's no need to start over again, just continue.
|
Hi and thanks. I'm at para.6.18 and when I attempt to un-tar "pkg-config-0.25.tar.gz" I get the following error:
Quote:
|
Hi,
It probably is corrupt. Download it again and check your downloaded file with the md5 sum given on this page: 3.2. All Packages In case you don't know how, after downloading: Code:
$ md5sum pkg-config-0.25.tar.gz Hope this helps. |
Hi,
That file was corrupt. I removed it and downloaded another file and the md5sum checked out OK. I had some difficulty with the Shadow file. It didn't download when the other packages were downloaded. I found it via Google and downloaded it. I've been using openSUSE 11.4 as the host distro and am now having difficulty booting it. I have a multi-booted system with Win7, Ubuntu, Mint, PCLOS in addition to openSUSE. This morning I updated PCLinuxOS and after that I no longer show SUSE on the boot menu. Before this I booted all distros from openSUSE. I'm currently booted in openSUSE via Super Grub disk. Also openSUSE is installed on an external hard drive. Thanks for your help. As soon as I fix this boot problem I'll get back on LFS. Any suggestions on the boot problem will be appreciated. |
Hi,
You're welcome :) BYW: If you ever need an LFS package have a look here: LFS Packages (not yet updated for the new 6.8 version at the moment). |
Hi,
Thanks for the LFS Packages info. When I tried to chroot this morning I get the following error: Quote:
|
Hi,
/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): Code:
ln -sv $LFS/tools / |
Hi,
That link is there. Here is the output: Quote:
|
Hi,
You did verify that $LFS is mounted? df -h | grep $LFS Does this provide any output: ls -l /tools/bin/env Hope this helps. |
Hi,
$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: Quote:
I don't know how or why they changed. Thank you for your patience and help. |
Hi,
I might have an idea what has happened. 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. Hope this helps. |
Hi,
Here are the results of advised actions: Quote:
|
Hi,
I've decided to start over from beginning. Thank you very much for your help. |
Hi 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. Good luck with the new build! |
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. Kind regards, Glen |
All times are GMT -5. The time now is 12:31 AM. |