OpenVZ Forum


Home » General » Support » fc4 ov-kernel build troubles
fc4 ov-kernel build troubles [message #289] Tue, 01 November 2005 07:28 Go to next message
slavik
Messages: 2
Registered: November 2005
Location: russia
Junior Member

can't build 2.6.8.1-ve022stab044
--- make bzImage
[root@localhost linux-2.6.8]# make bzImage
CHK include/linux/version.h
UPD include/linux/version.h
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
---
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux

[root@localhost ~]# gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
Re: fc4 ov-kernel build troubles [message #290 is a reply to message #289] Tue, 01 November 2005 08:19 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

1. we'll fix gcc4 compilation. thanks for report.
2. AFAIK you'll still need to update your gcc due to bugs in 4.0.0 to make kernel compile correctly.
3. as a workaround you can install gcc-compat and build it with an early version of gcc.


http://static.openvz.org/userbars/openvz-developer.png
Re: fc4 ov-kernel build troubles [message #291 is a reply to message #289] Tue, 01 November 2005 10:21 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

We do not support gcc4 (yet). To compile OpenVZ kernel on Fedora Core 4 system, you have to install and use compat-gcc-32 package. Something like this should work:

yum install compat-gcc-32
make CC=gcc32 HOSTCC=gcc32 bzImage


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: fc4 ov-kernel build troubles [message #292 is a reply to message #290] Tue, 01 November 2005 11:18 Go to previous messageGo to next message
slavik
Messages: 2
Registered: November 2005
Location: russia
Junior Member

dev wrote on Tue, 01 November 2005 13:19

2. AFAIK you'll still need to update your gcc due to bugs in 4.0.0 to make kernel compile correctly..

I think it is a problem of 2.6.8, because 2.6.8.1 isn't compilable, but 2.6.14 has been compiled successful with gcc4.
dev wrote on Tue, 01 November 2005 13:19

3. as a workaround you can install gcc-compat and build it with an early version of gcc.

tnx, solved.
Re: fc4 ov-kernel build troubles [message #293 is a reply to message #292] Tue, 01 November 2005 11:21 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

I meant bugs in gcc 4.0.0, which produced incorrect code.


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Capabilitiy SYS_TIME
Next Topic: A lot of links are broken!
Goto Forum:
  


Current Time: Fri Nov 08 06:30:38 GMT 2024

Total time taken to generate the page: 0.05354 seconds