OpenVZ Forum


Home » General » Support » Unable to build OpenVZ kernel/2.6.20
Unable to build OpenVZ kernel/2.6.20 [message #11850] Mon, 09 April 2007 23:26 Go to next message
atlantis is currently offline  atlantis
Messages: 5
Registered: April 2007
Junior Member

After patching my vanilla 2.6.20 kernel, im unable to compile it:
root@Spirit ~/linux-2.6.20 # make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
CC arch/x86_64/kernel/asm-offsets.s
GEN include/asm-x86_64/asm-offsets.h
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/bc/beancounter.h:120,
from include/bc/net.h:20,
from include/linux/skbuff.h:335,
from include/linux/netlink.h:138,
from include/linux/genetlink.h:4,
from include/net/genetlink.h:4,
from include/linux/taskstats_kern.h:12,
from init/main.c:43:
include/bc/io_prio.h: In function 'bc_findcreate_cfq_bc':
include/bc/io_prio.h:55: error: dereferencing pointer to incomplete type
include/bc/io_prio.h: In function 'bc_schedule_active':
include/bc/io_prio.h:61: error: dereferencing pointer to incomplete type
include/bc/io_prio.h:61: error: dereferencing pointer to incomplete type
include/bc/io_prio.h: In function '__find_cfq_bc':
include/bc/io_prio.h:72: error: dereferencing pointer to incomplete type
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
root@Spirit ~/linux-2.6.20 #

The unpatched kernel compiles fine.
System is Lunar Linux 1.6.2 (64bit on an Opteron), gcc -v:
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: ../configure --host=x86_64-pc-linux-gnu --enable-languages=c++ --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-__cxa_atexit --enable-threads --disable-nls --enable-target-optspace --with-gnu-ld --with-system-zlib --enable-shared --disable-multilib
Thread model: posix
gcc version 4.1.2

Tryed both, 2.6.20 and 2.6.20.6.
Used patch-ovz002.1-combined.
Any hints?
Re: Unable to build OpenVZ kernel/2.6.20 [message #11857 is a reply to message #11850] Tue, 10 April 2007 07:12 Go to previous messageGo to next message
DigiMan is currently offline  DigiMan
Messages: 11
Registered: April 2007
Junior Member
Not sure how helpful this is going to be. But I've been able to successfully compile 2.6.20 with the OpenVZ kernel patch. However, this was on a 32-bit machine, not a 64-bit machine. Perhaps the problem is related to that. Did you cleanly apply the patch? Did it show any errors, etc.? Thank you.
Re: Unable to build OpenVZ kernel/2.6.20 [message #11880 is a reply to message #11850] Tue, 10 April 2007 18:12 Go to previous messageGo to next message
atlantis is currently offline  atlantis
Messages: 5
Registered: April 2007
Junior Member

Depends on the kernel.
For 2.6.20 yes, not for 2.6.20.6 (all pure vanilla)
But it bails out on both with the same message Sad
Re: Unable to build OpenVZ kernel/2.6.20 [message #11953 is a reply to message #11850] Thu, 12 April 2007 13:14 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

please try attached patch. It'll be in git soon. Report us will you succeed in building OpenVZ kernel.

Thanks,
Vasily.
Re: Unable to build OpenVZ kernel/2.6.20 [message #11961 is a reply to message #11953] Fri, 13 April 2007 00:01 Go to previous messageGo to next message
atlantis is currently offline  atlantis
Messages: 5
Registered: April 2007
Junior Member

Thanks, this fixes this problem.
Sadly, the next one isnt far away Sad
Last messages:
AS arch/x86_64/ia32/ia32entry.o
CC arch/x86_64/ia32/sys_ia32.o
CC arch/x86_64/ia32/ia32_signal.o
CC arch/x86_64/ia32/tls32.o
CC arch/x86_64/ia32/ia32_binfmt.o
arch/x86_64/ia32/ia32_binfmt.c:50:1: warning: "ELF_ET_DYN_BASE" redefined
In file included from include/linux/elf.h:7,
from include/linux/module.h:15,
from include/linux/device.h:20,
from include/linux/genhd.h:61,
from include/linux/blkdev.h:6,
from include/linux/cfq-iosched.h:6,
from include/bc/io_prio.h:18,
from include/bc/beancounter.h:120,
from include/bc/vmpages.h:15,
from arch/x86_64/ia32/ia32_binfmt.c:29:
include/asm/elf.h:93:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:60:1: warning: "USE_ELF_CORE_DUMP" redefined
include/asm/elf.h:85:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:64: error: conflicting types for 'elf_greg_t'
include/asm/elf.h:32: error: previous declaration of 'elf_greg_t' was here
arch/x86_64/ia32/ia32_binfmt.c:66:1: warning: "ELF_NGREG" redefined
include/asm/elf.h:34:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:67: error: conflicting types for 'elf_gregset_t'
include/asm/elf.h:35: error: previous declaration of 'elf_gregset_t' was here
arch/x86_64/ia32/ia32_binfmt.c:120:1: warning: "ELF_CORE_COPY_REGS" redefined
include/asm/elf.h:99:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:141:1: warning: "__ASM_X86_64_ELF_H" redefined
include/asm/elf.h:2:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:146: error: conflicting types for 'elf_fpregset_t'
include/asm/elf.h:37: error: previous declaration of 'elf_fpregset_t' was here
arch/x86_64/ia32/ia32_binfmt.c:209:1: warning: "ELF_EXEC_PAGESIZE" redefined
include/asm/elf.h:86:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:211:1: warning: "ELF_PLATFORM" redefined
include/asm/elf.h:144:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:212:1: warning: "SET_PERSONALITY" redefined
include/asm/elf.h:147:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:234:1: warning: "ELF_PLAT_INIT" redefined
include/asm/elf.h:66:1: warning: this is the location of the previous definition
make[1]: *** [arch/x86_64/ia32/ia32_binfmt.o] Error 1
make: *** [arch/x86_64/ia32] Error 2

(same as above, vanialla 2.6.20 kernel, applyed patch-ovz002.1-combined, then diff-ubc-ioprio-compilation-fix-2.6.20-20070304)
Re: Unable to build OpenVZ kernel/2.6.20 [message #11980 is a reply to message #11961] Fri, 13 April 2007 14:34 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Wow, I've just noticed that you're using test002 patch. It's too old Smile Please, try test004 kernel from git! With my patch and without.

Thanks,
Vasily.
Re: Unable to build OpenVZ kernel/2.6.20 [message #12126 is a reply to message #11850] Wed, 18 April 2007 06:28 Go to previous messageGo to next message
atlantis is currently offline  atlantis
Messages: 5
Registered: April 2007
Junior Member

Tryed with last version from git (004)
Without your patch:
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/bc/beancounter.h:120,
from include/bc/net.h:20,
from include/linux/skbuff.h:338,
from include/linux/netlink.h:138,
from include/linux/genetlink.h:4,
from include/net/genetlink.h:4,
from include/linux/taskstats_kern.h:12,
from init/main.c:43:
include/bc/io_prio.h: In function 'bc_findcreate_cfq_bc':
include/bc/io_prio.h:55: error: dereferencing pointer to incomplete type
include/bc/io_prio.h: In function 'bc_schedule_active':
include/bc/io_prio.h:61: error: dereferencing pointer to incomplete type
include/bc/io_prio.h:61: error: dereferencing pointer to incomplete type
include/bc/io_prio.h: In function '__find_cfq_bc':
include/bc/io_prio.h:72: error: dereferencing pointer to incomplete type
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2



with your patch:

CC arch/x86_64/ia32/ia32_signal.o
CC arch/x86_64/ia32/tls32.o
CC arch/x86_64/ia32/ia32_binfmt.o
arch/x86_64/ia32/ia32_binfmt.c:50:1: warning: "ELF_ET_DYN_BASE" redefined
In file included from include/linux/elf.h:7,
from include/linux/module.h:15,
from include/linux/device.h:20,
from include/linux/genhd.h:61,
from include/linux/blkdev.h:6,
from include/linux/cfq-iosched.h:6,
from include/bc/io_prio.h:18,
from include/bc/beancounter.h:120,
from include/bc/vmpages.h:15,
from arch/x86_64/ia32/ia32_binfmt.c:29:
include/asm/elf.h:93:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:60:1: warning: "USE_ELF_CORE_DUMP" redefined
include/asm/elf.h:85:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:64: error: conflicting types for 'elf_greg_t'
include/asm/elf.h:32: error: previous declaration of 'elf_greg_t' was here
arch/x86_64/ia32/ia32_binfmt.c:66:1: warning: "ELF_NGREG" redefined
include/asm/elf.h:34:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:67: error: conflicting types for 'elf_gregset_t'
include/asm/elf.h:35: error: previous declaration of 'elf_gregset_t' was here
arch/x86_64/ia32/ia32_binfmt.c:120:1: warning: "ELF_CORE_COPY_REGS" redefined
include/asm/elf.h:99:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:141:1: warning: "__ASM_X86_64_ELF_H" redefined
include/asm/elf.h:2:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:146: error: conflicting types for 'elf_fpregset_t'
include/asm/elf.h:37: error: previous declaration of 'elf_fpregset_t' was here
arch/x86_64/ia32/ia32_binfmt.c:209:1: warning: "ELF_EXEC_PAGESIZE" redefined
include/asm/elf.h:86:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:211:1: warning: "ELF_PLATFORM" redefined
include/asm/elf.h:144:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:212:1: warning: "SET_PERSONALITY" redefined
include/asm/elf.h:147:1: warning: this is the location of the previous definition
arch/x86_64/ia32/ia32_binfmt.c:234:1: warning: "ELF_PLAT_INIT" redefined
include/asm/elf.h:66:1: warning: this is the location of the previous definition
make[1]: *** [arch/x86_64/ia32/ia32_binfmt.o] Error 1
make: *** [arch/x86_64/ia32] Error 2


Im quite unshure who to handle your git repositorie, is linux-2.6.20 a complete, prepatched kernel?
Re: Unable to build OpenVZ kernel/2.6.20 [message #12451 is a reply to message #12126] Sat, 28 April 2007 13:35 Go to previous messageGo to next message
atlantis is currently offline  atlantis
Messages: 5
Registered: April 2007
Junior Member

Still unable to compile the kernel on Lunuar/64bit.
Just tryed the 32 bit version, and it compiles fine (after applying diff-ubc-ioprio-compilation-fix-2.6.20-20070304).

Will stick to 32bit now.
Re: Unable to build OpenVZ kernel/2.6.20 [message #12521 is a reply to message #12451] Wed, 02 May 2007 07:17 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

please, fill out the bug each time OpenVZ kernel doesn't compile smoothly!

Thank you,
Vasily.
Previous Topic: Kernel panic with 2.6.20 on x86_64 (CentOS 4.4)
Next Topic: Hard lock on boot after install ovzkernel
Goto Forum:
  


Current Time: Sat Nov 16 23:29:04 GMT 2024

Total time taken to generate the page: 0.03024 seconds