Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658678 - dev-util/electron-1.6.16::gentoo fails to compile with unknown error
Summary: dev-util/electron-1.6.16::gentoo fails to compile with unknown error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-21 18:43 UTC by Andrzej Korwin-Mikke
Modified: 2018-06-27 10:10 UTC (History)
0 users

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


Attachments
Full build log (build.log.lrz,70.59 KB, application/x-lrzip)
2018-06-21 18:46 UTC, Andrzej Korwin-Mikke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej Korwin-Mikke 2018-06-21 18:43:44 UTC
ninja: build stopped: subcommand failed.
 * ERROR: dev-util/electron-1.6.16::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 5123:  Called eninja '-C' '/var/tmp/portage/dev-util/electron-1.6.16/work/electron-1.6.16/chromium/out/Release' 'chromedriver'
 *   environment, line 1810:  Called die
 * The specific snippet of code:
 *       "$@" || die

emerge --info '=dev-util/electron-1.6.16::gentoo'
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.3.0, glibc-2.27-r4, 4.17.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.17.0-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-gentoo-2.6
KiB Mem:     8102820 total,   2831196 free
KiB Swap:    6291448 total,   6007036 free
Timestamp of repository gentoo: Wed, 20 Jun 2018 22:45:01 +0000
Head commit of repository gentoo: 8ab0b9df79dfae87b9e33e22de761b6660b6b0aa
Timestamp of repository mv: Mon, 18 Jun 2018 19:45:37 +0000
Head commit of repository mv: e97a15312c248f415fc479e84d909a3d60015b3d

Timestamp of repository steam-overlay: Tue, 19 Jun 2018 21:45:36 +0000
Head commit of repository steam-overlay: fcf2cc586e73e146efb884d9284ad0b85d3d491b

sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.11.4::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r3::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: 0
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

localrepo
    location: /usr/local/portage
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
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"
CXXFLAGS="-mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--deep --tree --unordered-display --ask --ask-enter-invalid --jobs=4 --rebuild-if-unbuilt"
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="-mtune=native -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="-mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB pl"
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 a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam flac fortran gdbm gif glamor gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk i965 iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret libtirpc mad mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt5 r600 readline sdl seccomp spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid 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="aes avx avx2 f16c fma3 mmx mmxext pclmul 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="libinput" KERNEL="linux" L10N="en en-GB pl" 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" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon r600 intel i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

emerge -pqv '=dev-util/electron-1.6.16::gentoo'
[ebuild  N    ] dev-util/electron-1.6.16  USE="cups gnome gnome-keyring proprietary-codecs pulseaudio system-ffmpeg tcmalloc -custom-cflags -kerberos -lto (-neon) -pic (-selinux) {-test}" L10N="en-GB pl -am -ar -bg -bn -ca -cs -da -de -el -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"
Comment 1 Andrzej Korwin-Mikke 2018-06-21 18:46:35 UTC
Created attachment 536706 [details]
Full build log

Compressed via lrzip because original log is over 5MiB.
Comment 2 Jouni Kosonen 2018-06-27 07:47:42 UTC
FWIW, this doesn't look right: 

3663: [1860/2793] ../../../../../../../../../../usr/bin/clang++ -MMD -MF clang_x64/obj/third_party/protobuf/protobuf_full/arena.o.d ...
3666: bin/sh: ../../../../../../../../../../usr/bin/clang++: No such file or directory
Comment 3 Andrzej Korwin-Mikke 2018-06-27 10:10:51 UTC
(In reply to Jouni Kosonen from comment #2)
> FWIW, this doesn't look right: 
> 
> 3663: [1860/2793] ../../../../../../../../../../usr/bin/clang++ -MMD -MF
> clang_x64/obj/third_party/protobuf/protobuf_full/arena.o.d ...
> 3666: bin/sh: ../../../../../../../../../../usr/bin/clang++: No such file or
> directory

Turns out electron compiles when I unset its package.env entry (below) so it uses the defaults. That's weird seeing how firefox builds with that env perfectly. Weirder still since `emerge --info '=dev-util/electron-1.6.16::gentoo'` I pasted here earlier claims CC and CXX to be unset. The bug is technically resolved, will further investigate weirdness later.

package.env (current, full):
sys-devel/llvm compiler-clang-flto
sys-devel/clang compiler-clang-flto
sys-devel/lld compiler-clang-flto
sys-devel/gcc compiler-gcc-flto
#dev-util/electron compiler-clang-fno-lto
www-client/firefox compiler-clang-fno-lto

make.conf (snippet, but these are only compiler-related vars there):
CFLAGS="-mtune=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

env/compiler-clang-fno-lto (full):
CC="clang"
CXX="clang++"
CFLAGS="${CFLAGS} -fno-lto"
CXXFLAGS="${CXXFLAGS} -fno-lto"
LDFLAGS="-fuse-ld=lld"
LD="lld"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"