LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-01-2006, 11:41 AM   #1
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Question Compile kernel for Sarge in Etch!?


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?
 
Old 06-02-2006, 06:31 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 06-02-2006, 10:06 PM   #3
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
You are mistaken

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.
 
Old 06-26-2006, 06:07 PM   #4
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
Refrased: can I use a kernel on Sarge that is compiled on Etch with gcc-4 ???
 
Old 06-26-2006, 07:01 PM   #5
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
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...)

Now in theory typing

Code:
MAKEFLAGS="CC=gcc-x.y" make-kpkg ...etc.etc...
should get the job done.
 
Old 06-26-2006, 08:45 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Moloko
You are mistaken

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.
 
Old 06-27-2006, 07:53 AM   #7
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
Thanks guys! I couldn't find much with Google on this, but that's what I needed to know
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sarge or etch? anti.corp Debian 16 12-17-2005 05:57 AM
Upgrade Sarge to Etch IBall Debian 1 11-23-2005 04:36 AM
compile the new kernel 2.6 on Debian Sarge cccc Debian 7 08-01-2005 07:26 AM
Upgrade from sarge to etch romrom Debian 5 06-07-2005 03:01 PM
Base install sarge - kernel compile? insyte Debian 3 08-13-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration