Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518668 - www-client/chromium-38.0.2107.2 fails to compile with gcc-4.7
Summary: www-client/chromium-38.0.2107.2 fails to compile with gcc-4.7
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
: 521534 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-31 12:26 UTC by Eric Bueschel
Modified: 2014-10-11 11:46 UTC (History)
3 users (show)

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


Attachments
Build Log (build-log.tar.gz,616.13 KB, application/gzip)
2014-07-31 12:53 UTC, Eric Bueschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Bueschel 2014-07-31 12:26:54 UTC
Build dies following gpu and geolocation warnings.

Tail of Build Log:

I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -march=amdfam10 -O2 -pipe -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare  -c ../../content/browser/gpu/gpu_data_manager_impl_private.cc -o obj/content/browser/gpu/content_browser.gpu_data_manager_impl_private.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
../../content/browser/gpu/gpu_data_manager_impl_private.cc:1:0: note: this is the location of the previous definition
../../content/browser/gpu/gpu_data_manager_impl_private.cc: In function 'void content::{anonymous}::UpdateStats(const gpu::GPUInfo&, const gpu::GpuBlacklist*, const std::set<int>&)':
../../content/browser/gpu/gpu_data_manager_impl_private.cc:141:32: error: range-based 'for' loops are not allowed in C++98 mode
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
../../content/browser/geolocation/geolocation_dispatcher_host.cc:1:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
../../content/browser/gpu/gpu_data_manager_impl_private.cc:1:0: note: this is the location of the previous definition
../../content/browser/gpu/gpu_data_manager_impl_private.cc: In function 'void content::{anonymous}::UpdateStats(const gpu::GPUInfo&, const gpu::GpuBlacklist*, const std::set<int>&)':
../../content/browser/gpu/gpu_data_manager_impl_private.cc:141:32: error: range-based 'for' loops are not allowed in C++98 mode
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
../../content/browser/geolocation/geolocation_dispatcher_host.cc:1:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
../../content/browser/geolocation/location_arbitrator_impl.cc:1:0: note: this is the location of the previous definition
ninja: build stopped: subcommand failed.
 * ERROR: www-client/chromium-38.0.2107.2::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 4722:  Called die
 * The specific snippet of code:
 *       eninja -C out/Release ${ninja_targets} || die;


emerge --info:

Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.19-r1, 3.12.21-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.12.21-gentoo-r1-x86_64-AMD_Athlon-tm-_II_P340_Dual-Core_Processor-with-gentoo-2.2
KiB Mem:     7923472 total,   1739144 free
KiB Swap:    9231356 total,   9198584 free
Timestamp of tree: Thu, 31 Jul 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=4 --keep-going --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ rsync://gentoo.chem.wisc.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.cs.wmich.edu/gentoo http://www.cyberuse.com/gentoo/ http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.hoobly.com/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/ ftp://gentoo.mirrors.tds.net/gentoo rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ ftp://mirror.its.uidaho.edu/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ rsync://gentoo.cs.uni.edu/gentoo-distfiles http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac aacs acl alsa amd64 berkdb bluray bzip2 cdda cdparanoia cdr cli cracklib crypt css cups cxx dbus dri dvd dvdr encode ffmpeg fortran gdbm hp hpcups hplip iconv icu ipv6 java kde mmx modules mozilla mp3 mp4 mpeg multilib ncurses nls nptl opengl openmp pam pcre qt3support qt4 readline sane scanner session sse sse2 ssl tcpd unicode usb win32codecs zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="backendslist" USERLAND="GNU" VIDEO_CARDS="radeon" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Alex Xu (Hello71) 2014-07-31 12:37:47 UTC
Please attach the entire build.log.
Comment 2 Eric Bueschel 2014-07-31 12:53:43 UTC
Created attachment 381942 [details]
Build Log
Comment 4 Mike Gilbert gentoo-dev 2014-08-01 15:06:06 UTC
You probably need to upgrade to gcc-4.8.

http://thread.gmane.org/gmane.linux.gentoo.devel/92113
Comment 5 Matt 2014-08-03 00:59:34 UTC
just encountered the same error with gcc 4.7.4



not exactly related to this issue

but to spare users from re-building chromium *again* when facing this problem:

please bump it to 38.0.2107.3

https://code.google.com/p/chromium/issues/detail?id=398751
Comment 6 Mike Gilbert gentoo-dev 2014-08-03 02:31:29 UTC
(In reply to Matt from comment #5)
> but to spare users from re-building chromium *again* when facing this
> problem:

It's masked for a reason. If you are worried about rebuilds, use the stable channel (chromium-36).
Comment 7 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-08-03 16:50:57 UTC
I acknowledge the issue, and we'll see how the situation develops - whether we can get gcc-4.8 into stable or need to come up with some patches to the sources (which may or may not be feasible depending on further upstream actions).

For now stable is not affected and chromium-38 is hard masked, so it's assumed people trying to use it can face issues like this. Please consider using e.g. newer gcc.
Comment 8 Eric Bueschel 2014-08-03 22:55:03 UTC
Upgraded to gcc-4.8.3.  Recompiled chromium-38 sucessfully.  Confirmed issue and solution.

Thank you.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-04 09:58:25 UTC
*** Bug 521534 has been marked as a duplicate of this bug. ***
Comment 10 Mike Gilbert gentoo-dev 2014-10-09 19:20:10 UTC
Per arch testing on bug 524764, this seems to have been resolved upstream.
Comment 11 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-10-11 11:46:48 UTC
(In reply to Mike Gilbert from comment #10)
> Per arch testing on bug 524764, this seems to have been resolved upstream.

FWIW we have a patch for that in Gentoo. It's small for chromium-38, but I'd expect this to get harder with more recent versions.