Linux From ScratchThis 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.
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.
Hi, I am going to install lfs system again after remove by mistake and now I'm going to use 2.6 kernel from beginning and I was wondering if it would be better to use 2.6.0 kernel headers? Is there any functions that is missing in glibc when I use 2.4 kernel header?
Another thing, when I installed lfs I followed the book completely and now I was planing to use gcc 3.3.2 and I was wondering if that was going to be a trouble, and is there any speed improvement in gcc 3.3.2 in compiling or in the system after compiling when using gcc 3.3.2?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
the newer gcc's have better optimizations for p4's. if you really want it
the best for a p4, you should use icc<intel's c compiler> for a bunch of
stuff<not the kernel>. for other cpu's, there is rarely a difference.
i've got 2.95.3, and 3.3.2 on my current system, and often compile stuff
with each, to see if 3.3.2 is faster. 3.3.2 is often slower than 2.95.3.
I've got an athlon xp though, and it's about as fast at p5 and p6 code as
it is at code optimized for itself. at least with gcc anyway.
the cvs lfs book uses gcc 3.3.2. if you never intend to use a 2.4 kernel on this system, then you should use the 2.6 headers. be sure to check the hints site as someone is keeping track of problems when migrating to the 2.6 kernel, also check out the nptl hint as i seem to remember that correcting issues with building against 2.6 headers.
1) Compile glibc against the 2.6 kernel headers regardless (use the --with-headers switch)
2) Unless you know what you are doing and don't mind fixing source as you go DON'T copy the raw 2.6 kernel headers ( include/{asm,linux} ) into your /usr/include (or /tools/usr/include), use RH's Fedora kernel headers.
Hints tips and advice can be sought from the lfs-hackers mailing list.
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.
Of course, you are free to install the 2.6.x kernel after you've finished building the LFS system. For this, the kernel-2_6-migration hint will be an excellent guide.
If you really want to use linux-2.6.x while building LFS, please read the archives of lfs-hackers (and possibly subscribe to it) and read the excellent NPTL hint.
Don't stuff with 2.6 base builds unless you know what you are doing :-)
I may be putting some scripts up sometime in the next week or so
( will be under http://www.linuxfromscratch/~ryan ) for the adventurous
( will be plfs v 2.3.1b8 ), kernel 2.6.1, glibc 2.3.3 w NPTL.
Most everything works beautifully :-)
Not for the faint of heart yet though :-)
If you want to help out with development come join us on lfs-hackers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.