Error while 'chrooting' into build environment
Hi, I have taken up LFS as my college project. I have completed the test system installation so far and now going to continue with actual system building (i.e. chapter 6)
The problem is that when I give the 'chroot' command i.e. Quote:
Quote:
But when I manually check the /tools/bin directory,I can find the required file 'env'. So what can be the error? |
a) are you root?
b) do the command pwd from where you are issueing the Quote:
|
Yes, I am indeed performing the operation as root.
The o/p of pwd command is, as expected: Quote:
|
Hi,
I really doubt that the following is what was shown after the chroot command: Quote:
Also provide some basic information: - Are you building the latest stable LFS (6.8), - Which host are you using and did you make it compliant, - Did you have any problems in the previous chapters. Although the error message shown isn't correct/complete, the only thing I can come up with is this: Is $LFS (/mnt/lfs) mounted? Hope this helps. |
Here are the answers as requested:
1) Yes, I am using the latest build i.e. 6.8 2)I am using Linux Mint 11 (Katya) i686. I am not sure what you mean when you say "making it compliant" - but I have run the script to test whether the system is ready for compilation or not and the output was "compilation OK" 3)I did encounter a few problems while building the test system, e.g. GCC, GLIBC didn't compile successfully at first. But then i simply removed the respective files and folders and reinstalled it - then there was no problem. 4)Here is the output of "mount" command confirming that I have indeed mounted the /mnt/lfs i.e. $LFS partition: Quote:
Quote:
5)Here is the o/p of of the "/tools/bin/env" command which is a symlink to $LFS/tools/bin/env Quote:
|
Hi,
Quote:
Quote:
Quote:
Maybe something went wrong in chapter 5 (I'm guessing the toolchain or gcc), if that is the case all packages you build are not linked correctly. What is the output of the following command (as root): Code:
ldd /tools/bin/env Code:
ldd /tools/bin/env Hope this helps. |
Oh no!!! :cry: the bold parts are definitely missing. So I screwed up while installing, resulting in incorrect links. All the libraries are linked to the host system itself
So I am going to start the whole procedure again. But I do have one question - is there a way to verify that whatever packages that have been installed are set up properly? It would be immensely helpful if I could verify the correctness of the installed packages. Also can anyone suggest what would be the perfect host system for installing this LFS latest build? I am thinking of following distros: 1)Slackware (13.1/13.37) 2)Linux Mint(10/11) 3)CentOS (5.6/6) Which of these sounds good? |
Hi,
Quote:
Quote:
The LFS team created some test for packages/steps that are really important (have a look at 5.8 and 5.10). These test should not fail, if they do you need to figure out what went wrong and fix it before continuing! Quote:
If you do want to use a distro I would choose Slackware (I prefer Debian, but that one isn't on your list). Do make sure that you make the host compliant!! Not doing so will get you in trouble. TIP: Once you reach the end of chapter 5 I would advise you to make a backup of what you have build this far. This will make sure that you do not have to start from scratch if you make a mistake in chapter 6 (caution box near the bottom). Hope this helps. |
1 Attachment(s)
So I started rebuilding the system and soon encountered an error. The GCC pass-1 phase didn't complete successfully. I encountered problem while running command "make". I have attached the "config.log" file from GCC build process here. Please tell me what is wrong.
Thanks for the help. |
Hi,
Can you also post the error(s) shown in the terminal? EDIT: Is the make command installed on your host distro? |
1 Attachment(s)
Here is the output of "make" command as attachment.
And yes, make command is there on Slackware 13.37 (host) |
Hi,
The only time I've seen errors like this is when the host is not compliant. In this case I'm guessing that gcc related programs are missing on your host. Revisit the host requirements page and make sure _all_ is correct! BTW: Why don't you use the LFS liveCD instead of Slackware? |
2 Attachment(s)
Okay, so I am now past GCC compilation, it is successful. Now when I try to install glibc-2.13, I get following error:
Quote:
|
Hi,
The error message you posted is just that, the possible interesting parts are the lines before the error is shown. Please post those (if you are not sure, post the 10-15 lines before the make[1]: Failed to remake makefile `/mnt/lfs/tools/build/config.make'. line. One thing that I do notice: I don't see the glibc-build directory from which you should do the build steps (/mnt/lfs/sources/glibc-2.13 vs /mnt/lfs/sources/glibc-build) and there's also no /mnt/lfs/sources directory. BTW: I had a look at the output created by the version-check.txt script: That looks fine. EDIT: Please read this chapter so we don't have to keep asking for extra/correct information: 1.5. Help |
Here is what I do while installing any package:
1. Unpack the package archive in the host OS itself. 2. Change its permissions 3. cp -rv /path/to/<pkg-name> $LFS/tools 4. mkdir -v $LFS/tools/<pkg-build> 5. cd <pkg-build> 6. $LFS/tools/<pkg-name>/configure........... 7. make 8. make install IS there something wrong with this scheme? Do I have to create the sources directory? P.S. I will post the whole make log shortly. |
All times are GMT -5. The time now is 03:21 PM. |