Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378759 - VirtualBox-4.1.0 fails parallel build: state/cr_statefuncs.h: No such file or directory
Summary: VirtualBox-4.1.0 fails parallel build: state/cr_statefuncs.h: No such file or...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 12:03 UTC by Alan McKinnon
Modified: 2011-10-05 08:32 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan McKinnon 2011-08-11 12:03:18 UTC
VirtualBox-4.1.0 failed to build with this error:

  C       VBoxOGLhostcrutil - {C}/src/VBox/GuestHost/OpenGL/util/pixel.c
In file included from /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/GuestHost/OpenGL/include/state/cr_client.h:12:0,
                 from /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/GuestHost/OpenGL/include/cr_pixeldata.h:11,
                 from /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/GuestHost/OpenGL/util/pixel.c:7:
/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/GuestHost/OpenGL/include/state/cr_bufferobject.h:12:33: fatal error: state/cr_statefuncs.h: No such file or directory
compilation terminated.
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/obj/VBoxOGLhostcrutil/util/pixel.o] Error 1
The failing command:
@x86_64-pc-linux-gnu-gcc -c -O2 -g -pipe -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-long-long -Werror-implicit-function-declaration -Wno-variadic-macros -march=native -O2 -pipe -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -Wno-sign-compare -Werror-implicit-function-declaration -m64 -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/Additions/x11/x11include/mesa-7.2 -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/Additions/x11/x11include/mesa-7.2/include -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/ -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/glapi -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/main -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/Additions/x11/x11include/mesa-7.2/src/mesa/drivers/dri/common -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/GuestHost/OpenGL/include -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/obj/VBoxOGLgen -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/include -I/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DCHROMIUM_THREADSAFE -DVBOX_WITH_HGCM -DUNPACKS -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DLinux=1 -D_GNU_SOURCE -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/obj/VBoxOGLhostcrutil/util/pixel.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/obj/VBoxOGLhostcrutil/util/pixel.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/obj/VBoxOGLhostcrutil/util/pixel.o /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/src/VBox/GuestHost/OpenGL/util/pixel.c
kmk: *** Waiting for unfinished jobs....

On a hunch, remerged virtualbox with MAKEOPTS="-j1", this succeeded.
So it looks like a possible parallel build issue.

Reproducible: Didn't try

Steps to Reproduce:
1. emerge -av =virtualbox-4.1.0
2.
3.
Actual Results:  
Build failed with file not found

Expected Results:  
Build should succeed

[I] app-emulation/virtualbox
     Available versions:  4.0.12 (~)4.1.0 **9999 {+additions alsa doc elibc_FreeBSD extensions headless java kernel_linux +opengl pulseaudio python +qt4 (+)sdk vboxwebsrv vnc}
     Installed versions:  4.1.0(13:47:55 11/08/11)(additions alsa extensions opengl qt4 vnc -doc -elibc_FreeBSD -headless -java -pulseaudio -python -sdk -vboxwebsrv)
     Homepage:            http://www.virtualbox.org/
     Description:         Softwarefamily of powerful x86 virtualization



# emerge --info
Portage 2.2.0_alpha50 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 2.6.39-ck-r2 x86_64)
=================================================================
System uname: Linux-2.6.39-ck-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 11 Aug 2011 09:30: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
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 enlightenment x11 alan
Installed sets: @alan-e17, @alan-fonts, @alan-gkrellm, @alan-icon-themes, @alan-kde, @alan-xorg, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula PUEL googleearth AdobeFlash-10 AdobeFlash-10.1"
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 /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask=n"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="/mnt/distfiles/ ftp://ftp.is.co.za/mirror/gentoo.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US en_ZA"
MAKEOPTS="-j3 -l3"
PKGDIR="/var/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="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/layman/enlightenment /var/portage/local/layman/x11 /var/portage/local/alan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X \ a52 aac aalib accessibility acl acpi aiglx akonadi alsa amd64 ao apache2 archive audiofile avahi bash-completion berkdb bittorrent bluetooth bonjour branding bzip2 cairo cdda cddb cdr cisco cli consolekit cracklib crypt cups curl curlwrappers cviewer cvs cxx dbus dbx dga dialup dirac djvu dri dts dv dvb dvd dvdr dvdread encode etk evo ewl exif expat ffmpeg flac fontconfig foomaticdb fortran freetds ftp fuse gallium gd gdbm gdu gif gimp glib glitz gnokii gnutls gpm graphviz gs gstreamer gtk handbook iconv id3tag ieee1394 imagemagick imap imlib ipc ipod iproute2 irda irmc jabber java java6 javascript jbig jce jpeg jpeg2k kde keyring kig-scripting kipi lame lcms ldap lesstif libass libc_glibc libcaca libg++ libnotify libsamplerate libsndfile libv4l2 libwww lirc lm_sensors lua lzma mad maildir matroska mbox mcal messenger mikmod milter mime mmx mng modules mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musepack musicbrainz mysql mysqli ncurses nepomuk netboot nfs nptl nsplugin ntp odbc offensive ogg openexr opengl openmp openssl openvpn pam pango passwordsave pch pcre pdf perl phonon plasma plotutils pmu png policykit posix postgres ppds pppd pptp qt3support qt4 quicktime readline reflection resolvconf samba sasl scanner schroedinger sdl semantic-desktop session slp smi sms solver speex spell spl sql sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg sysfs syslog sysvipc tcl tcltk tcpd testbed tetex theora threads thumbnail tidy tiff tk truetype tunepimp udev unicode usb utempter v4l v4l2 vaapi vcd video vim-syntax vlc vnc vorbis vpx wavpack webkit wifi wma wmf wxwindows x264 xattr xcomposite xinerama xinetd xml xorg xosd xpm xrender xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US en_ZA" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nouveau nv vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-08-11 12:26:44 UTC
All virtualbox ebuilds are compile-tested on dual quad-core Opteron machines before they enter the portage tree. Since I became vbox maintainer I didn't find a single version of virtualbox which failed with MAKEOPTS="-j8".

I also failed to reproduce your problem with MAKEOPTS="-j3 -l3".

So unless you can provide more detailed information I'm afraid I cannot provide any fix simply because I cannot reproduce it.


P.S.: You don't need to add yourself to CC when you're the reporter of a bug.
Comment 2 saellaven 2011-10-05 08:32:34 UTC
There appears to be a race condition while being built in parallel. I just had the same thing happen with VirtualBox-4.1.4 as part of my regular nightly update, but when I built it by itself afterward (still parallel, just by itself), it succeeded.