Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Usually you have to add the compatibility libs to compile code that was designed for older GCC versions. The more specialized the compile (like kernels) the more you need these libs. For instance in Fedora we have compat-gcc-34 for compatibility with gcc 3.4. They only seem to do this on major code jumps (2.96, 3.4).
The GCC is not backwards compatible, at least it doesn't have to be, if a File depends on special funtions which are no longer availible in the next version. Especially the Kernel might heavyly depend on functions which were special to the GCC of this time to provide an optimized Code. But you can have more than one gcc on your PC ... personnally i still use the gcc3.3 for special libs i have to work with.
Between version 3 and 4 GCC was under heavy development so don't expect it to be very compatible with earlier Code, at least if its like Kernel Code.
Ok, using older kernels (2.4 to 2.6, Major revision change) is not a big deal on the compile based distros(slack, gentoo,etc) but on the package based distros (Fedora, Suse, etc) the system is very tightly integrated with the kernel. If you want to run older kernels, it will be much easier if you use a distro designed to do this type of thing (like gentoo).
The backward compatible libs should be available on suse through yast.
The kernel builds for all of the 2.4.3X tries that I have made have built fast. Roughly 10 to 20 times faster than the 2.6.2X builds. But that is not the point of this post! I have been posting about compile error messages with later versions of GCC when trying to compile the 2.4.3X kernels. I have had much fewer errors trying the 2.4.3X kernels.
1) Where can I get the source code to build the compatibility libraries for GCC? As opposed to using a distribution rpm or package. Isn't this something that GNU provides?
2) If you want to compare the build times for the 2.4.3X and the 2.6.2X kernels, you can time them on your system. As you probably already know, they may build faster if you do not build them clean, including all modules. But I am new to all this stuff!
I tried an older version of GCC without using the compatiability libraries and the newer GCC, and there were no build errors. The older version of GCC seemed to solve that problem. It does not help me to figure out why the newer version would not work. I have not been able to try to use the compatibility libraries yet.
For the timing data on the kernel build of 2.4.36:
For the timing data on the kernel build of 2.6.20:
It was still building past 70 minutes. It shortly crashed after that. Some other tries without any time data were about an hour plus some naps.
That time utility is neat. Thank you for that comment. Thank you for the compatibility library comment too. It may help me to get the newer version of GCC to work to build the older kernels.
The 2.4.3X kernel does not boot but it builds without error.