LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 07-01-2005, 03:01 PM   #1
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,045

Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
Question Please clarify... LFS 1.6 from a 1.4 starting point?


As many are doing, I'm trying to move a (Red Hat 8.0) 1.4 system directly to LFS 1.6 and it's giving me trouble. The toolchain "glibc" does not compile and various other issues.

Booting a 1.6 CD-ROM is really not an option in this case.

Last time I did an LFS, I was able to follow "cookbook" directions but not this time. What kernel-headers should I be compiling with, either for the toolchain or for "live?" What ... exactly ... are the changes in procedure (from what is published in the LFS 6 book) that I need to deal with?

I see the other similar threads but they don't seem to really get quite to the brass-tacks....
 
Old 07-05-2005, 02:31 AM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
1.6? You either really enjoy old school or you're referring to a different book than I'm thinking of.
 
Old 07-05-2005, 11:37 AM   #3
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 349

Rep: Reputation: 30
I think 1.4 and 1.6 referes to kernel versions 2.4 and 2.6 respectively, assuming that, the answer is you MUST use a 2.6 kernel on the host system to build the current version of LFS. Nptl enabled Glibc wont build without it.
 
Old 07-07-2005, 10:06 AM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,045

Original Poster
Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
Pray tell, why? When this new release of Linux was contemplated, how did they avoid the "which came first, the chicken or the egg" paradox?

I surmise that 2.6 requires the Native POSIX Threads Library (NPTL)?

If indeed I must "join 'em rather than beat 'em," what's the appropriate way to proceed? Exactly...
 
Old 07-07-2005, 01:05 PM   #5
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 349

Rep: Reputation: 30
Quote:
I surmise that 2.6 requires the Native POSIX Threads Library (NPTL)?
Nope, therefore no paradox, a linux kernel doesnt require glibc at all to run.

If your system currently runs a 2.4.x kernel with an older linuxthreads type of glibc, all you need to do is upgrade the kernel to 2.6.x, and then you can build an LFS 6.0 system.
 
Old 07-08-2005, 09:28 AM   #6
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,045

Original Poster
Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
Okay... that's what I thought.

Now, step 5.8 in the current build instructions (toolchain) have me constructing a glibc, with the NPTL option enabled, and I find that it will not build under 2.4. Is it therefore necessary to (a) use that glibc; and/or (b) to enable NPTL support in the toolchain builds? All that I need to do first is to successfully get a 2.6 kernel running, "stable enough to stand on" so to speak.

Some documentation makes reference to the new 2.6 "udev" programs, saying that the glibc build had to be this way. (I obviously do not want to try to bring-up the 2.6 kernel and find that it won't go in.) The 2.6 device-management system is altogether new to me.

When I did LFS last time, admittedly some time ago, there were of course no issues in building the newer glibc and running it under both the older kernel version and the newer one. I don't have any problems with the idea of building glibc twice and/or of having the several versions lying around. (In fact, one usually does.) But I do need to be certain that when everything's ready to fly it will actually work. Once I have a 2.6 kernel up-and-running underneath my system I'll be much more comfortable.

Tell me... am I flagellating myself here? Is a CD-ROM Boot approach "the right thing to do?" (I've never done that: I literally built from scratch.)
 
Old 07-12-2005, 03:08 PM   #7
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,045

Original Poster
Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
Another question...

When attempting to compile "glibc," with the "linuxthreads" add-in, intended as preparation for bringing-up a 2.6 kernel, I am now getting compile-errors during the make: "_errno" is undefined, etc.

"_errno," of all things?

(My intention is to get to the point of having a buildable 2.6 kernel, so that I can boot that and proceed, building the full glibc with the new threading-support ex post facto.)

I see references to this on google-searches, but ... what's going on here? Why on earth would glibc throw undefined symbols, let alone one like "_errno?" (Of all the symbols that I'd expect to always be defined, this one's high on the list.) This sort of goofball stuff is altogether new to me. (Maybe I didn't know how good I had it last time.) I'm sure I'm "doing it right" but, whazzup?

Many aTdHvAaNnKcSe ("thanks in advance") ! I really am, umm, learning a lot here!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need a starting point :l ach1lles Linux - Newbie 3 08-29-2005 11:06 AM
Best Starting Point rickseiden Linux From Scratch 5 11-30-2004 03:34 PM
Clarify Mount Point Usage jjohnston62 Linux - General 4 04-22-2004 09:49 PM
Need a starting point halzg Linux - Newbie 1 08-02-2003 08:47 PM
Need a starting point halzg Linux - Hardware 1 08-02-2003 11:28 AM


All times are GMT -5. The time now is 11:09 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