I'm not exactly sure what to say, the build log lists almost 550 lines of errors in various source code files. I'm aware that one error in a C source file can cause gcc to print a massive wall of errors... not sure if it's the same case here. Reproducible: Always Steps to Reproduce: 1. $emerge -q =app-emulation/virtualbox-4.0.15
Created attachment 263195 [details] build.log
Please paste your `emerge --info' in a comment.
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-zen1 x86_64) ================================================================= System uname: Linux-2.6.36-zen1-x86_64-Intel-R-_Core-TM-_i3_CPU_M_350_@_2.27GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 21 Feb 2011 21:00:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.0::funtoo sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1::funtoo sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1::funtoo sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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=core2 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US en_CA" MAKEOPTS="-j4" 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/wirelay /var/lib/layman/cj-overlay /var/lib/layman/gnome-live /var/lib/layman/steev /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acpi additions alsa amd64 aspell ass bzip2 cairo cdda cdparanoia classic cleartype consolekit css cups dbus device-mapper dhcpcd dri dvd exif expat ffmpeg firefox fontconfig foomaticdb fuse gconf gdu gecko gif glib gnome gpg gstreamer gtk java jpeg libnotify live mad midi mmx mp3 mpeg multilib musicbrainz nautilus ncurses network networkmanager nls nptl opengl openmp pam pcre pdf pnf png policykit ppds pulseaudio python samba sdl smp spell sse sse2 ssl ssse3 svg tcpd threads threadsafe tiff truetype udev unicode usb wifi x264 xcb xinerama xml xorg xpdf-headers xvid zip zlib" 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en_US en_CA" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
From your emerge --info it seems you're using Funtoo. Have you reported the bug in their bug tracker? Looking at the build log, it seems your system has an issue with the java environment. After looking at http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/ I see this version of virtualbox is not in the tree.
I was informed of the "java-config" command when I uninstalled sun-jre-bin, using this I set icedtea to be the default java vm. I tried compiling virtualbox again for giggles and it worked. (In reply to comment #4) > After looking at > http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/ > I see this version of virtualbox is not in the tree. > I see virtualbox-4.0.4 available in the tree.
Updated bug summary to the correct package version. (In reply to comment #5) > I was informed of the "java-config" command when I uninstalled sun-jre-bin, JRE stands for Java Runtime Environment. You need a JDK (Java Development KIT) for building java packages.
I can't replicate; gentoo64 virtualbox # USE=python emerge =app-emulation/virtualbox-4.1.4 >>> Emerging (1 of 1) app-emulation/virtualbox-4.1.4 >>> Jobs: 0 of 1 complete, 1 running Load avg: unknownopenpty failed: 'out of pty devices' >>> Installing (1 of 1) app-emulation/virtualbox-4.1.4 Missing a system header occasionally occurs with a version of kernel headers and gets fixed up picked up down the track. I doubt this is a bug.
Having a proper JDK installation should be enough to not getting caught by this problem.