gcc second pass does not compile. LFS version 6.4 5.12
For some reason when I do make, it reconfigures, even though I have run configure script.
The the configure run by make does not recognize the arguments. They were recognized when I ran configure. Then, I get a link error: cannot find -lc Files libc.a/libc.so are in /tools/lib Please help, Ariel |
Hi,
I do assume: - your host system is up to specs as described by the LFS book, - you removed the gcc step 1 build before starting with gcc step 2, - nothing went wrong in the previous steps. Can you post: - the directory you are in when running the commands, - the commands you are using, - the last 10-15 lines of the error. |
I think that did not remove gcc of pass one. I followed the book, but maybe I missed this one. How to remove gcc pass 1? Where is it in the book?
|
more details
Hi,
I'm posting the error message, I think I was wrong its not a link error: Code:
/bin/sh ../../../gcc-4.3.2/libgcc/../mkinstalldirs . I did remove the build of gcc from pass 1. Thanks for your response. Ariel |
Hi,
There's still one thing you didn't answer (and I do believe your above problem is related): Is your host suitable to build LFS?? |
I'm using the LFS 6.3 live CD environment to build LFS 6.4, I compile and install the packages of LFS 6.4.
I carefully maintain a script that will put me where I left after reset. I have divided my disk into 3 partitions, one for LFS, the other for my use, and then a swap partiton. When I reboot the PC with the live CD in it, I manually mount the partition for my use, there I have the setup script that does all the rest. |
Hi,
Looks like something went wrong with the glibc step: ld: cannot find -lc -> ld is looking for libc, which is part of glibc. |
I guess I'll have to to go through 5.7 again - building glibc. As I mentioned, I have found the files: libc.a and libc.so
in /tools/lib |
Hi,
Something must have gone wrong somewhere along the road. Maybe glibc was installed (partially?) correct and 5.8. Adjusting the Toolchain went wrong (a lot of people slip up at this point). I don't And be sure your scripts are working the way you expect them to..... One other thing: Is this: /mnt/lfs/home/lfs/<build-dir> a personal preference? The book suggests /mnt/lfs/sources (3.1. Introduction). There's nothing wrong with it as long as it is by choice :) |
I want to do from glibc 5.7 all over again. I will have to adjust the toolchain again 5.8.
Do I have to do 5.9 tcl and 5.10 expect and 5.11 dejaGNU again? I think I should. Do I have to erase the installation of glibc and the result of the previous toolchain adjusting. If so, what should I erase? Where are the final loader and glibc installed? the content of setup script is: Quote:
Quote:
|
Hi,
Just start over again if you want to be sure. Mount $LFS and remove all that's there. I see this in your 'script': Quote:
I do think that the following steps from your script will issue warnings or are not needed (assuming it is run for a second/third/... time): Quote:
Quote:
|
Druuna,
Thank you. You are right about the links in the setup script. About the first lines of making the $LFS directory, making the account and chown, since I'm using a live CD and the FS is on RAM, it is all lost when I shut down. This time when I start all over again from 4.1 I'll be carful not activate the links more then once, check myself after each step. |
Hi,
Quote:
But maybe it is possible, never tried this before...... |
Well, only the top of the FS is on RAM. As I said I have three partitions of a real disk. On one of them I install LFS. The setup script makes sure that the partition is mounted and lfs user is defined, and generally all the stuff that is kept on directories above /mnt/lfs
such as /sys , that are on RAM. In the live CD docs it says that one can install LFS 6.3 with it, it has all packages on the CD. The difference is, that I got the packages of LFS 6.4 and saved them on the other partition, and follow the book of version 6.4. Are there problems that I overlooked? I'm doing this because no OS is installed on this computer, and I want that only LFS will be installed on it, without the trouble of installing first an OS. |
Hi,
Assuming you use the LFS 6.3 liveCD and want to install LFS 6.4 (packages/patches are on a stick/external disk): You need a minimal of 2 partitions, one for LFS and the other being swap. If you use the liveCD then there is no need for another OS. I get the feeling that you're complicating things too much (especially if you haven't installed LFS before and don't know how things are done). Quote:
|
All times are GMT -5. The time now is 03:56 AM. |