DebianThis forum is for the discussion of Debian Linux.
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.
I'm running Etch now, but my server is still Sarge. Can I still compile kernels on Etch for Sarge even though the default gcc compiler is different? If not, how do I tell make-kpkg to use a different gcc version?
Correct me if I'm mistaken, but isn't Sarge 32bit and Etch 64bit? If so, the compiler shouldn't matter. When you do menuconfig, select the option (probably under Processor Type and Features) for 32bit instead of 64bit.
The default gcc compiler is different for Etch, I just need a hint on how to use an older gcc compiler with make-kpkg to make sure the kernel works for Sarge.
Yes, but any modules you are using must be compiled using same version of gcc on the etch system or they will not work. Safest bet is to use the gcc version for sarge.
About make-kpkg using different versions of gcc (this will also work for different compilers): first off you need to install the version you want to use. For example using gcc-x.y. Install it the standard way with apt-get install gcc-x.y (as you well know, but if any newbies read this...)
The default gcc compiler is different for Etch, I just need a hint on how to use an older gcc compiler with make-kpkg to make sure the kernel works for Sarge.
Use export CC=/usr/bin/gcc-3.3 which should be the default compiler in Sarge and you have it installed in the console/console window where you will compile. I doubt that it will make a difference though which compiler you use as long as you will not be compiling kernel modules on the Sarge machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.