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.
hi friends ,
I am new to linux well i got stuck while building lfs. I am using lfs-6.3 live cd. In chapter 6 while compiling glibc-2.5.1 i got an error: segmentation fault after this whatever i try I get this error only
if i type make install cmd then also it gives me same error, i am stuck with this from 15 days , please help me out
A few Questions:
- You use the LFS 6.3 liveCD, are you also using the 6.3 book and the 6.3 packages that are on the CD?
- Did anything go wrong before you reached glibc in chapter 6?
You need to fix the problems that arise before you continue. If the configure or make step goes wrong there is no point of executing make install.
yes i am using livecd 6.3 and 6.3-packages as well , nothing went wrong till i reached ncurses in chapter 5, it was giving me error , to solve it i replaced the ncurces-5.6 package with its update package(ncurses-5.7) ,after that it get installed quite well , but when i reached chapter 6 i got segmentation fault in glibc package while issuing the make cmd.
The part you answered: i am using livecd 6.3 and 6.3-packages
The part you did not answer: Are you using the LFS 6.3 book as well? (You should)
Don't mix and match versions in any way: If you build LFS 6.3, also use the LFS 6.3 book and the LFS 6.3 packages.
Every LFS version works with the packages (and package versions!) that come with that specific LFS version. Substituting another version of a package might get you in trouble later on and this is not needed if you follow the book to the letter.
yes i am using lfs guide 6.3 only , ok let me tell u the whole story
I am using lfs live cd 6.3 , packages and lfs guide of the same version
.I have installed lfs on vmware 6.5 ,after adding lfs as user i incountered folling problem
1. sudo was not working
so i edited the sudoers file
2. while building binutils-2.17 i got error: permission denied
for this i changed the permission of /mnt/lfs folder from read only to read & write
3. ncurses-5.6 was then not configuring so i up dated the package
4. in stripping for most of the file i got messages
file already exist but i continued
5. while changing the enviroment i.e
chown root:root....
i got operation denied
so i logged in as root and the issued the commaned
6. then in chapter 6.4 i should get 'i have no name' but i got
root[/]~:
7 and last in glibc-2.5.1
i got segmentation fault while configuring
what should i do
if my starting is wrong please tell me whow to use lfs livecd in vmware
1. sudo was not working
so i edited the sudoers file
Sudo? You are working from the LFS liveCD, which does not need/use sudo. If you need to use sudo you are on the wrong path.
Quote:
2. while building binutils-2.17 i got error: permission denied
for this i changed the permission of /mnt/lfs folder from read only to read & write
Up to the last command in chapter 4.3 (su - lfs) everything is done as root. Are you sure you did not forget these 2 commands in chapter 4.3: chown -v lfs $LFS/tools and chown -v lfs $LFS/sources?
[quote]
Quote:
3. ncurses-5.6 was then not configuring so i up dated the package
Why? What error messages did you get? I do assume that the problems you encountered earlier (points 1 and 2) could have something to do with this.
Commenting on the rest is pointless until you fix points 1 and 2. I can only assume that you did not exactly follow the book and problems arose from deviating.
My advise: Wipe all you have done so far and start from scratch. Do not try to fix problems in any fancy way if you encounter them, but retrace your steps and try to figure out what went wrong and why. And do not continue with the build until you fix the problem that arises.
I am willing to help you with specific problems you encounter (if I can...). I'm not willing to take you by the hand and guide you step by step. Building LFS is primarily a learning experience and provides inside in how Linux is set up and works.
I'm not sure what your level of experience is and what your specific start-up problem(s) might be. Here are some general pointers:
- If LFS using vmware is the initial problem I can only point you to this link (answered by Gerard Beekmans, the creator of LFS): LFS using VMware. I never build LFS using any kind of virtual machine, so vm specific problems I probably cannot answer (although others might).
- Not following the LFS book (skipping chapters, replacing packages, editing commands, etc) is the most common reason why the LFS build fails. You must follow the book to the letter (especially if this is your first LFS build!) and solve problems when they arise before continuing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.