Virtualbox fails to build with: /var/tmp/portage/app-emulation/virtualbox-3.2.12-r4/work/VirtualBox-3.2.12_OSE/out/linux.amd64/release/bin/tstVMStructRC: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory I am using gcc-4.5.2. Reproducible: Always Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.5.2, libc-0-r0, 2.6.38-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.0.2 Timestamp of tree: Wed, 08 Jun 2011 06:45:02 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 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 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.12.2 virtual/os-headers: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE freedist UbuntuFontLicense-1.0 NVIDIA ipw3945 GCT CCPL-Sampling-Plus-1.0 werken.xpath PUEL" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=core2 -mtune=generic -O2 -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" FFLAGS="" GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j8" 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/java-overlay /usr/local/portage" SYNC="rsync://rsync9.de.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvb dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gnome-keyring gpm gstreamer gtk iconv idn ipv6 jabber jpeg lastfm lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python qt3support qt4 readline rss sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype udev unicode usb vaapi vdpau vorbis webm x264 xcb xml 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please attach the entire build log.
Created attachment 276471 [details] build.log Sorry, here it is.
Created attachment 276477 [details] build.log >> Sorry, here it is. Wrong one (was from testing with symlinks). The correct one is now attached.
libstdc++.so.6 belongs to the sys-devel/gcc package. Please post the output of gcc-config -l as well as the putput of emerge -qpv gcc
$ gcc-config -l [1] x86_64-pc-linux-gnu-4.4.5 [2] x86_64-pc-linux-gnu-4.5.2 * $ emerge -qpv gcc [ebuild R ] sys-devel/gcc-4.5.2 USE="fortran gcj mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -graphite -gtk (-hardened) (-libffi) -lto -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
I just stumbled about the same problem on one of my systems. I fixed it by recompiling gcc. Can you please try the same?
Ok... I recompiled gcc a few days ago because some ebuild started to depend on USE="fortran" and before that I had USE="-fortran". So now I tried compiling VirtualBox again and - tadaah - it works. I recompile gcc again with USE="-fortran", compile VirtualBox again and see what happens...
> I recompile gcc again with USE="-fortran", compile VirtualBox again and see > what happens... Just did that and VirtualBox is compiling fine with gcc USE="-fortran", so this was not the reason.
There's now bug #373513 Let's see what the result is.
we need the full build log where the library was not installed in order to go anywhere
I am reopening this bug. I'm running into the same problem with virtualbox-3.2.12-r4. This is my emerge --info =app-emulation/virtualbox-3.2.12-r4 Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.34-gentoo-r12 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34-gentoo-r12-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.0.2 Timestamp of tree: Thu, 14 Jul 2011 18:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 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.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8-sse3 -O2 -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/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="-march=k8-sse3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ rsync://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.klid.dk/gentoo/ http://ftp.klid.dk/ftp/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.ing.umu.se/linux/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/" LANG="da_DK.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="da nb sv en" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi aim alsa amd64 ao apache2 apm atm audiofile autoipd avahi bash-completion bcmath berkdb bidi bluetooth bsf bzip2 cairo calendar caps cdb cdda cddb cdinstall cdparanoia cdr cgi cjk cli consolekit cracklib crypt css cups curl curlwrappers cvs cxx dbase dbi dbus dbx dga directfb djvu doc dri dts dv dvb dvd dvdr eds encode enscript evo examples exif expat extras fam fbcon ffmpeg fftw firefox flac flatfile fltk fontconfig foomaticdb fortran freetds ftp gcj gd gdbm gdu geoip ggi gif gimp glut gmp gnome gnome-keyring gnuplot gnustep gnutls gphoto2 gpm gps graphviz gsl gsm gstreamer gtk gtkhtml guile gzip hddtemp iconv icq icu idn ieee1394 imagemagick imap imlib inifile innodb iodbc ipod ipv6 jabber jack jadetex java javascript jbig jingle joystick jpeg jpeg2k kerberos ladspa lame lapack lash latex lcms ldap libcaca libedit libgda libnotify libsamplerate libwww lm_sensors lua lzo m17n-lib mad mailwrapper matroska mbox mcve mdnsresponder-compat mhash mikmod milter mime mmap mmx mng modplug modules mono mp3 mp4 mpeg mpi msn mtp mudflap mule multilib musepack musicbrainz mysql mysqli nas nautilus ncurses neXt netboot netcdf networking networkmanager nis nls nntp nptl nptlonly nsplugin ocaml ocamlopt odbc offensive ogg openal openexr opengl openmp osc oscar oss pam pcmcia pcntl pcre pda pdf perl php plotutils png policykit portaudio posix postgres ppds pppd pulseaudio python qdbm qt4 quicktime radius raw rdesktop readline recode rss ruby samba sasl scanner sdl session sharedext sharedmem shorten simplexml skey slang slp smartcard smp sndfile snmp soap sockets socks5 source sox speex spell spl sqlite sqlite3 sse sse2 sse3 ssl startup-notification subversion suid svg symlink sysfs syslog sysvipc szip taglib tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype unicode usb v4l v4l2 vcd vhosts videos vnc vorbis wavpack wddx wifi wmf wxwidgets x264 xattr xcb xcomposite xface xft xinerama xinetd xml xmlrpc xmp xorg xosd xpm xscreensaver xsl xv xvid yahoo yaz zeroconf zlib zsh-completion" 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="da nb sv en" PHP_TARGETS="php5-3 php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx" 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-3.2.12-r4 was built with the following: USE="additions alsa (multilib) opengl pulseaudio python qt4 sdk vboxwebsrv vnc -headless" ****************** emerge -pqv =app-emulation/virtualbox-3.2.12-r4 [ebuild R ] app-emulation/virtualbox-3.2.12-r4 USE="additions alsa opengl pulseaudio python qt4 sdk vboxwebsrv vnc -headless"
Created attachment 280069 [details] My build log for virtualbox-3.2.12-r4 Compressed version of the build log due to its size.
Comment on attachment 280069 [details] My build log for virtualbox-3.2.12-r4 we need the build log of the broken gcc package, not of other random packages (like virtualbox)
Created attachment 280071 [details] Build log for gcc-4.4.5 Aye aye... lucky me. I _did_ have a build.log for my gcc-4.4.5. It is compressed due to its vista-like size.
*** Bug 378159 has been marked as a duplicate of this bug. ***
I have the same issue with gcc-4.5.3 and virtualbox-4.1.0. 'emerge virtualbox' fails with: /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/bin/tstVMStructRC: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory root@condor:/root(18)# gcc-config -l [1] avr-4.4.4 * [2] x86_64-pc-linux-gnu-4.4.6 [3] x86_64-pc-linux-gnu-4.5.3 * root@condor:/root(19)# qlist sys-devel/gcc-4.5.3 | grep libstd /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/32/libstdc++.so.6.0.14 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/32/libstdc++.so.6 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/32/libstdc++.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/32/libstdc++.a /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6.0.14 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.a /usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/locale/de/LC_MESSAGES/libstdc++.mo /usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/locale/fr/LC_MESSAGES/libstdc++.mo /usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/gcc-4.5.3/python/libstdcxx/v6/printers.py /usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/gcc-4.5.3/python/libstdcxx/v6/__init__.py /usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/gcc-4.5.3/python/libstdcxx/__init__.py /usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6.0.14-gdb.py /usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/32/libstdc++.so.6.0.14-gdb.py root@condor:/root(20)# ldd /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6 linux-vdso.so.1 => (0x00007fff2a1ff000) libm.so.6 => /lib64/libm.so.6 (0x00007faedc85d000) libc.so.6 => /lib64/libc.so.6 (0x00007faedc4d2000) /lib64/ld-linux-x86-64.so.2 (0x00007faedce4b000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007faedc2bb000) There is no build.log from gcc, because I use only FEATURES="fixpackages" and 'emerge gcc' came successfully to an end.
Reemerging sys-devel/gcc solved the issue at least on three systems for me. But I do not understand why. gcc-4.5.3 was firstly emerge yesterday 1:00 pm. I tried to emerge virtualbox this morning and it fails before reemerging gcc. What has chenged since yesterday noon with respect to gcc?
*** Bug 378369 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 377633 ***