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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-01-2004, 10:31 PM
|
#1
|
Member
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987
Rep:
|
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.
|
|
|
02-02-2004, 12:42 PM
|
#2
|
Member
Registered: Dec 2003
Distribution: Openwall, ~LFS
Posts: 128
Rep:
|
I always use GCC 2.95.3 to compile the kernel, for the reasons that the book instructs.
|
|
|
02-04-2004, 03:14 PM
|
#3
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
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
|
|
|
07-21-2004, 11:15 PM
|
#4
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
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.........
|
|
|
07-21-2004, 11:23 PM
|
#5
|
Member
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987
Original Poster
Rep:
|
wow, you built X and KDE from scratch, what a big job. I quit after getting online with links, that was enough for me.
|
|
|
07-23-2004, 03:43 AM
|
#6
|
Member
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403
Rep:
|
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 ~=-.
|
|
|
07-23-2004, 10:11 AM
|
#7
|
Member
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987
Original Poster
Rep:
|
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.
|
|
|
07-24-2004, 12:07 PM
|
#8
|
Member
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227
Rep:
|
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.
|
|
|
07-25-2004, 10:15 PM
|
#9
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
I have P4 so compiled my kernel 2.6.3 with icc instead of any of the gnu compilers
LFS 5.0
zoom zoom
|
|
|
07-25-2004, 10:24 PM
|
#10
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
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]
|
|
|
All times are GMT -5. The time now is 07:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|