Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242548 - openvz-sources-2.6.18.028.056.1 can't compile on 64bit
Summary: openvz-sources-2.6.18.028.056.1 can't compile on 64bit
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-18 10:11 UTC by Balazs Nemeth
Modified: 2008-10-18 17:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel-config-x86_64-2.6.18-028stab053 (kernel-config-x86_64-2.6.18-028stab053,33.19 KB, text/plain)
2008-10-18 10:14 UTC, Balazs Nemeth
Details
tg3.patch from here: http://forum.openvz.org/index.php?t=msg&goto=30735& (tg3.patch,2.68 KB, patch)
2008-10-18 10:15 UTC, Balazs Nemeth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Balazs Nemeth 2008-10-18 10:11:20 UTC
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.
---------------
My second problem is. the openvz-sources-2.6.18.028.053-r2 version compiles fine (also stable in portage), but doesn't find my Broadcom NIC.
There is a tg3 patch here: http://forum.openvz.org/index.php?t=msg&goto=30735&
I'v applied the patch, and now my NIC recognized as should.
Is there any way to apply this patch to the portage.
Comment 1 Balazs Nemeth 2008-10-18 10:12:03 UTC
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
Comment 2 Balazs Nemeth 2008-10-18 10:14:59 UTC
Created attachment 168908 [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.
Comment 3 Balazs Nemeth 2008-10-18 10:15:50 UTC
Created attachment 168910 [details, diff]
tg3.patch from here: http://forum.openvz.org/index.php?t=msg&goto=30735&
Comment 4 Balazs Nemeth 2008-10-18 10:17:03 UTC
I knew I should fill two separate bug sorry.
Comment 5 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-10-18 17:00:46 UTC
thanks for your bug report. you are right - two issues in one bug are a big no go. so please file two new ones. copy n' pasting the info that you have given in two different bugs is fine...

thanks.