Building x11-drivers/xf86-video-virtualbox-4.0.0 fails due to a fatal 'invalid syntax' error during compile time. Reproducible: Always Steps to Reproduce: 1.emerge x11-drivers/xf86-video-virtualbox-4.0.0 2. 3. Actual Results: ... INST VBoxGuestR0Lib => {O}/lib/additions/VBoxGuestR0Lib.a INST VBoxGuestR0LibBase => {O}/lib/additions/VBoxGuestR0LibBase.a INST VBoxGuestR3Lib => {O}/lib/additions/VBoxGuestR3Lib.a INST VBoxGuestR3LibShared => {O}/lib/additions/VBoxGuestR3LibShared.a INST VBoxGuestR3LibXFree86 => {O}/lib/additions/VBoxGuestR3LibXFree86.a kmk -j2 TOOL_YASM_AS=yasm KBUILD_PATH=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/kBuild kmk: Threads disabled (LD_PRELOAD) GEN {T}/VBoxOGLgen/cr_packfunctions.h GEN {T}/VBoxOGLgen/cr_opcodes.h File "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/src/VBox/GuestHost/OpenGL/packer/pack_header.py", line 37 """ ^ SyntaxError: invalid syntax kmk: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/out/linux.amd64/release/obj/VBoxOGLgen/cr_packfunctions.h] Error 1 kmk: *** Deleting file `/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/out/linux.amd64/release/obj/VBoxOGLgen/cr_packfunctions.h' kmk: *** Waiting for unfinished jobs.... File "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/src/VBox/GuestHost/OpenGL/packer/opcodes.py", line 17 print "" ^ SyntaxError: invalid syntax kmk: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/out/linux.amd64/release/obj/VBoxOGLgen/cr_opcodes.h] Error 1 kmk: *** Deleting file `/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/out/linux.amd64/release/obj/VBoxOGLgen/cr_opcodes.h' kmk: *** Exiting with status 2 emake failed * ERROR: x11-drivers/xf86-video-virtualbox-4.0.0 failed: * kmk failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 3615: Called die * The specific snippet of code: * MAKE="kmk" emake TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" || die "kmk failed"; * * If you need support, post the output of 'emerge --info =x11-drivers/xf86-video-virtualbox-4.0.0', * the complete build log and the output of 'emerge -pqv =x11-drivers/xf86-video-virtualbox-4.0.0'. * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/temp/environment'. * S: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE' >>> Failed to emerge x11-drivers/xf86-video-virtualbox-4.0.0, Log file: >>> '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/temp/build.log' * Messages for package x11-drivers/xf86-video-virtualbox-4.0.0: * ERROR: x11-drivers/xf86-video-virtualbox-4.0.0 failed: * kmk failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 3615: Called die * The specific snippet of code: * MAKE="kmk" emake TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" || die "kmk failed"; * * If you need support, post the output of 'emerge --info =x11-drivers/xf86-video-virtualbox-4.0.0', * the complete build log and the output of 'emerge -pqv =x11-drivers/xf86-video-virtualbox-4.0.0'. * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/temp/environment'. * S: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE'
Portage 2.1.9.31 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.36-gentoo-r1-06 x86_64) ================================================================= System uname: Linux-2.6.36-gentoo-r1-06-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 13 Jan 2011 17:00:01 +0000 ccache version 3.1.4 [enabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1, 3.1.3 dev-util/ccache: 3.1.4 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.8 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa /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.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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="nl_BE.UTF-8" LC_ALL="nl_BE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="nl en" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 apache2 automount bash-completion berkdb bitmap-fonts bluetooth bmp bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus device-mapper doc dri dvd dvdr encode examples extras firefox fontconfig fortran gd gdbm gdu geoip gif gnome gnutls gpm gsteamer gtk iconv ipv6 jadetex java jpeg jpg kdrive kerberos ldap midi mikmod mmx modules mpeg msn mudflap multilib mysql mysqli ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl png policykit pppd python quicktime readline ruby session sip socks5 sound sqlite sse sse2 ssl svg sysfs tcpd threads threadsafe tiff tk truetype truetype-fonts udev unicode wav xml xorg 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" 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="virtualbox keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Does the problem vanish when you compile the package with ccache being disabled? Oh and please remove the ~x86 from your ACCEPT_KEYWORDS variable. Mixing different arches there is no good idea and can lead to quite severe side-effects.
I tried without ccache, but still got the same result. Tnx for the pointer on the ~x86 keyword, I removed it and I am letting the box 'emerge -uDn' first. I will try rebuilding xf86-video-virtualbox-4.0.0 tomorrow. If the problems still persists, i'll attach a full build log.
Created attachment 259894 [details] full build log This is the full result when emerging.
Created attachment 259896 [details] emerge --info
Does this still happen with xf86-video-virtualbox-4.0.2?
Maintainers: Please globally (and not temporarily) set Python 3.* as main active version of Python, so that you can detect such bugs in your packages earlier.
Fixed.