Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620288 - sys-devel/llvm-3.9.1-r1: ninja-utils.eclass nonfatal is breaking DistCC.
Summary: sys-devel/llvm-3.9.1-r1: ninja-utils.eclass nonfatal is breaking DistCC.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL: https://gitweb.gentoo.org/repo/gentoo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-31 19:29 UTC by Simon-Pierre Dubé
Modified: 2017-06-02 03:30 UTC (History)
3 users (show)

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


Attachments
Build log (build.log,139.05 KB, text/x-log)
2017-05-31 19:39 UTC, Simon-Pierre Dubé
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon-Pierre Dubé 2017-05-31 19:29:16 UTC
Since the introduction of "nonfatal" from EAPI=6 in ninja-utils.eclass, ninja fail to compile when using DistCC, but work just fine without it. 

Reproducible: Always

Steps to Reproduce:
1. Add FEATURES="distcc distcc-pump" to make.conf
2. Compile llvm or other packages using ninja
3.
Actual Results:  
"$@" || die "${nonfatal_args[@]}" "${*} failed"


Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r3, 4.4.6-gentoo x86_64)
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-AMD_FX-tm-6350_Six-Core_Processor-with-gentoo-2.3
KiB Mem:    16396204 total,   6129848 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.12.6::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000

palmer
    location: /var/lib/layman/palmer
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mfma -mfma4 -mxop -mbmi -mtbm -mavx -msse4.2 -msse4.1 -mlzcnt -mf16c -mprfchw -mfxsr -mxsave --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver2 -fstack-protector-strong -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=bdver2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mfma -mfma4 -mxop -mbmi -mtbm -mavx -msse4.2 -msse4.1 -mlzcnt -mf16c -mprfchw -mfxsr -mxsave --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver2 -fstack-protector-strong -O2 -pipe"
DISTDIR="/mnt/storage1/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump 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"
LANG="fr_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j92 -l15"
PKGDIR="/mnt/storage1/portage/packages/AMD64/bdver2"
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/portage/tmpfs/"
USE="X aac acl amd64 apache2 berkdb btrfs bzip2 cgi cli cracklib cron crypt cxx dbus dri f2fs fat ffmpeg fortran fpm fuse gd gdbm geoip gnutls hddtemp hfs iconv imap iproute2 ipv6 iso jfs ldap libmysqlclient lm_sensors lvm lxc lzo mdadm modules mp3 multilib mysql nagios nagios-dns nagios-ping ncurses nfs nls npm nptl ntfs numa ogg openmp pam pcap pcre perl php phyp policykit readline reiser4 reiserfs samba seccomp sensord session snmp sockets spice ssh ssl systemtap tcpd theora threads truetype unicode usb usbredir virt-network virtfs vorbis x264 xattr xfs xvid zip 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="proxy proxy_balancer proxy_connect proxy_ftp proxy_html proxy_http proxy_wstunnel ratelimit reqtimeout auth_digest socache_shmcb vhost_alias status userdir auth_basic slotmem_shm alias authn_core authz_core authz_host mime lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness rewrite autoindex filter authn_alias authn_anon authn_file authz_dbd authz_dbm authz_groupfile authz_owner authz_user access_compat actions asis cern_meta cgi charset_lite dbd deflate env expires ext_filter headers http2 ident imagemap include info log_config macro mime_magic negotiation proxy_fcgi remoteip setenvif substitute unique_id usertrack version" APACHE2_MPMS="event" 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="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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="libinput keyboard mouse" 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-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Simon-Pierre Dubé 2017-05-31 19:39:07 UTC
Created attachment 474878 [details]
Build log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-01 07:12:15 UTC
Nonfatal is completely irrelevant here. It can't find valgrind headers. I'd blame distcc-pump. It's half-working hack that breaks stuff randomly. Don't use it.
Comment 3 Simon-Pierre Dubé 2017-06-01 19:53:17 UTC
(In reply to Michał Górny from comment #2)
> Nonfatal is completely irrelevant here. It can't find valgrind headers. I'd
> blame distcc-pump. It's half-working hack that breaks stuff randomly. Don't
> use it.

Thank you for your reply! I'll use it as less as possible now.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-01 20:50:42 UTC
And just to be clear, it usually gives little performance gain. I've seen it break Firefox in the past, and that considered, I wouldn't trust any executable produced by distcc-pump -- if it can pass incorrect includes, it can produce a broken object.
Comment 5 Simon-Pierre Dubé 2017-06-02 03:30:38 UTC
(In reply to Michał Górny from comment #4)
> And just to be clear, it usually gives little performance gain. I've seen it
> break Firefox in the past, and that considered, I wouldn't trust any
> executable produced by distcc-pump -- if it can pass incorrect includes, it
> can produce a broken object.

That's good to know, especially since i use a binhost to update my VMs and same architecture less powerful machines.