Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666266 - www-client/chromium-69.0.3497.81 build fails at obj/device/fido/fido/fido_hid_device.o.d (GCC <7)
Summary: www-client/chromium-69.0.3497.81 build fails at obj/device/fido/fido/fido_hid...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-15 09:23 UTC by Mikayel Grigoryan
Modified: 2018-11-08 14:23 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.bz2,594.73 KB, application/x-bzip)
2018-09-15 09:23 UTC, Mikayel Grigoryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikayel Grigoryan 2018-09-15 09:23:09 UTC
Created attachment 546972 [details]
build.log

Package chromium-69.0.3497.81 failed to build, it is similar to https://bugs.gentoo.org/show_bug.cgi?id=651872.

Here is a stack trace.

FAILED: obj/device/fido/fido/fido_hid_device.o                                                                                            │
x86_64-pc-linux-gnu-clang++ -MMD -MF obj/device/fido/fido/fido_hid_device.o.d -DIS_DEVICE_FIDO_IMPL -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -│
DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DC│
HROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -D│
NVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DENA│
BLE_IPC_FUZZER -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYP│
E=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -I../.. -Igen -Igen/shim_headers/zlib_shim -Ig│
en/shim_headers/re2_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/libdrm_shim -I../../third_party│
/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -Igen/protoc_out -I../│
../third_party/protobuf/src -I../../third_party/boringssl/src/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wn│
o-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constant│
s -no-canonical-prefixes -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c│
++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-address-of-packed-member -W│
no-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -f│
no-omit-frame-pointer -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -isystem../../../../../../..│
/../../usr/include/glib-2.0 -isystem../../../../../../../../../usr/lib64/glib-2.0/include -Wno-header-guard -isystem../../../../../../../.│
./../usr/include/nss -isystem../../../../../../../../../usr/include/nspr -std=gnu++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidde│
n -march=core2 -O2 -pipe -c ../../device/fido/fido_hid_device.cc -o obj/device/fido/fido/fido_hid_device.o                                │
../../device/fido/fido_hid_device.cc:43:25: error: no viable overloaded '='


pending_transactions_ = {};                                                                                                             │
  ~~~~~~~~~~~~~~~~~~~~~ ^ ~~                                                                                                              │
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_queue.h:96:11: note: candidate function (the implicit move assignment opera│
tor) not viable: cannot convert initializer list argument to 'std::queue<std::pair<std::vector<unsigned char, std::allocator<unsigned char│
> >, base::OnceCallback<void (base::Optional<std::vector<unsigned char, std::allocator<unsigned char> > >)> >, base::circular_deque<std::p│
air<std::vector<unsigned char, std::allocator<unsigned char> >, base::OnceCallback<void (base::Optional<std::vector<unsigned char, std::al│
locator<unsigned char> > >)> > > >'                                                                                                       │
    class queue                                                                                                                           │
          ^                                                                                                                               │
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_queue.h:96:11: note: candidate function (the implicit copy assignment opera│
tor) not viable: cannot convert initializer list argument to 'const std::queue<std::pair<std::vector<unsigned char, std::allocator<unsigne│
d char> >, base::OnceCallback<void (base::Optional<std::vector<unsigned char, std::allocator<unsigned char> > >)> >, base::circular_deque<│
std::pair<std::vector<unsigned char, std::allocator<unsigned char> >, base::OnceCallback<void (base::Optional<std::vector<unsigned char, s│
td::allocator<unsigned char> > >)> > > >'

ninja: build stopped: subcommand failed.                                                                                                  │
 * ERROR: www-client/chromium-69.0.3497.81::gentoo failed (compile phase):                                                                │
 *   ninja -v -j4 -l0 -C out/Release chrome chromedriver failed                                                                           │
 *                                                                                                                                        │
 * Call stack:                                                                                                                            │
 *     ebuild.sh, line  124:  Called src_compile                                                                                          │
 *   environment, line 5011:  Called eninja '-C' 'out/Release' 'chrome' 'chromedriver'                                                    │
 *   environment, line 1785:  Called die                                                                                                  │
 * The specific snippet of code:                                                                                                          │
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
Comment 1 Mikayel Grigoryan 2018-09-15 09:25:22 UTC
Adding emerge --info.

Portage 2.3.40 (python 3.6.5-final-0, hardened/linux/amd64/no-multilib, gcc-6.4.0, glibc-2.26-r7, 4.14.65-gentoo x86_64)                   
=================================================================                                                                          
                         System Settings                                                                                                   
=================================================================                                                                          
System uname: Linux-4.14.65-gentoo-x86_64-Intel-R-_Core-TM-_i5-4300U_CPU_@_1.90GHz-with-gentoo-2.4.1                                       
KiB Mem:     7900076 total,   2575000 free                                                                                                 
KiB Swap:          0 total,         0 free                                                                                                 
Timestamp of repository gentoo: Sat, 15 Sep 2018 07:15:01 +0000                                                                            
Head commit of repository gentoo: 4165321d90836f5b1ef6060918e37e8a966ad38d                                                                 
sh bash 4.4_p12                                                                                                                            
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1                                                                                                        
app-shells/bash:          4.4_p12::gentoo                                                                                                  
dev-java/java-config:     2.2.0-r4::gentoo                                                                                                 
dev-lang/perl:            5.24.3-r1::gentoo                                                                                                
dev-lang/python:          2.7.15::gentoo, 3.4.8::gentoo, 3.5.5::gentoo, 3.6.5::gentoo                                                      
dev-util/cmake:           3.9.6::gentoo                                                                                                    
dev-util/pkgconfig:       0.29.2::gentoo                                                                                                   
sys-apps/baselayout:      2.4.1-r2::gentoo                                                                                                 
sys-apps/openrc:          0.34.11::gentoo                                                                                                  
sys-apps/sandbox:         2.13::gentoo                                                                                                     
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo                                                                                    
sys-devel/automake:       1.11.6-r3::gentoo, 1.12.6::gentoo, 1.13.4-r2::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo                          
sys-devel/binutils:       2.28-r2::gentoo, 2.29.1-r1::gentoo, 2.30-r2::gentoo                                                              
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo                                                                               
sys-devel/gcc-config:     1.8-r1::gentoo                                                                                                   
sys-devel/libtool:        2.4.6-r3::gentoo                                                                                                 
sys-devel/make:           4.2.1-r4::gentoo                                                                                                 
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)                                                                                
sys-libs/glibc:           2.26-r7::gentoo                                                                                                  
Repositories:                                                                                                                              

gentoo                                                                                                                                     
    location: /usr/portage                                                                                                                 
    sync-type: rsync                                                                                                                       
    sync-uri: rsync://rsync2.ru.gentoo.org/gentoo-portage                                                                                  
    priority: -1000                                                                                                                        
    sync-rsync-verify-metamanifest: yes                                                                                                    
    sync-rsync-verify-max-age: 24                                                                                                          
    sync-rsync-verify-jobs: 1                                                                                                              
    sync-rsync-extra-opts:                                                                                                                 

rene                                                                                                                                       
    location: /var/lib/layman/rene                                                                                                         
    masters: gentoo                                                                                                                        
    priority: 50                                                                                                                           

ACCEPT_KEYWORDS="amd64"                                                                                                                    
ACCEPT_LICENSE="*"                                                                                                                         
CBUILD="x86_64-pc-linux-gnu"                                                                                                               
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.mdfnet.se/gentoo http://mirror.netcologne.de/gentoo/"
LANG="ru_RU.utf8"
LC_ALL="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j4"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 berkdb bzip2 cli crypt cups cxx dri gdbm hardened iconv ipv6 libtirpc modules ncurses nls nptl openmp pam pcre pie pulseaudio readline seccomp ssl ssp tcpd unicode urandom wayland xattr xtpax 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="i915 i965 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Mikayel Grigoryan 2018-09-15 09:26:36 UTC
adding emerge -pqv

[ebuild     U ] www-client/chromium-69.0.3497.81 [67.0.3396.87] USE="cups hangouts (pic) proprietary-codecs pulseaudio suid -component-build -custom-cflags -gnome-keyring -jumbo-build -kerberos (-neon) (-selinux) (-system-ffmpeg) (-system-icu) (-system-libvpx) (-tcmalloc) -widevine" L10N="ru -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 -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"
Comment 3 Mike Gilbert gentoo-dev 2018-09-16 03:30:37 UTC
Please try using gcc-7 or higher.
Comment 4 Fabio Rossi 2018-09-17 23:09:22 UTC
with gcc-7 there are no problems
Comment 5 Mikayel Grigoryan 2018-09-18 04:38:12 UTC
Going to try that in a day or two, thanks for hint.
Comment 6 Mikayel Grigoryan 2018-09-20 09:51:09 UTC
Compiled and built ok after gcc profile changed to gcc 7.x. Thanks for fast help!
Nothing more on my side for this case, may be gcc 6.X is going out of support soon.
Comment 7 Sebastian Pipping gentoo-dev 2018-09-25 16:00:25 UTC
The current ebuilds all contain a GCC/Clang version check but it's commented out:

  pre_build_checks() {
          #if [[ ${MERGE_TYPE} != binary ]]; then
          #       local -x CPP="$(tc-getCXX) -E"
          #       if tc-is-clang && ! version_is_at_least "3.9.1" "$(clang-fullversion)"; then
          #               # bugs: #601654
          #               die "At least clang 3.9.1 is required"
          #       fi
          #       if tc-is-gcc && ! version_is_at_least 5.0 "$(gcc-version)"; then
          #               # bugs: #535730, #525374, #518668, #600288, #627356
          #               die "At least gcc 5.0 is required"
          #       fi
          #fi
  ...
  }

Why were these checks removed?

Can we get it back with requiring 7.x for both?

Thanks!
Comment 8 Mike Gilbert gentoo-dev 2018-09-25 16:57:26 UTC
(In reply to Sebastian Pipping from comment #7)
> Can we get it back with requiring 7.x for both?

The version check becomes much more complex due to clang.

If clang is building against libstdc++, we need GCC7 or higher.

If clang is building against libcxx, we don't need GCC at all. But this only works if the user has built all required C++ libraries against libcxx.
Comment 9 Andrew Pikul 2018-10-17 19:29:08 UTC
(In reply to Mike Gilbert from comment #8)
> (In reply to Sebastian Pipping from comment #7)
> > Can we get it back with requiring 7.x for both?
> 
> The version check becomes much more complex due to clang.
> 
> If clang is building against libstdc++, we need GCC7 or higher.
> 
> If clang is building against libcxx, we don't need GCC at all. But this only
> works if the user has built all required C++ libraries against libcxx.

So something like this?

if (libstdc++) && (gcc < 7) then fail

for (iterate over all files)
   if !libcxx then fail

I have the same issue, btw, was about to make a new bug. 

I'm guessing I need to upgrade GCC and then rebuild chrome entirely.

Or patch the code to just not use a half-supported idiom, trying to clear a queue by setting it equal to empty queue.
Comment 10 Andrew Pikul 2018-10-17 19:30:32 UTC
I want to add that this build is failing when I'm trying to build a new Gentoo install, which seems like a particularly bad time to have any builds fail.
Comment 11 Andrew Pikul 2018-10-17 19:43:13 UTC
(In reply to Andrew Pikul from comment #10)
> I want to add that this build is failing when I'm trying to build a new
> Gentoo install, which seems like a particularly bad time to have any builds
> fail.

-- meh, old tarball apparently