I have got two openvz reladted problem. The first one is. I'd like to use the latest stable openvz-sources (2.6.18.028.056.1) from the portage, but I cannot compile it on an 64bit opteron system. I have tried to complie with genkernel and manually. The results the same. I'v got this error. This is the results of "make -j1". HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/x86_64/Kconfig CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86_64 CC arch/x86_64/kernel/asm-offsets.s GEN include/asm-x86_64/asm-offsets.h HOSTCC scripts/genksyms/genksyms.o SHIPPED scripts/genksyms/lex.c SHIPPED scripts/genksyms/parse.h SHIPPED scripts/genksyms/keywords.c HOSTCC scripts/genksyms/lex.o SHIPPED scripts/genksyms/parse.c HOSTCC scripts/genksyms/parse.o HOSTLD scripts/genksyms/genksyms 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/pnmtologo HOSTCC scripts/conmakehash HOSTCC scripts/bin2c CC init/main.o In file included from include/linux/compat.h:14, from include/linux/quota.h:325, from include/linux/syscalls.h:65, from include/asm/unistd.h:776, from include/linux/unistd.h:11, from include/asm/seccomp.h:11, from include/linux/seccomp.h:10, from include/linux/sched.h:78, from include/linux/module.h:9, from init/main.c:15: include/asm/compat.h: In function `compat_alloc_user_space': include/asm/compat.h:201: error: dereferencing pointer to incomplete type make[1]: *** [init/main.o] Error 1 make: *** [init] Error 2 I'll attach my emerge --info and my kernel config file. I have tried hardened and not hardened stage too.
Created attachment 169052 [details] kernel-config-x86_64-2.6.18-028stab053 This config file is working with 2.6.18.028.053-r2 but doesn't working with 2.6.18.028.056.1.
Here is my emerge --info: emerge --info Portage 2.1.4.5 (hardened/linux/amd64, gcc-3.4.6, glibc-2.6.1-r0, 2.6.18-028stab053 x86_64) ================================================================= System uname: 2.6.18-028stab053 x86_64 Dual-Core AMD Opteron(tm) Processor 1212 Timestamp of tree: Fri, 17 Oct 2008 10:45:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=opteron -O2 -pipe" DISTDIR="/_gentoo_portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo http://gentoo.inode.at http://gentoo.inf.elte.hu" LANG="hu_HU.UTF-8" LC_ALL="hu_HU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="hu" MAKEOPTS="-j4" PKGDIR="/_gentoo_portage/packages/opteron64" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/_gentoo_portage/tmp" PORTDIR="/_gentoo_portage/portage" PORTDIR_OVERLAY="/_gentoo_portage/overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext acpi amd64 berkdb bzip2 caps cli cracklib crypt dri hardened iconv isdnlog justify midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session slang spl sse sse2 sse3 ssl tcpd unicode urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="peruser" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu" USERLAND="GNU" VIDEO_CARDS="vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Balazs thank you for both reports. I'll add the patch for driver but into 2.6.18.056.1 only. But then I know I need to fix this issue first. I'm trying to convince upstream to find fix faster or may be I'll find more time to dig deeper than I already did at bug mentioned in URI.
(In reply to comment #3) > Balazs thank you for both reports. I'll add the patch for driver but into > 2.6.18.056.1 only. But then I know I need to fix this issue first. I'm trying > to convince upstream to find fix faster or may be I'll find more time to dig > deeper than I already did at bug mentioned in URI. > Thank you for your help. If you need any more information, just let me know. I have tried the openvz-sources-2.6.18.028.057.2 too, which is based on rhel patchset, if I am right. But it fails with the same error. I'm going to try out again, maybe I missed something.
(In reply to comment #4) > (In reply to comment #3) > > Balazs thank you for both reports. I'll add the patch for driver but into > > 2.6.18.056.1 only. But then I know I need to fix this issue first. I'm trying > > to convince upstream to find fix faster or may be I'll find more time to dig > > deeper than I already did at bug mentioned in URI. > > > > Thank you for your help. If you need any more information, just let me know. > > I have tried the openvz-sources-2.6.18.028.057.2 too, which is based on rhel > patchset, if I am right. But it fails with the same error. I'm going to try out > again, maybe I missed something. > So openvz-sources-2.6.18.028.057.2 fails too. I'll attach my kernel config.
Created attachment 169156 [details] kernel-config-x86_64-2.6.18-028.057
I've tried out what this post http://bugzilla.openvz.org/show_bug.cgi?id=972#c8 suggests. It works, but this is just a workaround, not a solution for me. Seccomp is a handy feature. :(
Ooops. I submited a post and "resolved" the bug accidentaly. Sorry, I'm reopening this.
Thank you for report Balazs. This problem should be fixed. You'll need to reemerge openvz-sources-2.6.18.028.056.1 to make added patch applied. FIXED.
(In reply to comment #10) > Thank you for report Balazs. This problem should be fixed. You'll need to > reemerge openvz-sources-2.6.18.028.056.1 to make added patch applied. FIXED. > Thank you!