Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275681 - app-emulation/virtualbox-ose-2.1.4-r2 build failed
Summary: app-emulation/virtualbox-ose-2.1.4-r2 build failed
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-28 11:33 UTC by tot-to
Modified: 2010-07-31 08:22 UTC (History)
2 users (show)

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


Attachments
Patch to compile VirtualBox with latest kernel and OS (virtualbox-2.1.4-linux-kernel-2.6.34-gcc-4.4.patch,3.31 KB, text/plain)
2010-07-31 08:22 UTC, Zenitur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tot-to 2009-06-28 11:33:21 UTC
The last lines in build.log:

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 401 Optimizations
  CXX     DevicesR3 - {C}/src/VBox/Devices/PC/DevRTC.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/PC/DevPcBios.cpp
  C       DevicesR3 - {C}/src/VBox/Devices/PC/DevPcArch.c
  CXX     DevicesR3 - {C}/src/VBox/Devices/VMMDev/VBoxDev.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/Network/DevPCNet.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/Audio/DevIchAc97.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/Audio/DevSB16.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/PC/DevDMA.cpp
  C       DevicesR3 - {C}/src/VBox/Devices/Storage/fdc.c
  CXX     DevicesR3 - {C}/src/VBox/Devices/Serial/DevSerial.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/Parallel/DevParallel.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/Network/DevE1000.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/Network/DevE1000Phy.cpp
  CXX     DevicesR3 - {C}/src/VBox/Devices/Network/DevEEPROM.cpp
  C       Drivers - {C}/src/VBox/Devices/Audio/audio.c
  C       Drivers - {C}/src/VBox/Devices/Audio/audiosniffer.c
  C       Drivers - {C}/src/VBox/Devices/Audio/mixeng.c
  C       Drivers - {C}/src/VBox/Devices/Audio/noaudio.c
  CXX     Drivers - {C}/src/VBox/Devices/Input/DrvKeyboardQueue.cpp
  CXX     Drivers - {C}/src/VBox/Devices/Input/DrvMouseQueue.cpp
  CXX     Drivers - {C}/src/VBox/Devices/Network/DrvIntNet.cpp
  CXX     Drivers - {C}/src/VBox/Devices/PC/DrvACPI.cpp
  CXX     Drivers - {C}/src/VBox/Devices/Serial/DrvChar.cpp
  CXX     Drivers - {C}/src/VBox/Devices/Serial/DrvNamedPipe.cpp
  CXX     Drivers - {C}/src/VBox/Devices/Storage/DrvBlock.cpp
  CXX     Drivers - {C}/src/VBox/Devices/Storage/DrvHostBase.cpp
  CXX     Drivers - {C}/src/VBox/Devices/Storage/DrvHostDVD.cpp
In file included from /usr/include/linux/byteorder/little_endian.h:12,
                 from /usr/include/asm/byteorder.h:4,
                 from /usr/include/linux/cdrom.h:16,
                 from /var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/DrvHostDVD.cpp:54:
/usr/include/linux/swab.h: In function '__u16 __swab16p(const __u16*)':
/usr/include/linux/swab.h:148: error: redefinition of '__u16 __swab16p(const __u16*)'
/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/swab.h:42: error: '__u16 __swab16p(const __u16*)' previously defined here
/usr/include/linux/swab.h: In function '__u32 __swab32p(const __u32*)':
/usr/include/linux/swab.h:161: error: redefinition of '__u32 __swab32p(const __u32*)'
/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/swab.h:48: error: '__u32 __swab32p(const __u32*)' previously defined here
/usr/include/linux/swab.h: In function '__u64 __swab64p(const __u64*)':
/usr/include/linux/swab.h:174: error: redefinition of '__u64 __swab64p(const __u64*)'
/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/swab.h:55: error: '__u64 __swab64p(const __u64*)' previously defined here
kmk[2]: *** [/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/out/linux.amd64/release/obj/Drivers/Storage/DrvHostDVD.o] Error 1
The failing command:
@x86_64-pc-linux-gnu-g++ -c -O2 -g -pipe -pedantic -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -Wno-long-long -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -m64 -I/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/src/VBox/Devices -I/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/src/VBox/Devices/Network/slirp -I/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/include -I/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox-ose\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox-ose\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox-ose\" -DRTPATH_APP_DOCS=\"\" -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DIN_IDE_R3 -DVBOX_WITH_NETFLT -DVBOX_WITH_ALSA -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/out/linux.amd64/release/obj/Drivers/Storage/DrvHostDVD.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/out/linux.amd64/release/obj/Drivers/Storage/DrvHostDVD.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/out/linux.amd64/release/obj/Drivers/Storage/DrvHostDVD.o /var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/DrvHostDVD.cpp
kmk[2]: *** Waiting for unfinished jobs....
kmk[2]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE'
kmk[2]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE'
kmk[2]: *** Exiting with status 2
kmk[1]: *** [pass_libraries_this] Error 2
kmk[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/work/VirtualBox-2.1.4_OSE'
kmk: *** [pass_libraries_order] Error 2
 * 
 * ERROR: app-emulation/virtualbox-ose-2.1.4-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3715:  Called die
 * The specific snippet of code:
 *       MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" all || die "kmk failed"
 *  The die message:
 *   kmk failed
 * 
 * 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-ose-2.1.4-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-ose-2.1.4-r2/temp/environment'.
 *

Reproducible: Always

Steps to Reproduce:
1.emerge virtualbox-ose



emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.1
Timestamp of tree: Sun, 28 Jun 2009 07:15:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/ "
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/keks-overlay /usr/local/portage/layman/bangert /usr/local/portage/layman/rion-overlay /usr/local/portage/layman/qutim-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib accessibility alsa amd64 ao ass audiofile branding bzip2 cairo cblas cli corefonts crypt css cups curl cvs d dga dirac djvu dri dts dvd encode exif expat faac faad ffmpeg fftw flac fontconfig fortran gcj gd ggi gif gimp git glib glitz gmp gnutls gs gtk hdri iconv id3tag idn imagemagick imlib ipv6 isdnlog java java5 java6 jbig jce jpeg jpeg2k lame lapack latex lcms libcaca lua lzo midi mmx mmxext mng mp3 mpeg mudflap multilib musepack mysql nptl nptlonly objc odbc ogg openal openexr opengl openmp openssl pam pcre pdf perl php plotutils png pnm posix ppds pppd python qt3support qt4 quicktime raw readline reflection rle scanner sdl servletapi session smp speex spl sqlite sqlite3 sse sse2 sse3 ssl subversion svg sysfs taglib threads tiff truetype umfpack unicode usb vorbis wavpack wmf wxwindows x264 xattr xcb xinerama xml xmp xorg xulrunner xv xvmc 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" CAMERAS="fuji" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" SANE_BACKENDS="gt68xx" USERLAND="GNU" VIDEO_CARDS="nvidia vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrick Lauer gentoo-dev 2009-06-28 11:39:32 UTC
Try with 2.2.4, 2.1 is a bit outdated
Comment 2 tot-to 2009-07-02 01:16:45 UTC
2.2.4 build successful.
if 2.1.4-r1 is outdated and not installable maybe it can be removed from portage?
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-04 15:05:53 UTC
Either removal or fixing the deps of 2.1.x versions...
anyway, that's up to the package maintainers...
Comment 4 Alessio Cassibba (X-Drum) 2009-07-06 23:07:40 UTC
(In reply to comment #2)
[..]
(In reply to comment #3)
[..]

As usual there is always lack of support for "older" virtualbox releases
i vote for a pruning/removal of old versions (including 1.x)

Comment 5 Patrick Lauer gentoo-dev 2009-07-07 06:07:25 UTC
(In reply to comment #4)
> As usual there is always lack of support for "older" virtualbox releases
> i vote for a pruning/removal of old versions (including 1.x)
> 

I support that idea, but as long as we can't get a newer version stable we're stuck with 1.6
2.1 was our stable candidate, I'd suggest stabling 2.2.4, but for that we need to fix a few minor issues in the build system.
Comment 6 Patrick Lauer gentoo-dev 2009-08-19 17:30:45 UTC
3.0.4 is current unstable ...
Comment 7 Zenitur 2010-07-31 08:22:56 UTC
Created attachment 240771 [details]
Patch to compile VirtualBox with latest kernel and OS

You need run it in console before compile:
# ln -s /usr/src/linux/include/generated/autoconf.h /usr/src/linux/include/linux/autoconf.h
# mv /usr/include/linux/swab.h /usr/include/linux/swab2.h
# cd VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage
# cp swab.h /usr/include/linux/swab.h

After compation:
# rm /usr/include/linux/swab.h
# mv /usr/include/linux/swab2.h /usr/include/linux/swab.h