Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583860 - dev-util/electron-0.36.12 fails to build due to ninja2 error
Summary: dev-util/electron-0.36.12 fails to build due to ninja2 error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 10:57 UTC by fuse809
Modified: 2016-05-24 21:35 UTC (History)
2 users (show)

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


Attachments
My build.log (build.log.7z,387.12 KB, application/x-7z-compressed)
2016-05-23 10:59 UTC, fuse809
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fuse809 2016-05-23 10:57:48 UTC
I just ran:

emerge -uDU --with-bdeps=y @world

tried to emerge dev-util/electron-0.36.12, and it gave the error message:

obj/gpu/config/gpu_config.gpu_control_list.o: In function `gpu::(anonymous namespace)::StringMismatch(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) [clone .part.18]':
gpu_control_list.cc:(.text._ZN3gpu12_GLOBAL__N_114StringMismatchERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_.part.18+0x28): undefined reference to `re2::RE2::RE2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/gpu/config/gpu_config.gpu_control_list.o: In function `gpu::GpuControlList::GpuControlListEntry::Contains(gpu::GpuControlList::OsType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gpu::GPUInfo const&) const [clone .part.199]':
gpu_control_list.cc:(.text._ZNK3gpu14GpuControlList19GpuControlListEntry8ContainsENS0_6OsTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7GPUInfoE.part.199+0x45b): undefined reference to `re2::RE2::RE2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: dev-util/electron-0.36.12::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 133:  Called src_compile
 *   environment, line 5143:  Called die
 * The specific snippet of code:
 *       eninja -C out/R ${ninja_targets} || die
 * 
 * If you need support, post the output of `emerge --info '=dev-util/electron-0.36.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/electron-0.36.12::gentoo'`.
 * 
 * MemTotal:        4047276 kB
 * SwapTotal:       1048572 kB
 * 
 * The complete build log is located at '/var/tmp/portage/dev-util/electron-0.36.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/electron-0.36.12/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/electron-0.36.12/work/chromium-47.0.2526.110'
 * S: '/var/tmp/portage/dev-util/electron-0.36.12/work/chromium-47.0.2526.110'

>>> Failed to emerge dev-util/electron-0.36.12, Log file:

>>>  '/var/tmp/portage/dev-util/electron-0.36.12/temp/build.log'

 * Messages for package dev-util/electron-0.36.12:

 *   USER_NS is required for sandbox to work
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * ERROR: dev-util/electron-0.36.12::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 133:  Called src_compile
 *   environment, line 5143:  Called die
 * The specific snippet of code:
 *       eninja -C out/R ${ninja_targets} || die
 * 
 * If you need support, post the output of `emerge --info '=dev-util/electron-0.36.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/electron-0.36.12::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/electron-0.36.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/electron-0.36.12/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/electron-0.36.12/work/chromium-47.0.2526.110'
 * S: '/var/tmp/portage/dev-util/electron-0.36.12/work/chromium-47.0.2526.110'

 * Regenerating GNU info directory index...
 * Processed 131 info files.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.

emerge -pqv gives:

[ebuild   R   ] dev-util/electron-0.36.12  USE="proprietary-codecs system-ffmpeg tcmalloc -cups -custom-cflags -gnome -gnome-keyring -hidpi -kerberos -lto (-neon) -pic -pulseaudio (-selinux) {-test}" LINGUAS="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 ru sk sl sr sv sw ta te th tr uk vi zh_CN zh_TW (-es_LA%*)" 

emerge --info gives:

Portage 2.3.0_rc1 (python 2.7.11-final-0, default/linux/amd64/13.0, gcc-5.3.0, glibc-2.23-r2, 4.6.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.6.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     4047276 total,   3121688 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Mon, 23 May 2016 07:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.24.0::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

dev-util/electron-0.36.12::gentoo was built with the following:
USE="proprietary-codecs system-ffmpeg tcmalloc -cups -custom-cflags -gnome -gnome-keyring -hidpi -kerberos -lto (-neon) -pic -pulseaudio (-selinux) -test" ABI_X86="64" LINGUAS="am ar bg bn ca cs da de el en_GB es es_LA 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 ru sk sl sr sv sw ta te th tr uk vi zh_CN zh_TW"
Comment 1 fuse809 2016-05-23 10:59:02 UTC
Created attachment 435034 [details]
My build.log

My 7z-compressed build.log file
Comment 2 Elvis Pranskevichus 2016-05-23 16:38:18 UTC
This looks like GCC ABI breakage with dev-libs/re2.  Re-emerge re2 with the same version of gcc you are building electron with.
Comment 3 fuse809 2016-05-23 19:53:22 UTC
Correct, the bug is now resolved.