Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286900 - app-emulation/virtualbox-modules-3.0.6 does not build on sys-kernel/git-sources-2.6.31-r17
Summary: app-emulation/virtualbox-modules-3.0.6 does not build on sys-kernel/git-sourc...
Status: RESOLVED DUPLICATE of bug 287225
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-29 08:23 UTC by Yuriy Rusinov
Modified: 2009-10-09 20:00 UTC (History)
4 users (show)

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


Attachments
kernel .config (.config,54.03 KB, text/plain)
2009-10-01 17:54 UTC, Andreas Sturmlechner
Details
config file (.config,67.00 KB, text/plain)
2009-10-01 20:35 UTC, Yuriy Rusinov
Details
Patch to eclass to follow kernel reversal of arch trees handling (toolchain-funcs_arch-fix.patch,1.14 KB, patch)
2009-10-09 12:46 UTC, xenon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy Rusinov 2009-09-29 08:23:43 UTC
I try to emerge and receive this message

make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv'
make KBUILD_VERBOSE= -C /usr/src/linux SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv modules
make[2]: Entering directory `/usr/src/linux-2.6.31-git17'
Makefile:210: *** ARCH changed from "x86_64" to "x86". Use "make mrproper" to fix it up.  Stop.
make[2]: Leaving directory `/usr/src/linux-2.6.31-git17'
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv'
make: *** [all] Error 2
 *
 * ERROR: app-emulation/virtualbox-modules-3.0.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3459:  Called linux-mod_src_compile
 *             environment, line 2681:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                      CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/usr/src/linux all
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/temp/environment'.


Reproducible: Always

Steps to Reproduce:
1.cd /usr/src/linux
2. make mrproper 
3. make oldconfig && make prepare 
4. make && make modules_install
5. emerge -av app-emulation/virtualbox-modules

Actual Results:  
work ...
ln: creating symbolic link `Module.symvers': File exists
 * Preparing vboxdrv module
make HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KERN_DIR=/usr/src/linux KERNOUT=/usr/src/linux all
*** Building 'vboxdrv' module ***
make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv'
make KBUILD_VERBOSE= -C /usr/src/linux SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv modules
make[2]: Entering directory `/usr/src/linux-2.6.31-git17'
Makefile:210: *** ARCH changed from "x86_64" to "x86". Use "make mrproper" to fix it up.  Stop.
make[2]: Leaving directory `/usr/src/linux-2.6.31-git17'
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/work/vboxdrv'
make: *** [all] Error 2
 *
 * ERROR: app-emulation/virtualbox-modules-3.0.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3459:  Called linux-mod_src_compile
 *             environment, line 2681:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                      CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/usr/src/linux all
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-3.0.6/temp/environment'.
 *
Comment 1 Dustin Polke 2009-09-29 09:10:35 UTC
emerge --info, please
Comment 2 Yuriy Rusinov 2009-09-29 12:08:34 UTC
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r 2.6.31-git8 x86_64)
=================================================================
System uname: Linux-2.6.31-git8-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-ntoo-1.12.11.1
Timestamp of tree: Sat, 26 Sep 2009 18:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r2, 2.6.2-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/stdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etfonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-phpext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /c/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /ettexmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-ownedandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://gentoo.arcticneork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://mirrors.tera-byte.comub/gentoo http://gentoo.mirrors.tera-byte.com/ http://gentoo.osuosl.org/ ftp:/istro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pulinux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gib.gatech.edu/pub/gentoo "
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compres--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --excde=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/initng /usr/portage/local/layman/scnce /usr/portage/local/layman/games /usr/portage/local/layman/voip /usr/local/rtage /usr/i686-mingw32/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl alsa amd64 bash-completion berkdb bzip2 cli cracklib crypt cups dri e firefox fortran gdbm gnome gpm gtk iconv ipv6 isdnlog mmx modules mudflap mullib ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python qt readle reflection samba sdl session spl sse sse2 ssh ssl sysfs tcpd unicode v4l v4lxorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca06 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="pcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug lspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm stvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_d authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile auz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate r disk_cache env expires ext_filter file_cache filter headers ident imagemap ilude info log_config logio mem_cache mime mime_magic negotiation proxy proxy_a proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unue_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mou evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 dm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTSPORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Dustin Polke 2009-09-29 15:49:30 UTC
Could you please post your /usr/src/linux/.config as well?
Comment 4 Andreas Sturmlechner gentoo-dev 2009-10-01 17:54:48 UTC
Created attachment 205775 [details]
kernel .config

I can confirm this on git-sources-2.6.32_rc1-r2. Attached my kernel .config.
Comment 5 Yuriy Rusinov 2009-10-01 20:35:52 UTC
Created attachment 205786 [details]
config file
Comment 6 Dustin Polke 2009-10-02 09:28:32 UTC
This is probably the same issue as in bug 287225.
Comment 7 Yuriy Rusinov 2009-10-02 10:08:20 UTC
Possible these issues have similar problem.
Comment 8 dfrkp 2009-10-03 21:30:40 UTC
Same issue here, with sys-kernel/vanilla-sources-2.6.32_rc1
Comment 9 xenon 2009-10-09 12:46:11 UTC
Created attachment 206526 [details, diff]
Patch to eclass to follow kernel reversal of arch trees handling

First of all: I am truly sorry I can't provide accurate, correct details about this patch. I can't find the source I got it from. Here's the inline comment:

# Starting with linux-2.6.24, the 'x86_64' and 'i386'
# trees have been unified into 'x86'.
# FreeBSD still uses i386
# In 2.6.32, this has been changed back.

And I can confirm the patch works. Again, sorry for being unable to credit the source of the patch.
Comment 10 xenon 2009-10-09 12:48:55 UTC
Same bug as 287225, and that's probably where the patch came from. :|

(In reply to comment #9)
> Created an attachment (id=206526) [details]
> Patch to eclass to follow kernel reversal of arch trees handling
> 
> First of all: I am truly sorry I can't provide accurate, correct details about
> this patch. I can't find the source I got it from. Here's the inline comment:
> 
> # Starting with linux-2.6.24, the 'x86_64' and 'i386'
> # trees have been unified into 'x86'.
> # FreeBSD still uses i386
> # In 2.6.32, this has been changed back.
> 
> And I can confirm the patch works. Again, sorry for being unable to credit the
> source of the patch.
> 

Comment 11 Justin Lecher (RETIRED) gentoo-dev 2009-10-09 20:00:27 UTC
I will close this as duplicate of bug 287225

*** This bug has been marked as a duplicate of bug 287225 ***