Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668072 - www-client/firefox-62.0.3 USE=lto with clang - 8 0:07.22 configure: error: compiler is incompatible with sanitize options
Summary: www-client/firefox-62.0.3 USE=lto with clang - 8 0:07.22 configure: error: c...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-08 18:04 UTC by Vladi
Modified: 2019-01-15 14:33 UTC (History)
2 users (show)

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


Attachments
build log from FF (build.log,84.30 KB, text/x-log)
2018-10-08 18:04 UTC, Vladi
Details
New build log with USE="-custom-cflags -custom-optimization" (build.log,85.00 KB, text/x-log)
2018-10-08 21:43 UTC, Vladi
Details
build log without distcc (build.log,83.54 KB, text/plain)
2018-10-09 01:15 UTC, Vladi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladi 2018-10-08 18:04:20 UTC
Created attachment 549970 [details]
build log from FF

Hi, trying to compile latest FF with +lto +clang fails with attached build log message about -Os number expected, but got 's' during configure phase.

Portage 2.3.49 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-8.2.0, glibc-2.27-r6, 4.18.11+ x86_64)
=================================================================
System uname: Linux-4.18.11+-x86_64-Intel-R-_Core-TM-_i7-5600U_CPU_@_2.60GHz-with-gentoo-2.4.1
KiB Mem:     8057988 total,    743244 free
KiB Swap:    8991740 total,   4070632 free
Head commit of repository gentoo: 364d527015bfeca046ddbc055b3740127b098b59

Head commit of repository go-overlay: 79aebee02130d0045e7052e6c0f2ed1f171ba2fd

Head commit of repository lto-overlay: e899686c9d6e9ecfad633f437f986c9d14f54858

Head commit of repository mozilla: 006e55b3995e2f3d2075be68f2600e3b12cdf70b

Head commit of repository mv: 720e58539e18dda372070bebf57ef1a8016464f9

Head commit of repository steam-overlay: c440cfac44c7b2079400fbf2a57d2c83451443c3

Head commit of repository tlp: c1512b6f94c4780791a0cd7ab50eb3fb4f1003b2

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
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.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/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            6.4.0::gentoo, 8.2.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.27-r6::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

go-overlay
    location: /var/lib/layman/go-overlay
    sync-type: git
    sync-uri: https://github.com/Dr-Terrible/go-overlay.git
    masters: gentoo
    priority: 50

lto-overlay
    location: /var/lib/layman/lto-overlay
    sync-type: git
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

mv
    location: /var/lib/layman/mv
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    sync-type: git
    sync-uri: git://github.com/dywisor/tlp-portage.git
    masters: gentoo
    priority: 50

Installed sets: @kde-frameworks, @kde-plasma, @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -pipe -mabm -mrtm"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /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=broadwell -pipe -mabm -mrtm"
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 distcc distcc-pump 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://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en bg"
MAKEOPTS="-j12 -l4"
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="/tmp"
USE="256-color X a52 aac aalib acpi activities adns alaw alsa alt-font-width amd64 archive asf aspell async autoipd autoreplace avahi bash-completion bluetooth branding btrfs bzip2 c++0x cairo caps cdda cdinstall cdr chroot cli client-libs crypt cryptsetup cups curl custom-cflags custom-optimization cxx dbus declarative dhcp disk-partition divx divx4linux dolphin dri dri3 dts dvd dvdr egl emerald enca encode epub evdev exif faac farstream ffmpeg flac focused-urgency font-styles fpm fts3 fuse g722 gallium gbm gd gdbm gecko-sdk geoclue geoip gif glamor gles glibc-omitfp glitz gmedia gnutls google gphoto2 gps gsm gstreamer gudev hardcoded-tables hddtemp hidpi history hwaccel hwdb i3 ibmacpi iconv id3tag imagemagick imap imlib inotify introspection iproute2 ithreads jabber javascript jemalloc jpeg jumbo-build kde kdehiddenvisibility kdenlive kdepim kdexdeltas kipi kwallet lame laptop lcdfilter lcms libcaca libinput libkms libnotify libtirpc lm_sensors logrotate lto lzma lzo mad matroska minizip mmx mmxext mng mobi modemmanager mousewheel mozbranding moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg mtp multilib musicbrainz mysql ncurses network networkmanager nfsv3 nonfsv4 nptl nsplugin offensive ogg openconnect opengl openmp optimized-qmake otr pam pango pch pcre pdf perl pgo phonon pic pie plasma png pnp policykit postproc ppds pulseaudio python python3 qml qt5 rar rdesktop readline rpc rss rtc rtmp s3tc samba sasl scrobbler sdl seccomp secondary-wheel secure-delete semantic-desktop shared-dricore sip sipim smi smime smtp sna snmp speex spell sqlite srt sse sse2 sse3 ssl ssse3 stroke svc svg swaybar swaybg swaygrab swaylock swaymsg system-cairo system-ffmpeg system-icu system-jpeg system-libvpx system-sqlite systemd telepathy theora thinkpad threads tidy tiff tinfo tordns truetype udev udisks udisks2 ulaw unicode upower urandom usb user-session userlocales v4l2 vaapi vim vim-syntax vnc vorbis vpx wayland wayland-compositor widevine widgets wifi windeco wma wmp x264 xattr xcb xcomposite xforms xml xmp xosd xrandr xscreensaver xv xvfb xvid xwayland yahoo zeroconf zip zlib zsh-completion" ABI_X86="64 32" 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" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="keyboard evdev" KERNEL="linux" L10N="en bg" 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_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Deutschmann gentoo-dev Security 2018-10-08 20:55:48 UTC
You have set USE="custom-cflags custom-optimization" ... in this case it is your responsibility to provide supported flags. Error is:

> ld.lld: error: -plugin-opt=Os

Caused by

> --enable-optimize=-Os           from CFLAGS

Closing as invalid because there's nothing we can do when we accept flags set by users. You are on your own, sorry.
Comment 2 Vladi 2018-10-08 21:41:49 UTC
Sorry, forgot to mention that same happens with those disabled. Updating the build log.
Comment 3 Vladi 2018-10-08 21:43:05 UTC
Created attachment 550034 [details]
New build log with USE="-custom-cflags -custom-optimization"
Comment 4 Thomas Deutschmann gentoo-dev Security 2018-10-09 00:59:20 UTC
Please try without distcc. Like you can see, your flags are getting cleaned:

> strip-flags: CFLAGS: changed '-march=native -pipe -fomit-frame-pointer' to '-march=native -pipe'
> strip-flags: CXXFLAGS: changed '-march=native -pipe -fomit-frame-pointer' to '-march=native -pipe'
> strip-flags: LDFLAGS: changed '-Wl,-O2 -Wl,--as-needed -Bdirect -Wl,-z,now -Bdirect -Wl,-z,now -Bdirect -Wl,-z,now -Bdirect -Wl,-z,now' to '-Wl,-O2 -Wl,--as-needed -Wl,-z,now -Wl,-z,now -Wl,-z,now -Wl,-z,now'

But later you see "-Os" and cleaned stuff again:

> checking whether the C compiler (/usr/lib/llvm/6/bin/clang -std=gnu99 -march=native -Os -pipe -fomit-frame-pointer -Wl,-O2 -Wl,--as-needed -Wl,-z,now -Wl,-z,now -Wl,-z,now -Wl,-z,now -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -Bdirect -Wl,-z,now -fuse-ld=lld) works... yes
Comment 5 Vladi 2018-10-09 01:15:13 UTC
Created attachment 550042 [details]
build log without distcc
Comment 6 Thomas Deutschmann gentoo-dev Security 2018-10-09 01:37:48 UTC
So I have no clue at the moment. It is not present when we sanitize CFLAGS/CXXFLAGS but later.

I tried to reproduce and set "-Os" but it will get filtered as expected on my system. I really don't know what's happening on your system.