LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-31-2010, 12:26 PM   #1
kamleshk1
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
LFS 6.5 - Chap 5 - Why build GCC before Glibc


Hi,
Referring "LFS-BOOK-6.5" book

Want to know if in chapter 5 the build of GCC (Pass 1) can be done after Glibc (Pass 1) or should the order be followed as it is.

As the book says Binutils should be build before GCC and Glibc (5.2. Toolchain Technical Notes), do we have any section which talks about building GCC before Glibc??
Do we have any specific reasons for building GCC before Glibc, If Yes please do mention why and where is it being used?

Thanks for any help or hint..
 
Old 05-31-2010, 02:09 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Don't use LFS version 6.5.

For whatever reason this version is not OK, LFS 6.4 or the current 6.6 are good candidates to use.

The LFS site itself does have the documents for this version, but no packages are available from their own site (which might get you into trouble).

Do yourself a favor and switch to another version.

To answer your question: You need to follow the order the book tells you to. A lot of packages have dependencies that need to be installed first. This is especially true for the core packages you mention (gcc, glibc and binutils).

Hope this helps.
 
Old 06-01-2010, 10:07 AM   #3
kamleshk1
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Drunna..
I took LFS 6.6 for further reference (http://www.linuxfromscratch.org/lfs/...S-BOOK-6.6.pdf)

I agree there could be some dependency, It is just that i'm little curious to know about it!!
Would be great if you/somebody can answer how exactly the dependency between GCC and Glibc works
Atleast one valid/simple reason, as is the case in book for binutils being built before GCC and Glibc.
 
  


Reply

Tags
before, build, gcc, glibc, lfs


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
[SOLVED] [LFS 6.6] Chap 5.7 - Glibc-2.11.1 configure WARNING igor012 Linux From Scratch 7 04-06-2010 03:06 PM
LFS without gcc and glibc nazir Linux From Scratch 5 08-05-2005 11:23 AM
problems configuring glibc-2.3.4-20040701 for LFS build dimaash Linux From Scratch 1 07-17-2005 09:00 AM
3rd LFS build (this time on x86-64): about GCC and GLIBC and other questions... ParticleHunter Linux From Scratch 1 08-16-2004 10:47 AM
LFS Chap 5 - gcc first make command errors antken Linux From Scratch 3 03-17-2003 10:38 PM


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