Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333601 - x11-drivers/xf86-video-virtualbox-3.2.8 doesn't compile (kernel headers originated)
Summary: x11-drivers/xf86-video-virtualbox-3.2.8 doesn't compile (kernel headers origi...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 336465
  Show dependency tree
 
Reported: 2010-08-20 10:28 UTC by Pryka
Modified: 2011-09-23 07:35 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,88.97 KB, text/plain)
2010-08-20 16:53 UTC, Pryka
Details
build.log (build.log,88.97 KB, text/plain)
2010-08-20 16:54 UTC, Pryka
Details
build log (build.log,105.37 KB, text/plain)
2010-10-27 20:12 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pryka 2010-08-20 10:28:55 UTC
Can't compile xf86-video-virtualbox-3.2.8

Reproducible: Always

Steps to Reproduce:
1.emerge =xf86-video-virtualbox-3.2.8 --oneshot


Actual Results:  
(cat /dev/null;   echo kernel//var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/vboxvideo.ko;) > /var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/modules.order
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/.vboxvideo_drm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include -I/usr/src/linux-2.6.35-gentoo-r1/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -fshort-wchar -I/usr/src/linux/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/ -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE -DIN_GUEST_R0 -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxvideo_drm)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxvideo)"  -c -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/vboxvideo_drm.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/vboxvideo_drm.c
In file included from include/drm/drmP.h:653,
                 from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/vboxvideo_drm.c:61:
include/drm/drm_crtc.h:598: error: field ‘output_poll_slow_work’ has incomplete type
make[2]: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm/vboxvideo_drm.o] Error 1
make[1]: *** [_module_/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/vboxvideo_drm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35-gentoo-r1'
make: *** [vboxvideo] Error 2
 * ERROR: x11-drivers/xf86-video-virtualbox-3.2.8 failed:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/2.6.35-gentoo-r1/build all
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4562:  Called linux-mod_src_compile
 *   environment, line 3627:  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}";
 * 
 * If you need support, post the output of 'emerge --info =x11-drivers/xf86-video-virtualbox-3.2.8',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/xf86-video-virtualbox-3.2.8'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/VirtualBox-3.2.8_OSE'


Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r1-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 20 Aug 2010 08:45:03 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
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/sunrise"
SYNC="rsync://gentoo.prz.rzeszow.pl/gentoo-portage"
USE="X accessibility acl acpi alsa amd64 archive bash-completion beagle berkdb branding bzip2 cairo caps cdda cli consolekit corefonts cracklib crypt cups cxx dbus device-mapper disk-partition dri extras fat fortran fts3 gdbm gdu gif gimp glitz gnome gnutls gpm gtk iconv idn inotify ipv6 java jpeg lame libburn libnotify lzma lzo mmx mmxext modules mozilla mp3 mplayer mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin ntfs objc ogg opengl openmp pam pcre perl png policykit pppd python qt3support readline reflection secure-delete session slang spell spl sqlite sse sse2 sse3 ssl ssse3 subversion symlink sysfs syslog tcpd theora threads tiff truetype udev unicode unsupported usb vorbis xcb xcomposite xorg xulrunner xv xvid 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Eray Aslan gentoo-dev 2010-08-20 12:09:34 UTC
Please attach the complete build log.
Comment 2 Pryka 2010-08-20 16:53:56 UTC
Created attachment 243703 [details]
build.log
Comment 3 Pryka 2010-08-20 16:54:04 UTC
Created attachment 243705 [details]
build.log
Comment 4 denysonique 2010-08-21 08:38:15 UTC
Are you sure you have the 2.6.35-gentoo-r1 sources installed? Not only the image. Please post the output of emerge -pv =sys-kernel/gentoo-sources-2.6.35-r1
Comment 5 Pryka 2010-08-21 13:21:48 UTC
(In reply to comment #4)
> Are you sure you have the 2.6.35-gentoo-r1 sources installed? Not only the
> image. Please post the output of emerge -pv
> =sys-kernel/gentoo-sources-2.6.35-r1
> 

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

Calculating dependencies... done!
[ebuild   R   ] sys-kernel/gentoo-sources-2.6.35-r1  USE="symlink -build -deblob" 0 kB
Comment 6 denysonique 2010-08-21 16:56:58 UTC
Configure your 2.6.35-gentoo-r1 via make menuconfig with your old settings. Save them and try to emerge again the vbox video driver.
Comment 7 Pryka 2010-08-21 17:06:29 UTC
All ready done, but with no luck...

Today's update to 2.6.35-gentoo-r2 don't solve problem
Comment 8 denysonique 2010-08-21 17:17:16 UTC
(In reply to comment #7)
> All ready done, but with no luck...
> 
> Today's update to 2.6.35-gentoo-r2 don't solve problem
> 

Make sure /usr/src/linux points to /usr/2.6.35-gentoo-r2.
Comment 9 Pryka 2010-08-21 17:33:07 UTC
Yes it points.
Comment 10 denysonique 2010-08-21 22:57:24 UTC
(In reply to comment #9)
> Yes it points.
> 

Sorry I meant make sure /usr/src/linux/ points to /usr/src/2.6.35-gentoo-r2.

I was getting the same error when trying to build against an 'empty' kernel dir.
Comment 11 Pryka 2010-08-22 06:51:30 UTC
I know what You mean :)

usr/src/linux points to the latest kernel sources. In this case 2.6.35-gentoo-r2
Comment 12 seraph@xs4all.nl 2010-09-01 10:29:34 UTC
I'm having exactly the same issue with a virtual machine running the 2.6.35-gentoo-r4 kernel.

The kernel header file it trips over, drm_crtc.h, was changed between kernel versions 2.6.34 and 2.6.35. Specifically, the following was added to the structure drm_mode_config:

        /* output poll support */
        bool poll_enabled;
        struct delayed_slow_work output_poll_slow_work;

I'm not sure exactly why the virtualbox code complains about this; I've looked through the various header files and everything seems okay to me, but I might have missed something. Perhaps giving the kernel people a poke may shed some more light.

Anyway, I'll try with a 2.6.34 kernel later, maybe that yields better results. I'll let you know.
Comment 13 seraph@xs4all.nl 2010-09-03 09:31:25 UTC
Well, it was a bitch to get it to compile, but I finally did it. Here's how:

- Don't use a 2.6.35 kernel (2.6.34-gentoo-r6 worked for me)
- Don't use distcc
- Don't use multiple jobs in make

So, install and boot a 2.6.34 kernel, make sure the /usr/src/linux symlink points to the correct kernel, and then compile xf86-video-virtualbox as follows:

env FEATURES=-distcc MAKEOPTS=-j1 emerge --oneshot xf86-video-virtualbox


I think it's safe to say that this package "needs work". :-)
Comment 14 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-09-05 11:16:47 UTC
(In reply to comment #13)
> Well, it was a bitch to get it to compile, but I finally did it. Here's how:
> 
> - Don't use a 2.6.35 kernel (2.6.34-gentoo-r6 worked for me)

This needs further investigation. Unfortunately all kernels bigger than 2.6.32.x don't work reliably on my Gentoo-VM so I cannot test the guest packages with any newer kernel. I already reported this upstream (http://www.virtualbox.org/ticket/7293).

> - Don't use distcc

The trouble with distcc is a known problem. But unless someone comes up with a good solution to convince distcc to work with virtualbox's unusual build system there's no way this can be fixed.

> - Don't use multiple jobs in make

Dunno what went wrong on your system but I regularly compile this package with MAKEOPTS="-j4" successfully.
 
> So, install and boot a 2.6.34 kernel, make sure the /usr/src/linux symlink
> points to the correct kernel, and then compile xf86-video-virtualbox as
> follows:
> 
> env FEATURES=-distcc MAKEOPTS=-j1 emerge --oneshot xf86-video-virtualbox
> 
> 
> I think it's safe to say that this package "needs work". :-)

I doubt the package needs much work. Like pointed out above at least one of the mentioned problems is not easy to fix. But of course patches are always welcome.
Comment 15 seraph@xs4all.nl 2010-09-05 12:34:59 UTC
Well, like I wrote previously, the kernel header file the compilation trips over was changed between 2.6.34 and 2.6.35, and the compilation trips exactly at the newly added part. So either Virtualbox can't handle the new stuff, or the change created a bug in the kernel headers somehow. (Although I could find no trace of the later, so the former is more likely IMHO.)
Comment 16 Dominique Michel 2010-10-27 19:51:35 UTC
Same problem here with linux-2.6.35-gentoo-r10

# emerge --info =x11-drivers/xf86-video-virtualbox-3.2.10
Portage 2.1.9.21 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.12.1-r1, 2.6.35-gentoo-r10-3D x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-r10-3D-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Fri, 22 Oct 2010 17:30:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5, 4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula Nero-EULA-US PUEL AdobeFlash-10.1"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="hda-intel ice1724 usb-audio virmidi cx88"
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"
ANT_HOME="/usr/share/ant"
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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=amdfam10 -O2 -pipe"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CVS_RSH="ssh"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
DVB_CARDS="ttpci"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; exec sftp \"\${x%%/*}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; exec rsync -avP \"\${x%%/*}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
FLTK_DOCDIR="/usr/share/doc/fltk-2.0_pre6970-r1/html"
FOO2ZJS_DEVICES="hp2600n"
GCPAN_OVERLAY="/usr/portage/local/layman/perl"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://gentoo.wheel.sk/ http://gentoo.mirror.pw.edu.pl/ http://gentoo.mneisen.org/"
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"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HG="/usr/bin/hg"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/info:/usr/share/info/emacs-23"
INPUT_DEVICES="evdev lirc virtualbox wacom"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVACC_HOME="/usr/share/javacc/"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LADSPA_PATH="/usr/lib64/ladspa"
LANG="en_US.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="es es_ES en en_GB en_US fr sv"
LIRC_DEVICES="devinput"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j5"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/usr/lib64/erlang/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PHP_TARGETS="php5-2"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="16"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/pro-audio /usr/portage/local/layman/zugaina /usr/portage/local/layman/sping /usr/portage/local/layman/kde-sunset /usr/portage/local/layman/xmms-zombie /usr/portage/local/layman/perl /usr/portage/local/layman/test"
PRELINK_PATH_MASK="/usr/lib64/klibc:/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; exec rsync -avP \"\${x%%/*}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SANE_CONFIG_DIR="/etc/sane.d"
SGML_CATALOG_FILES="/etc/sgml/xml-docbook-4.1.2.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/xml-docbook-4.5.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/sgml-docbook-4.5.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/xml-docbook-4.2.cat:/etc/sgml/xml-docbook-4.4.cat:/etc/sgml/xml-docbook-4.3.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-docbook-3.0.cat"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="3dnow X a52 aac acl acpi alsa amd64 audiofile avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cjk consolekit cracklib crypt css cups cxx dbus dga directfb djvu dri dts dv dvd dvdr dvdread eds emboss encode evo exif fam fbcon ffmpeg fftw firefox flac fltk fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp glut gnome gnuplot gnutls gphoto2 gpm gsl gstreamer gtk gtkhtml hal iconv icq idn ieee1394 imap imlib ipv6 jabber jack jbig jingle jpeg jpeg2k kde kerberos ladcca ladspa lame lash lcms ldap libnotify libsamplerate libwww lirc lzo mad maildir matroska mbox mcve memlimit mikmod mime mmx mng modules mozilla mp3 mp4 mpeg mpi mplayer msn mudflap multilib musepack musicbrainz mysql nas ncurses nls nntp nptl nptlonly nsplugin ntpl offensive ogg openal openexr opengl openmp osc oss pam pango pdf perl plotutils png policykit portaudio posix ppds pppd pulseaudio python qt3support quicktime raw readline recode rss scanner sdl seamonkey session sharedmem shorten slang slp smartcard smp sndfile sockets sox speex spell sse sse2 ssl startup-notification svg sysfs syslog sysvipc szip taglib tcl tcpd theora threads tiff timidity tk truetype unicode usb v4l v4l2 vcd vim-syntax vorbis wavpack wma wmf x264 xcb xcomposite xface xine xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="hda-intel ice1724 usb-audio virmidi cx88" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="ttpci" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" 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="evdev lirc virtualbox wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en en_GB en_US fr sv" LIRC_DEVICES="devinput" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv fbdev v4l vesa nvidia virtualbox" 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" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VBOX_APP_HOME="/usr/lib64/virtualbox-ose"
VIDEO_CARDS="nv fbdev v4l vesa nvidia virtualbox"
XAUTHORITY="/root/.xauthWnepr3"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/kde/3.5/share:/usr/share:/usr/share/gdm"
XEHELPURL="/usr/share/doc/xephem-3.7.4-r1/html/xephem.html"
XSESSION="fvwm-crystal"
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"
XZ_OPT="--memory=max"
_="/usr/bin/emerge"
Comment 17 Dominique Michel 2010-10-27 19:55:11 UTC
The kernel extra string 3D mean this kernel is using nvidia driver.

# emerge -pqv =x11-drivers/xf86-video-virtualbox-3.2.10
[ebuild     U ] x11-drivers/xf86-video-virtualbox-3.2.10 [3.2.8] USE="dri (-debug%)"

The prior kernel was linux-2.6.33-gentoo.
Comment 18 Dominique Michel 2010-10-27 20:12:51 UTC
Created attachment 252301 [details]
build log
Comment 19 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-11-01 17:17:30 UTC
In all attached build.log files I can see the following output:


echo "  ERROR: Kernel configuration is invalid.";		\
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\

So did you really configure/compile the kernel xf86-video-virtualbox package tries to compile against? If not, does the error go away when you actually compile a kernel from these kernel sources?
Comment 20 Dominique Michel 2010-11-03 19:12:09 UTC
(In reply to comment #19)
> In all attached build.log files I can see the following output:
> 
> 
> echo "  ERROR: Kernel configuration is invalid.";               \
> echo "         include/generated/autoconf.h or include/config/auto.conf are
> missing.";\
> echo "         Run 'make oldconfig && make prepare' on kernel src to fix it."; 
> \
> 
> So did you really configure/compile the kernel xf86-video-virtualbox package
> tries to compile against? 

Yes, it is the kernel I am currently running.

I try to run 'make oldconfig && make prepare' and emerge again for this package. I get exactly the same error. I also get some warnings with 'make oldconfig':

# make oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/basic/hash
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
  HOSTCC  scripts/kconfig/kxgettext.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
In file included from scripts/kconfig/zconf.tab.c:2464:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:508: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
scripts/kconfig/confdata.c: In function ‘conf_write_autoconf’:
scripts/kconfig/confdata.c:759: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
scripts/kconfig/confdata.c:760: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2465:
scripts/kconfig/expr.c: In function ‘expr_print_file_helper’:
scripts/kconfig/expr.c:1090: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -o arch/x86/Kconfig
#
# configuration written to .config
#

I even try to run a make_mrproper, make oldconfig with my config file, make prepare, and re-merge xf86-video-virtualbox. Same warnings and same error when building xf86-video-virtualbox.

I googled and find that some gentoo users get the same error with nouveau: http://forums.gentoo.org/viewtopic-t-842848-start-0.html

google find very few results and all are gentoo related: http://www.google.ch/search?q=drm_crtc.h%3A598%3A+error%3A+field+%E2%80%98output_poll_slow_work%E2%80%99+has+incomplete+type&ie=utf-8&oe=utf-8&aq=t&rls=org.gentoo:en-US:unofficial&client=firefox-a

I will try with linux-2.6.36-gentoo
Comment 21 Dominique Michel 2010-11-05 16:34:45 UTC
emerge xf86-video-virtualbox did it fine with gentoo-sources-2.6.36.

I must also say that I done a few changes into the kernel config, I shifted to KMS and the nouveau driver instead of nvidia. So, I think that it can be a good thing if other users try the 2.6.36 kernel and report back here.
Comment 22 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-12-30 08:56:42 UTC
Seems like this is specific to kernel-2.6.35 and the nouveau driver. Is that correct? 
If yes this bug might get closed as fixed since we already have kernel-2.6.36 stable for both, amd64 and x86.
Comment 23 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-09-23 07:35:17 UTC
x11-drivers/xf86-video-virtualbox-3.2.8 is no longer in the tree