Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379119 - app-emulation/virtualbox-modules-4.1.0-r1 - work/vboxpci/linux/VBoxPci-linux.c:38:27: fatal error: asm/amd_iommu.h: No such file or directory
Summary: app-emulation/virtualbox-modules-4.1.0-r1 - work/vboxpci/linux/VBoxPci-linux....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-14 03:26 UTC by yermandu
Modified: 2011-10-11 01:13 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,16.21 KB, text/plain)
2011-08-14 03:26 UTC, yermandu
Details
virtualbox-modules-4.1.0-amd_iommu.patch (virtualbox-modules-4.1.0-amd_iommu.patch,314 bytes, patch)
2011-08-16 22:36 UTC, Fabio Rossi
Details | Diff
virtualbox-modules-4.1.0-r1.ebuild.patch (virtualbox-modules-4.1.0-r1.ebuild.patch,606 bytes, patch)
2011-08-17 21:17 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description yermandu 2011-08-14 03:26:02 UTC
Created attachment 283261 [details]
build.log

Updating virtualbox-modules im gotting this error

CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.0-r1/work/vboxpci/SUPR0IdcClientComponent.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.1.0-r1/work/vboxpci/linux/SUPR0IdcClient-linux.o
/var/tmp/portage/app-emulation/virtualbox-modules-4.1.0-r1/work/vboxpci/linux/VBoxPci-linux.c:38:27: fatal error: asm/amd_iommu.h: Arquivo ou diretório não encontrado
compilation terminated.
make[3]: ** [/var/tmp/portage/app-emulation/virtualbox-modules-4.1.0-r1/work/vboxpci/linux/VBoxPci-linux.o] Erro 1
make[2]: ** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-4.1.0-r1/work/vboxpci] Erro 2
make[2]: Saindo do diretório `/home/yermandu/Kernel/linux.git'
make[1]: ** [vboxpci] Erro 2
make[1]: Saindo do diretório `/var/tmp/portage/app-emulation/virtualbox-modules-4.1.0-r1/work/vboxpci'
cp: impossível obter estado de "vboxpci/vboxpci.ko": Arquivo ou diretório não encontrado

The virtualbox-modules-4.0.12 compiles normally

Kernel 3.0.1 amd64
emerge --info virtualbox-modules
Portage 2.2.0_alpha51 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.0-rc1-mainline+ x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.0-rc1-mainline+-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 13 Aug 2011 23:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo dauleet x11 arcon xfce-dev zugaina xmw gentoo-guis arces perl-experimental kist proaudio jamesbroadhead
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -msse -msse2 -msse3 -mssse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe -msse -msse2 -msse3 -mssse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ rsync://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.lcc.ufmg.br http://gentoo.c3sl.ufpr.br/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ rsync://gentoo.lcc.ufmg.br/gentoo-sources ftp://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.llarian.net/"
LANG="pt_BR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt_BR pt en en_GB en_UK"
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="/var/lib/layman/dauleet /var/lib/layman/x11 /var/lib/layman/arcon /var/lib/layman/xfce-dev /var/lib/layman/zugaina /var/lib/layman/xmw /var/lib/layman/gentoo-guis /var/lib/layman/arces /var/lib/layman/perl-experimental /var/lib/layman/kist-overlay /var/lib/layman/pro-audio /var/lib/layman/jamesbroadhead/portage-overlay"
SYNC="rsync://rsync.br.gentoo.org/gentoo-portage"
USE="7z 7zip X Xaw3d aac aalib abiword abiword-docs acl action_modeswitch adplug aio airplay alisp alltargets alsa amd64 amr ao apache2 api apisupport apng archive ares asf aspell assistant audiofile auto-hinter autoipd avahi avx bash-completion berkdb bittorrent bluetooth branding bs2b bugzilla bzip2 bzr cairo caps cdda cdio cdr celt cifs cjk cli cloog compat connection-sharing consolekit contrib cpudetection cracklib crypt cscope ctypes-python cue cups curl cvs cxx dbi dbus dejagnu demo device-mapper devil dga dhclient dhcp dirac directfb djvu dmx dri dri2 dso dssi dv dvd dvdr dvdrw eap-sim edd egl embed embedded emu10k1 enchant encode epydoc examples exif extraengine extras faac faad fastcgi fat ffmpeg fftw firefox flac flac123 fltk fluid fluidsynth fluxbox fontconfig fortran fpm fpx frei0r ftp gallium gbm gcdmaster gcj gd gdbm ggi gif gimp git glade gles glut gmp gnu-classpath gpg gpm grammar graphite graphviz gsf gsm gst gstreamer gtk gtk-support gtkspell gtkstyle gucharmap gudev gzip h224 h281 h323 hda-intel hddtemp hdri highlight hvm i915 ices iconv icu id3tag imagemagick imlib indicate interpreter intl ipv6 jabber jack jackmidi jadetex java javascript jbig jit jpeg jpeg2k jruby js json kdrive keymap lash layman lcms ldap ldapsam libcaca libcanberra libffi libnotify libsamplerate lightspark lilypond llvm lm_sensors logo lv2 lzma lzo mad math melt menubar mercurial metalink metric midi mixed mlib-update mmap mms mmx mmxext mng modplug modules motif mp3 mp3rtp mp4 mpeg mpg123 mpi mpx msn msnd-pinnacle mtp mudflap multilib musepack mysql nas ncurses netplay network networking networkmanager new-login newmousefocus nls nocd nodrm nptl nptlonly nspr nss ocaml ocr ofa ogg openal opengl openmp openvg openxml optimization osc oss p7zip pam pch pcre pdf pear perl phat php phpmyadmin physfs playlist plowshare plugins png policykit portaudio ppl pppd print pysco python qemu-ifup qt3support qt4 qthelp rar raw readline realtime recode relp remote-access resolvconf rle rosprite rt-limits rtc rtf rtmp ruby rups samba scanner schroedinger scripts sdl sdl-sound serialmidi session sid signal slang sndfile sockets sound soundex soundtouch speex spell sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification stk strace stroke strong-optimization subversion svg svgtiny swat sysfs system-sqlite t1lib tcl tcpd tdb theora threads threadsafe thunar tiff timezone timidity tk tonal toolbar trace track-src-odirect truetype twitter udev unicode unlock-notify unzip upnp usb usb-audio utils utp v4l2 vaapi vala valgrind vde vhosts view-captcha vim vim-pager vim-syntax virmidi virt-network vocoder vorbis vpx wad wav wavpack webkit webp wget wifi windind wininst wmf wps wxwidgets x264 xattr xfce xfce4 xft xine xinerama xlock xlockrc xml xmlreader xmlwriter xorg xpm xterm-color xv xvfb xvid xvmc xwax_decoders_flac 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2 fuji" 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="penmount evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR pt en en_GB en_UK" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="intel gallium i915" XFCE_PLUGINS="brightness menu trash clock logout" 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

=================================================================
                        Package Settings
=================================================================

app-emulation/virtualbox-modules-4.0.12 was built with the following:
USE="(multilib)"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-15 01:48:37 UTC
Please attach English language build output next time.
Comment 2 Fabio Rossi 2011-08-16 22:36:10 UTC
Created attachment 283599 [details, diff]
virtualbox-modules-4.1.0-amd_iommu.patch

Here is the patch to fix the compilation issue
Comment 3 yermandu 2011-08-17 15:38:53 UTC
Tanks Fabio with the patch everthing fines :)
Comment 4 Fabio Rossi 2011-08-17 21:15:16 UTC
Besides the patch I'd add some (non-blocking) kernel config checks to the ebuild. For instance, to support the PCI passthrough feature (http://www.virtualbox.org/manual/ch09.html#pcipassthrough), one should have enabled at least three kernel options.
Comment 5 Fabio Rossi 2011-08-17 21:17:13 UTC
Created attachment 283685 [details, diff]
virtualbox-modules-4.1.0-r1.ebuild.patch

here is the patch with the kernel config checks for PCI passthrough support.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-08-17 23:35:15 UTC
+*virtualbox-modules-4.1.2 (17 Aug 2011)
+
+  17 Aug 2011; Lars Wendler <polynomial-c@gentoo.org>
+  +virtualbox-modules-4.1.2.ebuild:
+  Version bump. Added some PCI checks as suggested by Fabio Rossi in bug
+  #379119.

Can you please test if the problem still exists in virtualbox-modules-4.1.2.ebuild?
Comment 7 Jens Kleikamp 2011-08-18 08:09:05 UTC
I can´t build 4.1.2 with gentoo-sources-3.0.3, because there´s no CONFIG_IOMMU_SUPPORT option.

http://cateee.net/lkddb/web-lkddb/IOMMU_SUPPORT.html

Seems that CONFIG_IOMMU_SUPPORT only existent in 3.1
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-08-18 08:57:36 UTC
(In reply to comment #7)
> I can´t build 4.1.2 with gentoo-sources-3.0.3, because there´s no
> CONFIG_IOMMU_SUPPORT option.
> 
> http://cateee.net/lkddb/web-lkddb/IOMMU_SUPPORT.html
> 
> Seems that CONFIG_IOMMU_SUPPORT only existent in 3.1

The check should be non-fatal. I just built 4.1.2 for kernel-3.0.3
But well... it doesn't really make sense having a kconfig check for an option that is only available in some release candidate kernels...
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-10-04 19:27:21 UTC
The kconfig check was removed. So what about the initial problem here? Does it still exist with app-emulation/virtualbox-modules-4.1.4?
Comment 10 yermandu 2011-10-06 21:33:07 UTC
(In reply to comment #9)
> The kconfig check was removed. So what about the initial problem here? Does it
> still exist with app-emulation/virtualbox-modules-4.1.4?

I test the compilation and instalation is ok. Using kernel 3.0 and 3.1.