OpenVZ Forum


Home » General » Support » Compile kernel
Compile kernel [message #979] Mon, 23 January 2006 22:21 Go to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
It looks like a bunch of driver\module issues I've been having are boiling down to different versions of gcc, with me using 3.4 and you guys using 3.3. How do I compile my kernel with 3.4?
Re: Compile kernel [message #981 is a reply to message #979] Tue, 24 January 2006 08:48 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
You can use compat-gcc-33 and fill the bug with gcc 3.4 compile errors in order to get them fixed in following kernels.

http://static.openvz.org/openvz_userbar_en.gif
Re: Compile kernel [message #1020 is a reply to message #979] Thu, 26 January 2006 14:30 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Basically you have two options:

1. Use compat-gcc-33 to compile your kernel module. I assume something like this will do the trick:
yum install compat-gcc-33
make CC=gcc33


2. Rebuild our kernel with your default GCC version:
rpmbuild --rebuild --target=i686 ovzkernel*.src.rpm

If you use x86_64, fix --target argument accordingly (or do not use it at all as this will be a default on that platform).


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Compile kernel [message #1030 is a reply to message #1020] Thu, 26 January 2006 20:38 Go to previous message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
I think that finally did the trick. Wink
Previous Topic: Ensim
Next Topic: kernel oops.
Goto Forum:
  


Current Time: Wed Jul 17 20:36:28 GMT 2024

Total time taken to generate the page: 0.02742 seconds