Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320741 - app-emulation/virtualbox-ose-3.2.0 fails to build with gcc-4.5.0
Summary: app-emulation/virtualbox-ose-3.2.0 fails to build with gcc-4.5.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.5
  Show dependency tree
 
Reported: 2010-05-20 15:24 UTC by Evan Teran
Modified: 2010-05-20 20:33 UTC (History)
2 users (show)

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


Attachments
build log (build.log,81.22 KB, text/plain)
2010-05-20 15:26 UTC, Evan Teran
Details
patch for virtualbox-ose-3-localconfig to remove -Werror (virtualbox-ose-3-localconfig.patch,277 bytes, patch)
2010-05-20 16:11 UTC, Evan Teran
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Teran 2010-05-20 15:24:23 UTC
app-emulation/virtualbox-ose-3.2.0 fails to build with gcc-4.5.0. It appears that it is using -Werror (or equivalent) to make all warnings errors. Unfortunately, there are some warnings which stop it from compiling.

Reproducible: Always




# emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.0, glibc-2.11-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 20 May 2010 15:00:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  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.4.3-r2, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -O3 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -fomit-frame-pointer -O3 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_US.UTF-8"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 apache2 avahi berkdb bluetooth boost branding bzip2 cairo cdr chroot cli consolekit cracklib crypt cups curl cvs cxx dbus debugger dri dts dvd dvdr emboss encode exif extras fam firefox flac fts3 gdbm gif git gnome gpm graphviz gtk hal iconv jadetex java java6 jpeg kde kpathsea kqemu kvm lcms ldap libnotify mad mdnsresponder-compat mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango parted pcre pdf pdo perl php plasma png policykit ppds ppp pppd python qt3support qt4 readline reflection rss sdl secure-delete semantic-desktop session simplexml smp soap spell spl sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs tcpd thumbnail tiff tk tools truetype unicode usb vorbis webkit wicd wifi wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zeroconf 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 authn_alias authn_anon 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 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="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_US.UTF-8" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLA
Comment 1 Evan Teran 2010-05-20 15:25:50 UTC
emerge -pqv =app-emulation/virtualbox-ose-3.2.0:

[ebuild     U ] app-emulation/virtualbox-ose-3.2.0 [3.1.6] USE="additions alsa hal opengl python qt4 -headless -pulseaudio -sdk -vboxwebsrv"
Comment 2 Evan Teran 2010-05-20 15:26:15 UTC
Created attachment 232247 [details]
build log
Comment 3 Evan Teran 2010-05-20 15:50:43 UTC
The upstream bug tracker seems to have some patches in it for gcc-4.5:

http://www.virtualbox.org/ticket/6715, seems the recommended solution is the following:

To workaround the -Werror issues you can add

VBOX_WITH_WARNINGS_AS_ERRORS :=
to a file LocalConfig.kmk which you put into the root directory of your tree.
Comment 4 Evan Teran 2010-05-20 16:11:19 UTC
Created attachment 232251 [details, diff]
patch for virtualbox-ose-3-localconfig to remove -Werror

makes build with gcc-4.5 succeed
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-05-20 20:33:44 UTC
+*virtualbox-ose-3.2.0-r1 (20 May 2010)
+
+  20 May 2010; Lars Wendler <polynomial-c@gentoo.org>
+  -virtualbox-ose-3.2.0.ebuild, +virtualbox-ose-3.2.0-r1.ebuild,
+  files/virtualbox-ose-3-localconfig:
+  Fixed building with gcc-4.5 (bug #320741) and install EFI firmware images
+  (bug #320757). Thanks to Evan Teran who reported both bugs.
+