Unable to build OpenVZ kernel/2.6.20 [message #11850] |
Mon, 09 April 2007 23:26 |
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 #11961 is a reply to message #11953] |
Fri, 13 April 2007 00:01 |
atlantis
Messages: 5 Registered: April 2007
|
Junior Member |
|
|
Thanks, this fixes this problem.
Sadly, the next one isnt far away
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 #12126 is a reply to message #11850] |
Wed, 18 April 2007 06:28 |
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?
|
|
|
|
|