OpenVZ Forum


Home » General » Support » unable to comile kernel (2.6.8) on ubuntu
unable to comile kernel (2.6.8) on ubuntu [message #2847] Sun, 23 April 2006 17:16 Go to next message
Xandrian is currently offline  Xandrian
Messages: 39
Registered: April 2006
Location: Bayreuth
Member

hi,

i am not able to compile a 2.6.8 kernel on ubuntu linux 5.10. if i start a "make menuconfig" i got the following lines:

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  SHIPPED scripts/kconfig/zconf.tab.h
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2


if i make the config manually and tried then to compile it via "make" it get this:

  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-x86_64
  HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
make[2]: *** [scripts/kconfig/mconf.o] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** [include/linux/autoconf.h] Error 2


i searched the internet and other people have the same problem. the makes problem with gcc4. ubuntu uses gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9). there are also some patches but no one realy worked...

so i cannot test the stable version and have to go to the testing which crashed sometimes... (see http://forum.openvz.org/index.php?t=tree&goto=2831&# msg_2831).

cu tb.
Re: unable to comile kernel (2.6.8) on ubuntu [message #2859 is a reply to message #2847] Mon, 24 April 2006 07:01 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Hmm... this was fixed long ago with:

diff -Naru a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
--- a/scripts/kconfig/mconf.c	2005-11-01 01:31:51 -08:00
+++ b/scripts/kconfig/mconf.c	2005-11-01 01:31:51 -08:00
@@ -88,7 +88,7 @@
 static int indent;
 static struct termios ios_org;
 static int rows = 0, cols = 0;
-static struct menu *current_menu;
+struct menu *current_menu;
 static int child_count;
 static int do_resize;
 static int single_menu_mode;


Can you check please, that you have this patch applied?
Also, I wonder what version of stable kernel do you try to build?


http://static.openvz.org/userbars/openvz-developer.png
Re: unable to comile kernel (2.6.8) on ubuntu [message #2861 is a reply to message #2859] Mon, 24 April 2006 07:23 Go to previous messageGo to next message
Xandrian is currently offline  Xandrian
Messages: 39
Registered: April 2006
Location: Bayreuth
Member

i am using the 2.6.8 from kernel org...

with that batch i can compile the kernel but if i restart the machine it hangs (maybe a kernel oops or so). it's a remote server and so i don't see the message Sad

the config should work because it's the same like the running 2.6.16...

cu tb.
Re: unable to comile kernel (2.6.8) on ubuntu [message #2862 is a reply to message #2861] Mon, 24 April 2006 07:28 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

2.6.8 from kernel.org, but what version of OpenVZ patch do you use?
2.6.8-022stab076? It looks like you didn't applied OVZ patch, did you?

it can hang due to drivers, and OpenVZ has a lot of driver updates
for hardware.


http://static.openvz.org/userbars/openvz-developer.png
Re: unable to comile kernel (2.6.8) on ubuntu [message #2863 is a reply to message #2862] Mon, 24 April 2006 07:32 Go to previous message
Xandrian is currently offline  Xandrian
Messages: 39
Registered: April 2006
Location: Bayreuth
Member

i am using the latest stable (patch-022stab076-combined.gz). i don't know why it doesn't work earlier... Confused

maybe it hangs here. it's a production system and so i cannot "play" so lot Wink btw: the testing version runs stable for about two days now and i also had load about 10 yesterday Wink

cu tb.
Previous Topic: 64bit CPU on Hardware node :: advantageous when vps is 32bit?
Next Topic: vzpkgcache issue
Goto Forum:
  


Current Time: Wed Aug 07 03:24:56 GMT 2024

Total time taken to generate the page: 0.02922 seconds