gcc second pass does not compile. LFS version 6.4 5.12
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.
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
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'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.
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?
Why are they in your script? These should be executed once at the given moment/time in the book (first 2 are from gcc pass1, last one from tcl). Don't re-activate them after the first instance, there is a chance that after you re-adjust the toolchain this will create problems. And besides, they are already linked the first time you executed the commands.
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):
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.
and the FS is on RAM, it is all lost when I shut down
I'm not sure if that is going to work (besides: you are definately going to have some 'fun' with scripting this). Maybe you can do chapter 5 this way (not even sure about that), but chapter 6 needs a fixed (not volatile) disk space (be it a real partition or a virtual disk).
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.
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:
only the top of the FS is on RAM
What do you mean by this? If /mnt/lfs is on RAM then you will end up with a LFS system on RAM....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.