LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 08-20-2010, 04:12 AM   #1
sunny keshav
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Rep: Reputation: 0
glibc -2.5.1 segmentation fault


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
 
Old 08-20-2010, 07:22 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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.

Hope this helps.
 
Old 08-21-2010, 04:31 AM   #3
sunny keshav
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 08-21-2010, 04:45 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You only answered part of question 1.

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.

Hope this helps.
 
Old 08-21-2010, 05:20 AM   #5
sunny keshav
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Original Poster
Rep: Reputation: 0
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

please stay with me, thanks for your help
 
Old 08-21-2010, 05:41 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I see a few things that cannot be right:
Quote:
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.

Hope this helps.
 
Old 08-23-2010, 02:05 AM   #7
sunny keshav
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Original Poster
Rep: Reputation: 0
ok can you help me to install lfs-6.3 in vmware-6.5
 
Old 08-23-2010, 03:07 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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.

Hope this helps.
 
1 members found this post helpful.
Old 08-23-2010, 03:56 AM   #9
sunny keshav
LQ Newbie
 
Registered: Aug 2010
Posts: 7

Original Poster
Rep: Reputation: 0
thanks a lot, now I am going to build the lfs from scratch please be with me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
glibc 2.3.2, ls and segmentation fault TPJ77 Slackware 2 02-21-2005 01:27 AM
segmentation fault tej Linux - Hardware 1 02-08-2005 12:27 AM
Segmentation fault SocialEngineer Linux - General 0 01-07-2005 12:49 PM
ls segmentation fault sucho Linux - General 1 06-23-2004 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration