LWN.net Logo

Old kernels and new compilers

Old kernels and new compilers

Posted Aug 24, 2006 6:22 UTC (Thu) by eru (subscriber, #2753)
Parent article: Old kernels and new compilers

It is getting increasingly hard to find a current distribution with a compiler old enough to build 2.4 kernels, so these administrators are finding themselves in a bit of a bind. A 2.4 kernel which could be compiled with a current gcc would allow current systems to be used to build kernels for deployment on stable, production systems, many of which may not have their own compilers installed at all.

A bit odd argument: It is quite easy to install an older GCC sufficient for building a kernel with it, especially since you only have to build the C part, not C++ etc. Building the C support of, say, GCC 2.95.3 takes less time than konfiguring and building a 2.4 kernel...


(Log in to post comments)

Old kernels and new compilers

Posted Aug 24, 2006 16:24 UTC (Thu) by landley (guest, #6789) [Link]

The BusyBox website has a Red Hat 9 image we test-build with under QEMU.
(It also has a patch to build qemu under gcc 4.x if you want to do it
from source.)

Once you've got qemu installed, it's as simple as:

wget http://busybox.net/downloads/qemu/rh-9-shrike.img.bz2
bunzip2 rh-9-shrike.img.bz2
qemu rh-9-shrike.img

And voila, it pops up a new window with RH9 running in it.

Login as either user "busybox" or as root, password "busybox" in both
cases. If you prefer a gui to text mode, I think you can run "startx".
The emulated system should have an emulated (masqueraded) network
connection, so you can scp files in and out. Grab your source, build it,
tar it up, and scp the result back out.

Rob

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds