LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-01-2004, 10:31 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
should I use gcc-2.95.3 for kernel compilation


I asked a similar but different question in linux software. The question I asked their was if most distros use gcc-2.95.3 to compile the kernel.

Did you guys(LFS users) use gcc-2.95.3 to compile your kernel as the book instructs. Or is this overkill. Until LFS, I have never heard of such a thing. Any input would be appreciated.
 
Old 02-02-2004, 12:42 PM   #2
cjcuk
Member
 
Registered: Dec 2003
Distribution: Openwall, ~LFS
Posts: 128

Rep: Reputation: 15
I always use GCC 2.95.3 to compile the kernel, for the reasons that the book instructs.
 
Old 02-04-2004, 03:14 PM   #3
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
I didn't use gcc-2.95.3 to compile the kernel. To much trouble, to little gain. My system is rock solid even if I compiled the kernel with gcc-3
 
Old 07-21-2004, 11:15 PM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
I found this thread an thought I would bring it up to date...........

I just completed LFS 5.1 and after installing the X-server and KDE,
I re-compiled the kernel using the current Gcc instead of v.2.95 and had no problems.....no errors and my New LFS is pretty stable
and boots up Fast......Faster than my Slackware boxes actually.........
 
Old 07-21-2004, 11:23 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
wow, you built X and KDE from scratch, what a big job. I quit after getting online with links, that was enough for me.
 
Old 07-23-2004, 03:43 AM   #6
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
I used gcc-3.3.3 for compiling the 2.6.6 kernel... no problem here, tho I guess I had to install the 2.6.6 headers instead of the 2.4.26 headers before installing glibc in chapter 6?

anyway: as far as I know I haven't had any undetected errors so far...

greetz,
.-=~ iluvatar ~=-.
 
Old 07-23-2004, 10:11 AM   #7
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I don't think it is reccomended to install the 2.6 kernel headers, even if you are running a 2.6 kernel. You still should compile glibc against the 2.4-kernel headers. Below is from the LFS FAQ
Quote:
Currently, you can't build an LFS system by using linux-2.6.x instead of linux-2.4.x. This is because the kernel headers from 2.6.x are incompatible with other programs in LFS-5.x and will lead to compile errors. It is recommended to use linux-2.4.x in your build until LFS releases a new version which includes the 2.6.x kernel; according to the roadmap this will be LFS-6.0.
After your system is built using the 2.4 headers, you can update your running kernel to any version you like.

Last edited by shanenin; 07-23-2004 at 10:16 AM.
 
Old 07-24-2004, 12:07 PM   #8
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Quote:
Originally posted by shanenin
I don't think it is reccomended to install the 2.6 kernel headers, even if you are running a 2.6 kernel. You still should compile glibc against the 2.4-kernel headers. Below is from the LFS FAQ


After your system is built using the 2.4 headers, you can update your running kernel to any version you like.
You use the linux-libc-headers as described in the unstable branch if you want to use 2.6 headers.
 
Old 07-25-2004, 10:15 PM   #9
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
I have P4 so compiled my kernel 2.6.3 with icc instead of any of the gnu compilers
LFS 5.0
zoom zoom
 
Old 07-25-2004, 10:24 PM   #10
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
For LFS 5.x (kernel 2.4.x) on ix86 hardware you can pretty much get away with using gcc of your choice.
There are no real issues with using gcc-3.3.3.

On other architectures YMMV

If you are against a 2.6.x kernel and using glibc w nptl, some nptl testsuites will segfault if the
running 2.6.x kernel was compiled with 2.95.3. This however doesn't mean your glibc is borked.

That said, current (2.6.7) x86_64 kernel appears rock solid when built with gcc-3.4.1

Regards
[R]
 
  


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
compilation prob with gcc srinis Linux - Newbie 2 03-11-2005 04:06 PM
GCC Compilation Trouble Permaximus Linux - Software 3 11-03-2004 02:17 AM
GCC Compilation Errors The_Dish Programming 7 10-08-2004 04:33 PM
GCC 3.4.0 Compilation Crashes derryp Linux From Scratch 3 06-11-2004 04:22 PM
GCC version in kernel compilation Alpha_Beta Linux - Newbie 3 09-29-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration