LinuxQuestions.org
Review your favorite Linux distribution.
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 06-01-2007, 01:40 PM   #1
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Rep: Reputation: 15
Question Help : Some Very Common Problems With LFS


Hello there. Guys just fix these probs,,,i have looked evrywhere and also sum of my frends told me that these are sum very common errors but none of them could help.PLEASE help me with my common queries:-
1.) Im building lfs from the live cd,,,,,is it ok or shall i rather go for a base distro(like redhat or ubuntu) to build lfs using the tarballs only.
2.) Secondly i dont understand that why do i need 2 build the glibc again and again,,like Glibc was built in 5.6 also,,,,then why again at 6.9,,,moreover i couldnt find the patches on my cd that are being talked about at the start of 6.9.The patches being talked about in section 6.9 are available only on the lfs site,but im using a live cd.

3.) thirdly at which point is it ok to shutdown ur pc while building lfs,,, i mean shall i build it all in one go,,,or is thee any point t lfs where in i can shuut down and come back at same point where i left.
4.) Also after finishing with part two of lfs book:-preparing for the build(i.e. till chapter 5) ,,,when i entered the chroot environment (6.4: Entering The Chroot environment),,thereafter all my previous build is lost,,i.e. whatever theings i built in chappter 5 under my $LFS directory cant be accessed,,,or if it can be then i dont know how to.

Please help me with my basic questioons as lfs is so irrestible that i cant stop continuing,,,so please assist me in continuing....
THANX
 
Old 06-01-2007, 02:53 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by rushadrenaline
1.) Im building lfs from the live cd,,,,,is it ok or shall i rather go for a base distro(like redhat or ubuntu) to build lfs using the tarballs only.
Yes, that's OK, that's one reason the LiveCD exists.
Quote:
Originally Posted by rushadrenaline
2.) Secondly i dont understand that why do i need 2 build the glibc again and again,,like Glibc was built in 5.6 also
Did you read the book? Read the book cover to cover and study the commands. If you still can't figure it out, you probably aren't ready for (C)LFS.
Quote:
Originally Posted by rushadrenaline
i couldnt find the patches on my cd that are being talked about at the start of 6.9.The patches being talked about in section 6.9 are available only on the lfs site,but im using a live cd.
You need to be more specific because all the patches needed by the book on the LiveCD should be there.
Quote:
Originally Posted by rushadrenaline
3.) thirdly at which point is it ok to shutdown ur pc while building lfs,,, i mean shall i build it all in one go,,,or is thee any point t lfs where in i can shuut down and come back at same point where i left.
Did you look at the Hints? http://www.linuxfromscratch.org/hint...and-resume.txt
Quote:
Originally Posted by rushadrenaline
4.) Also after finishing with part two of lfs book:-preparing for the build(i.e. till chapter 5) ,,,when i entered the chroot environment (6.4: Entering The Chroot environment),,thereafter all my previous build is lost,,i.e. whatever theings i built in chappter 5 under my $LFS directory cant be accessed,,,or if it can be then i dont know how to.
You're doing something wrong. Take your time and pay attention.
 
Old 06-01-2007, 03:33 PM   #3
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Original Poster
Rep: Reputation: 15
the patches namely--
glibc-2.3.6-linux_types-1.patch
glibc-2.3.6-inotif-1.patch
and also the package--
glibc-libidn-2.3.6.tar.bz2
arent there on the live cd (lfslivecd-x86-6.2-5)

Also with 6.9 - Glibc-2.3.6 i had problem which goes like this
can't get past Chapter 6.9. I followed everything up till now as close as possible to the book, but I still get this when I try to configure glibc-2.3.6:

Code:

root:~# ../glibc-2.3.6/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc


And this is the error:

Quote:
...
checking for a BSD-compatible install... /tools/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile

And how much time did it take for u to build ur first lfs.....did u build it all in one go or what
 
Old 06-01-2007, 04:08 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by rushadrenaline
the patches namely--
glibc-2.3.6-linux_types-1.patch
glibc-2.3.6-inotif-1.patch
and also the package--
glibc-libidn-2.3.6.tar.bz2
arent there on the live cd (lfslivecd-x86-6.2-5)
I'm surprised, I guess I thought everything was on the CD. In any event, you should have a network connection and can grab the patches and the missing tarball from the LFS site.
Quote:
Originally Posted by rushadrenaline
checking for a BSD-compatible install... /tools/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
You did something wrong and there will be more details in config.log (bet it tells you to look there too). Could be lots of things wrong, but my guess would be that something is wrong with your $PATH.
Quote:
Originally Posted by rushadrenaline
And how much time did it take for u to build ur first lfs.....did u build it all in one go or what
I use CLFS, not LFS so it takes a little longer because you have to build 32-bit and 64-bit versions of several packages, but about 9 or 10 hours total. I usually start a CLFS build Friday night. When I start the gcc test suite, I go to bed and finish Saturday.

Last edited by weibullguy; 06-01-2007 at 04:13 PM.
 
Old 06-02-2007, 04:19 AM   #5
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
Hello !

for my first LFS install using LiveCD, I took 2 days, just because my computer is really old (7 years), so it's computing power is nothing compared to the new stuff ... At that time I didn't stop the computer at all ... Now I run BLFS on top of my third build and I stopped my computer several times and were able to go on after that ...
 
Old 06-02-2007, 11:49 AM   #6
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Original Poster
Rep: Reputation: 15
Stuck Again
Hey guys,,,now the only problem im having is during gcc compilation,,,,,

../glibc-2.3.6/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc

The relevent error code in config.log is--
checking for suffix of object files....configure: error: cannot compile suffix of object files: cannot compile

Where do u think im going wrong,,,
 
Old 06-02-2007, 02:32 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
You already asked that question and I already gave you a hint.
 
  


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
LXer: Common Problems Modern Engineers Face LXer Syndicated Linux News 0 11-16-2006 02:24 AM
what is the common problems to login to linux server RHEL4 danykallery Linux - Networking 1 10-10-2006 10:36 AM
BOGUS.common.04y -> /home/common/Mailbox jayakrishnan Linux - Networking 0 11-19-2005 05:48 AM
samba-common Install Problems sihtworth Linux - Networking 4 10-23-2005 08:30 AM
Common Problems in Fedora Core 2? DriveMeCrazy Fedora - Installation 28 06-10-2004 06:46 AM


All times are GMT -5. The time now is 11:35 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration