LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Help : Some Very Common Problems With LFS (https://www.linuxquestions.org/questions/linux-from-scratch-13/help-some-very-common-problems-with-lfs-558363/)

rushadrenaline 06-01-2007 12:40 PM

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

weibullguy 06-01-2007 01:53 PM

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.

rushadrenaline 06-01-2007 02:33 PM

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

weibullguy 06-01-2007 03:08 PM

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.

biniou 06-02-2007 03:19 AM

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 ...

rushadrenaline 06-02-2007 10:49 AM

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,,,

weibullguy 06-02-2007 01:32 PM

You already asked that question and I already gave you a hint.


All times are GMT -5. The time now is 02:40 PM.