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 12-21-2008, 07:31 AM   #1
Funkster
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Rep: Reputation: 0
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6?


Hi all,

I have been working my way through LFS 6.3 using sources from the LiveCD, and everything appeared to be going well until I got to the point of rebuilding GCC again in chapter 6.12, at which point it was expecting things like stdio.h to be in /usr/include/i686-pc-linux-gnu instead of just /usr/include.

I managed to make GCC build by symlinking the expected include dir into the real one, but I thought that this is likely to cause problems so I thought I'd go back and restart chapter 6 as I must have done something wrong.

Alas, I'm now finding that I can't rebuild GlibC (from freshly unpacked source and new build folder) as it goes into an infinite loop on tls.make, and if I remove tls.make.c it'll just go on to get stuck on some other point.

I have checked my system clock and hardware clock and all appears to be well, there are no warnings reported during make when it gets stuck, and all other threads on t'internet about glibc make loops have provided no clues.

Can I rebuild glibc after having adjusted the toolchain as per chapter 6.10? If not, what do I need to do to put it back how it was before I started chapter 6? I'd prefer not to have to re-do the whole of chapter 5!

Many thanks in advance, apologies for the long explanation...
--
Olly
 
Old 12-23-2008, 01:22 PM   #2
bines
Member
 
Registered: Dec 2008
Location: Hereford, UK
Distribution: LFS (when it's finished)
Posts: 30

Rep: Reputation: 16
Hi Funkster,

I'm no expert but I'll do my best:

After completing chapter 5, issuing the command: ls -a shows just the following:

. .. lost+found setenv.sh sources tools

Being smart(!) I also made a backup of /tools before I started chapter 6 - just in case - but that doesn't help you much!

I would remove any other directories at this point because they must have been made in chapter 6. Also go through the sources and remove any directories which were made during compilation. There should only be sources and patches there. Getting rid of anything else ensures a 'clean' environment in which to build those chapter 6 packages again.

Then shut down the computer and start it again from the LiveCD. Log in by typing the usual lines but DON'T run the setenv.sh script.
Now type: cd $LFS and proceed to make the three directories /dev, /proc and /sys.

Then continue with chapter 6 by creating the initial device nodes then writing the devpop.sh script listed in the hint by Joseph Dupre. Then follow the book from there.

Hopefully that will get you up and running again. Best of luck.
 
Old 12-24-2008, 06:30 AM   #3
Funkster
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Hi bines,

Many thanks for the help... I did make a backup of tools after chapter 5 but after a couple of hours of faffing around I just ended up getting myself into more and more of a mess and nothing was working properly!

So, I scrubbed the lot and let JHALFS build me a fresh setup while I read the rest of the book :oD

Cheers,
--
Olly
 
  


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
LFS Chapter 5 Questions kz_chopper Linux From Scratch 7 02-04-2007 08:53 AM
lfs chapter 6.12 deucedlt Linux From Scratch 1 08-13-2006 10:03 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 10:28 PM


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

Main Menu
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