Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389953 - app-emulation/virtualbox-modules-4.1.6 fails to compile vboxpci.ko with sys-kernel/git-sources-3.2_rc1 and fails to install
Summary: app-emulation/virtualbox-modules-4.1.6 fails to compile vboxpci.ko with sys-k...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
: 393041 397983 400871 404345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-09 11:55 UTC by jospezial
Modified: 2013-10-06 15:37 UTC (History)
10 users (show)

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


Attachments
build.log (build.log,15.80 KB, text/plain)
2011-11-09 11:55 UTC, jospezial
Details
kernel config (config-3.2.0-rc1,78.81 KB, text/plain)
2011-11-09 12:14 UTC, jospezial
Details
vboxpci.patch (vboxpci.patch,1.63 KB, patch)
2011-11-12 13:32 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2011-11-09 11:55:08 UTC
Created attachment 292005 [details]
build.log

app-emulation/virtualbox-modules-4.1.6 does not build with sys-kernel/git-sources-3.2_rc1

jlgentoo ~ # emerge -va1 virtualbox-modules

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-emulation/virtualbox-modules-4.1.6  USE="-pax_kernel" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/virtualbox-modules-4.1.6
 * vbox-kernel-module-src-4.1.6.tar.xz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                      [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.2.0-rc1/build
 * Found sources for kernel version:
 *     3.2.0-rc1
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-4.1.6.tar.xz to /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work
>>> Source unpacked in /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work
>>> Preparing source in /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work ...
ln: Symbolischen Verknüpfung „Module.symvers“ konnte angelgt werden: Die Datei existiert bereits
 * Preparing vboxdrv module
make -j2 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/3.2.0-rc1/build all 
*** Building 'vboxdrv' module ***
make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxdrv'
make KBUILD_VERBOSE= SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxdrv -C /usr/src/linux modules
make[2]: Entering directory `/usr/src/linux-3.2-rc1'
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxdrv/linux/SUPDrv-linux.o                                                                                                                                                                
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxdrv/SUPDrv.o                                                                       

...
                      

*** Building 'vboxpci' module ***
make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci'
make KBUILD_VERBOSE= SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci -C /usr/src/linux modules
make[2]: Entering directory `/usr/src/linux-3.2-rc1'
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/linux/VBoxPci-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/VBoxPci.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/SUPR0IdcClient.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/SUPR0IdcClientComponent.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/linux/SUPR0IdcClient-linux.o
/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/linux/VBoxPci-linux.c: In Funktion »VBoxPciLinuxInit«:
/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/linux/VBoxPci-linux.c:149:5: Fehler: Implizite Deklaration der Funktion »iommu_found«
/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/linux/VBoxPci-linux.c: In Funktion »vboxPciOsInitVm«:
/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/linux/VBoxPci-linux.c:989:9: Fehler: Zu wenige Argumente für Funktion »iommu_domain_alloc«
include/linux/iommu.h:68:29: Anmerkung: declared here
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci/linux/VBoxPci-linux.o] Fehler 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci] Fehler 2
make[2]: Leaving directory `/usr/src/linux-3.2-rc1'
make[1]: *** [vboxpci] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work/vboxpci'
cp: Aufruf von stat für „vboxpci/vboxpci.ko“ nicht möglich: Datei oder Verzeichnis nicht gefunden

>>> Source compiled.
>>> Test phase [not enabled]: app-emulation/virtualbox-modules-4.1.6

>>> Install virtualbox-modules-4.1.6 into /var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/image/ category app-emulation
 * Installing vboxdrv module
 * Installing vboxnetflt module
 * Installing vboxnetadp module
 * Installing vboxpci module
install: Aufruf von stat für „vboxpci.ko“ nicht möglich: Datei oder Verzeichnis nicht gefunden
!!! doins: vboxpci.ko does not exist
 * ERROR: app-emulation/virtualbox-modules-4.1.6 failed (install phase):
 *   doins failed
 * 
 * If you need support, post the output of 'emerge --info =app-emulation/virtualbox-modules-4.1.6',
 * the complete build log and the output of 'emerge -pqv =app-emulation/virtualbox-modules-4.1.6'.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/temp/environment'.
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/work'
 * QA Notice: file does not exist:
 * 
 *      doins: vboxpci.ko does not exist

>>> Failed to emerge app-emulation/virtualbox-modules-4.1.6, Log file:

>>>  '/var/tmp/portage/app-emulation/virtualbox-modules-4.1.6/temp/build.log'






Same error seems to be found on other systems:
https://forums.virtualbox.org/viewtopic.php?f=7&t=45881

https://www.virtualbox.org/ticket/9743
Comment 1 jospezial 2011-11-09 12:10:37 UTC
lgentoo ~ # emerge --info
Portage 2.2.0_alpha72 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.0-rc1 x86_64)
=================================================================
System uname: Linux-3.2.0-rc1-x86_64-AMD_Athlon-tm-_64_Processor_3700+-with-gentoo-2.1
Timestamp of tree: Wed, 09 Nov 2011 10:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo overlay_jl
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X Xaw3d a52 aac aacs aalib ace acl acpi activefilter aften alsa amd64 apm apng archive ass async audacious audiofile automount bash-completion berkdb binary-drivers blender-game bluray bzip2 cairo ccache cdda cddb cdio cdparanoia cdrom cgi charconv chroot cleartype cli colordiff colors compress consolekit cpio cracklib crypt css cups curl curlwrappers cvs cxx cyrillic daemon dbus declarative device-mapper dga dhcp dhcpcd dri dts dv dvb dvd dvdnav emerald emoticon enca encode enscript equalizer exif extensions extras fat fax fbcon ffmpeg fftw firefox flac floppy fluidsynth fontconfig foomaticdb fortran ftp fts3 fuse gallium gd gdbm gdu geoip gif gimp git gnutls gphoto2 gpm gsm gstreamer gtk gtk3 gudev gui gzip hddtemp hdf hdf5 highlight hwdb iconv icq icu id3 id3tag idn introspection ios ipc ipod ipv6 java javascript jpeg jpeg2k kate kde keymap ladspa lame laptop lcms libcaca libcanberra libkms libnl libnotify libsamplerate libssh2 libtiger libv4l libv4l2 libwww lm_sensors logrotate loop-aes lua lxde lzma lzo mad magic matroska md5sum midi mikmod mime minizip mixer mjpeg mmap mms mmx mmxext mng modplug modules mouse mozilla mp3 mp4 mpeg mplayer mudflap multilib multislot musepack musicbrainz nano-syntax ncurses network networkmanager nfs nfsidmap nfsv3 nfsv4 nfsv41 nls normalize nowlistening nptl nptlonly nsplugin nss ntfs ntfsprogs ntp nvidia nvram ogg ogm openal opencl opengl openmp oscar osdmenu otr pam pango parport parse-clocks pcap pci pcre pdf pdfimport phonon pipes plasma pm-utils pmu png policykit portaudio ppds pppd privacy projectm projectx ps pulseaudio pvr qt3support qt4 quicktime rar raw rdesktop readline recording reiser4 reiserfs remote-access remoteosd replaygain rpm rtsp rubberband samba scanner schroedinger screenshot sdl secure-delete semantic sensord session sftp sha512 shorten shout skins slang smbclient smi sndfile sockets sound soundtouch speex spell sql sqlite sqlite3 sse sse2 sse3 ssh ssl startup-notification statistics stk stream subtitles subversion svg swat symlink sysfs syslog taglib tcpd texteffect tftp theora threads thumbnail tiff translator truetype twolame udev udisks unicode urlpicpreview usb utp v4l v4l2 vamp vboxwebsrv vcd vcdx vdpau video videos vim-syntax virtualbox vlc vlm vnc vorbis vroot vst wad wav wavpack webgl webkit webpresence wifi winpopup wireshark wmf wxwidgets x264 xattr xcb xine xinerama xinetd xml xorg xosd xpm xrandr xscreensaver xv xvid zip 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia nouveau vesa svga vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 jospezial 2011-11-09 12:14:07 UTC
Created attachment 292007 [details]
kernel config
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-11-09 12:28:10 UTC
Please report this upstream or in case it was already reported add the URL to the upstream bug report to this bug.
Comment 4 Fabio Rossi 2011-11-12 13:32:07 UTC
Created attachment 292277 [details, diff]
vboxpci.patch

Here is the upstream patch for virtualbox-modules taken from https://www.virtualbox.org/changeset/39224
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-12-03 17:26:30 UTC
*** Bug 393041 has been marked as a duplicate of this bug. ***
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-12-03 17:37:44 UTC
+  03 Dec 2011; Lars Wendler <polynomial-c@gentoo.org>
+  virtualbox-modules-4.1.6.ebuild,
+  +files/virtualbox-modules-4.1.6-kernel-3.2-vboxpci.patch:
+  Fixed compilation with kernel-3.2 (bug #389953). Thanks to Fabio Rossi for
+  providing a patch.
+

Please try once again with kernel-3.2 and report back if it works now.
Comment 7 boxcars 2012-01-26 12:52:03 UTC
(In reply to comment #6) 
> Please try once again with kernel-3.2 and report back if it works now.

I'm not this bug's reporter, but I did experience this bug when trying to build virtualbox-modules-4.1.4 for a 3.2.1 kernel.  virtualbox-modules-4.1.6 builds for me without errors.
Comment 8 Israel G. Lugo 2012-01-28 18:13:45 UTC
(In reply to comment #7)
> (In reply to comment #6) 
> > Please try once again with kernel-3.2 and report back if it works now.
> 
> I'm not this bug's reporter, but I did experience this bug when trying to build
> virtualbox-modules-4.1.4 for a 3.2.1 kernel.  virtualbox-modules-4.1.6 builds
> for me without errors.

Ditto. Emerging virtualbox-modules-4.1.4 fails with kernel 3.2.1.

The upstream bug report is https://www.virtualbox.org/ticket/9743

As per the ticket, the problem was reportedly fixed in revision r39224: https://www.virtualbox.org/changeset/39224/vbox (link posted above is broken). The fix is supposedly available in VirtualBox 4.1.8.

Current stable VirtualBox in Portage fails to build with current stable kernel. Please integrate the fix, or try to fasttrack stabilization for VirtualBox 4.1.8...
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-02-02 12:23:24 UTC
*** Bug 400871 has been marked as a duplicate of this bug. ***
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-02-02 12:27:26 UTC
*** Bug 397983 has been marked as a duplicate of this bug. ***
Comment 11 Israel G. Lugo 2012-02-02 13:00:17 UTC
May I suggest that this bug should be marked RESOLVED CANTFIX or perhaps UPSTREAM?

Unfortunately the problem remains: currently no stable version of VirtualBox can compile with the stable kernel.

I have keyworded virtualbox-4.1.8 so that at least I *have* a VirtualBox. But of course I am weary of the security bug you mentioned.

I am not familiar with the VirtualBox code. Would the fix be hard to backport to current stable (4.1.4)? https://www.virtualbox.org/changeset/39224/vbox
Comment 12 Ben Kohler gentoo-dev 2013-10-03 19:28:28 UTC
*** Bug 404345 has been marked as a duplicate of this bug. ***