Summary: | sys-libs/compiler-rt-4.0.1: ignores /etc/portage/env/* with USE=clang | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Konstantin (elxa) <ktrackfd> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | dev-portage, jstein, mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log for sys-libs/compiler-rt-4.0.1
script to check package.env settings |
Description
Konstantin (elxa)
2017-08-07 20:57:20 UTC
It's weird. The ebuild doesn't even have any power of ignoring package.env, it's all internal Portage logic. I suspect 'strip-unsupported-flags' may be stripping them. Full build log and 'emerge --info', please. Created attachment 488360 [details]
build.log for sys-libs/compiler-rt-4.0.1
# emerge --info Portage 2.3.6 (python 2.7.13-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-7.1.0, glibc-2.25-r2, 4.11.8-gentoo x86_64) ================================================================= System uname: Linux-4.11.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-gentoo-2.4.1 KiB Mem: 32515188 total, 8593960 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Tue, 08 Aug 2017 15:44:08 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 distcc 3.2rc1 x86_64-pc-linux-gnu [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::gentoo dev-util/cmake: 3.9.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1::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.4_p6-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1::gentoo sys-devel/binutils: 2.26.1::gentoo, 2.27-r1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo sys-devel/gcc: 5.4.0::gentoo, 6.2.0::tamiko, 6.3.0::gentoo, 6.4.0::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: /usr/portage sync-type: git sync-uri: git://github.com/gentoo-mirror/gentoo.git priority: -1000 local location: /usr/local/portage masters: gentoo gnome location: /var/lib/layman/gnome sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/gnome.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 sublime-text location: /var/lib/layman/sublime-text sync-type: laymansync sync-uri: git://github.com/DamnWidget/sublime-text.git masters: gentoo priority: 50 tamiko location: /var/lib/layman/tamiko sync-type: laymansync sync-uri: git://anongit.gentoo.org/repo/dev/tamiko.git masters: gentoo priority: 50 tox-overlay location: /var/lib/layman/tox-overlay sync-type: laymansync sync-uri: git://github.com/Tox/gentoo-overlay-tox.git masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/x11 masters: gentoo priority: 50 Installed sets: @steam ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -march=native -O3 -fomit-frame-pointer -fno-delete-null-pointer-checks -flifetime-dse=1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-pipe -march=native -O3 -fomit-frame-pointer -fno-delete-null-pointer-checks -flifetime-dse=1" DISTDIR="/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=6 --keep-going --autounmask=n" 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/" LANG="en_US.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -fuse-linker-plugin -pipe -march=native -O3 -fomit-frame-pointer -fno-delete-null-pointer-checks -flifetime-dse=1" MAKEOPTS="-j9" PKGDIR="/portage/packages" PORTAGE_COMPRESS="xz" 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 aacplus acl acpi aes aio airplay amd64 audit avahi avx berkdb bluetooth bluray branding bs2b bzip2 cairo call caps cdda cdio cdr clang cli clutter colord connection-sharing cracklib crypt cryptsetup css cups custom-cflags custom-cpuopts custom-optimization cxx dbus dri dri3 dts dvd dvdnav dvdr eds efi emboss encode evo exif faac fam ffmpeg firefox flac fontconfig fortran fprint gdbm geoip gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle hdaps highlight hires-icons iconv icq icu infinality introspection ios ipod ipv6 irc jabber jpeg lame laptop lastfm lcms ldap libnotify libsamplerate libsecret libsoxr lzma mad map mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp openssl optimization optimized-qmake opus pam pango pch pcre pdf pgo playlist png policykit popcnt ppds pulseaudio qemu qt3support qt4 readline scanner sdl sdl2 seccomp sendto session sip sna snappy spell spice sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification strong-optimization svg systemd taglib tcpd telepathy theora threads thunderbird tiff tls truetype twolame udev udisks unicode upower usb v4l vaapi vdpau virgl virt-network vnc vorbis vpx wavpack wayland webm webp webrtc-aec widevine wifi wxwidgets x264 x265 xattr xcb xinerama xml xv xvid zeitgeist zeroconf 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes 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 wacom" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" NETBEANS_MODULES="cnd enterprise gsf ide j2ee java javafx nb profiler xml soa visualweb webcommon websvccommon mobility" NGINX_MODULES_HTTP="addition" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965 amdgpu radeonsi 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON One more thing. Please show me how you're using env, i.e. paths and contents. /etc/portage/package.env/clang contains sys-libs/compiler-rt compiler-rt.conf /etc/portage/env/compiler-rt.conf contains MNATIVE="-march=native" GCC_6_FIXES="-fno-delete-null-pointer-checks" CFLAGS="-pipe ${MNATIVE} -O3 -fomit-frame-pointer ${LTO} ${GRAPHITE} ${OTHER} ${GCC_6_FIXES}" CXXFLAGS="${CFLAGS}" USE="-clang" Some dead/unused variables in there because I copy/pasted and reduced my make.conf, they've had 0 influence. Only changing USE changed things. Basically it made no difference what /etc/portage/env/compiler-rt.conf contained when compiling with USE=clang Portage team, any clue what's happening here? Were you able to reproduce the issue? I hope there isn't s.th. unique/weird going on about my system :) Created attachment 488362 [details] script to check package.env settings (In reply to Michał Górny from comment #7) > Portage team, any clue what's happening here? Can we verify that /var/tmp/portage/sys-libs/compiler-rt-4.0.1/temp/environment does not contain the expected settings? The attached script uses the portage API to check if your package.env settings are working. I think I know what's wrong -- you have those flags in LDFLAGS, and you're not redefining them. You are right. My bad for not looking close enough! Setting LDFLAGS="" via /etc/portage/env/compiler-rt.conf and all errors are gone. Please close as invalid. |