Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 05-31-2010, 01:26 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 7

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

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, 03:09 PM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

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, 11:07 AM   #3
LQ Newbie
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Drunna..
I took LFS 6.6 for further reference (

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.


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 04:06 PM
LFS without gcc and glibc nazir Linux From Scratch 5 08-05-2005 12:23 PM
problems configuring glibc-2.3.4-20040701 for LFS build dimaash Linux From Scratch 1 07-17-2005 10: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 11:47 AM
LFS Chap 5 - gcc first make command errors antken Linux From Scratch 3 03-17-2003 11:38 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration