Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627414 - www-client/chromium-61.0.3163.31 with gcc-5.4.0 error: ‘AllocationKind’ is not a class, namespace, or enumeration
Summary: www-client/chromium-61.0.3163.31 with gcc-5.4.0 error: ‘AllocationKind’ is no...
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2017-08-09 15:27 UTC by Michał Górny
Modified: 2017-09-30 16:25 UTC (History)
6 users (show)

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


Attachments
www-client:chromium-61.0.3163.31:20170809-141253.log.xz (www-client:chromium-61.0.3163.31:20170809-141253.log.xz,123.91 KB, application/x-xz)
2017-08-09 15:27 UTC, Michał Górny
Details
does_not_fix_all_gcc5.4_issues_chromium-61.0.3159.5.patch (chromium-61.0.3159.5.patch,1.13 KB, patch)
2017-08-09 18:08 UTC, Nick
Details | Diff
chromium-61.0.3163.13_other_gcc5.4_errors.log (chromium-61.0.3163.13_other_gcc5.4_errors.log.xz,166.14 KB, application/x-xz)
2017-08-09 18:13 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-09 15:27:58 UTC
Created attachment 488460 [details]
www-client:chromium-61.0.3163.31:20170809-141253.log.xz

FAILED: obj/third_party/WebKit/Source/platform/wtf/wtf/ArrayBufferView.o 
x86_64-pc-linux-gnu-g++-5.4.0 -MMD -MF obj/third_party/WebKit/Source/platform/wtf/wtf/ArrayBufferView.o.d -DWTF_IMPLEMENTATION=1 -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -I../.. -Igen -I../../third_party/WebKit/Source -I../../third_party/WebKit -Igen/blink -Igen/third_party/WebKit -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -O2 -pipe -march=core-avx-i -fno-delete-null-pointer-checks -c ../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.cpp -o obj/third_party/WebKit/Source/platform/wtf/wtf/ArrayBufferView.o
distcc[21549] ERROR: compile ../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.cpp on pomiot.local/2,lzo failed
distcc[21549] (dcc_build_somewhere) Warning: remote compilation of '../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.cpp' failed, retrying locally
distcc[21549] Warning: failed to distribute ../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.cpp to pomiot.local/2,lzo, running locally instead
distcc[21549] ERROR: compile ../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.cpp on localhost failed
In file included from ../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBuffer.h:35:0,
                 from ../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.h:32,
                 from ../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.cpp:26:
../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h: In constructor ‘WTF::ArrayBufferContents::DataHandle::DataHandle(void*, WTF::ArrayBufferContents::DataDeleter)’:
../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h:66:17: error: ‘AllocationKind’ is not a class, namespace, or enumeration
           kind_(AllocationKind::kNormal),
                 ^
../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h: In destructor ‘WTF::ArrayBufferContents::DataHandle::~DataHandle()’:
../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h:97:14: error: ‘AllocationKind’ is not a class, namespace, or enumeration
         case AllocationKind::kNormal:
              ^
../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h:101:14: error: ‘AllocationKind’ is not a class, namespace, or enumeration
         case AllocationKind::kReservation:
              ^
../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h:96:14: warning: enumeration value ‘kNormal’ not handled in switch [-Wswitch]
       switch (kind_) {
              ^
../../third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h:96:14: warning: enumeration value ‘kReservation’ not handled in switch [-Wswitch]


I did you a disservice and attached the full log compressed as .xz. If you prefer .lz, please let me know.

--
Portage 2.3.6 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.25-r2, 4.10.0-pf2-pomiocik+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.0-pf2-pomiocik+-x86_64-Intel-R-_Core-TM-_i3-3217U_CPU_@_1.80GHz-with-gentoo-2.4.1
Timestamp of repository gentoo: Wed, 09 Aug 2017 12:46:16 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.9.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r4::gentoo, 7.1.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-umask: 027
    sync-uri: https://github.com/swegener/gentoo-portage
    priority: -1000

mgorny
    location: /home/mgorny/mgorny-repo
    sync-umask: 027
    masters: gentoo
    priority: 10000

Installed sets: @mg_cb_agent, @mg_qanalytics
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CC="x86_64-pc-linux-gnu-gcc-5.4.0"
CFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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"
CXX="x86_64-pc-linux-gnu-g++-5.4.0"
CXXFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going --ask"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg cgroup collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox lmirror merge-sync multilib-strict news preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://pomiot.local/ http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://ftp.vectranet.pl/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="lzip"
PORTAGE_COMPRESS_FLAGS="-9"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi adns alsa amd64 amr avx bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gd gdbm gif glamor gmp gnome-keyring gnutls gphoto2 gtk hdri iconv icu id3tag idn imagemagick ipv6 jbig jit jpeg jpeg2k lapack lcms libedit liblockfile libnotify libsecret lzma lzo mad mmx mng modules mp3 mp4 mpeg mpfr mtp multilib ncurses nls nptl ogg openexr opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline schroedinger sctp sdl seccomp session smp sndfile speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vim-syntax vorbis vpx webp wmf wxwidgets x264 xattr xcb xcomposite xml xpm xv xvid zeroconf zlib" ABI_X86="32 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" LLVM_TARGETS="*" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6 pypy pypy3" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau intel" 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_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

www-client/chromium-60.0.3112.78::gentoo was built with the following:
USE="cups gnome-keyring hangouts (pic) proprietary-codecs pulseaudio suid system-ffmpeg -component-build -custom-cflags -kerberos (-neon) (-selinux) (-system-libvpx) (-tcmalloc) -test -widevine" ABI_X86="(64)" L10N="pl -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"
CFLAGS="-O2 -pipe -march=core-avx-i"
CXXFLAGS="-O2 -pipe -march=core-avx-i -fno-delete-null-pointer-checks"
Comment 1 Nick 2017-08-09 18:08:16 UTC
Created attachment 488474 [details, diff]
does_not_fix_all_gcc5.4_issues_chromium-61.0.3159.5.patch

I believe this might be a bug with =sys-devel/gcc-5.4.0 in its C++11 implementation (regarding the use of enum class), since repeating the failing line with x86_64-pc-linux-gnu-g++-6.* did not give an error, and I could not see anything that should cause a compiler error with -std=gnu++11. I wasn't able to reproduce it in a minimal example so I don't know if it is a bit more subtle and depends on some other combination of flags or other code in chromium.

Upon upgrading to =sys-devel/gcc-6.4.0 got rid of this (and other) errors.

I attempted to use this patch and it fixed this particular issue in =www-client/chromium-61.0.3159.5 and =www-client/chromium-61.0.3163.13, but I ran into (what I assume to be) other gcc-5.4 problems with =www-client/chromium-61.0.3159.5
Comment 2 Nick 2017-08-09 18:13:49 UTC
Created attachment 488476 [details]
chromium-61.0.3163.13_other_gcc5.4_errors.log