Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 746134 - www-client/firefox-81.0.1: configuration fails
Summary: www-client/firefox-81.0.1: configuration fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-02 12:42 UTC by François Valenduc
Modified: 2020-10-04 14:37 UTC (History)
1 user (show)

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


Attachments
full build.log file (build.log,37.20 KB, text/x-log)
2020-10-02 12:42 UTC, François Valenduc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Valenduc 2020-10-02 12:42:53 UTC
Created attachment 663517 [details]
full build.log file

The configuration of firefox 81.0.1 fails like this:

 0:13.31^O configure: error: compiler is incompatible with sanitize options^O
 0:13.32^O DEBUG: <truncated - see config.log for full output>^O
 0:13.32^O DEBUG: #line 3150 "configure"^O
 0:13.32^O DEBUG: #include "confdefs.h"^O
 0:13.32^O DEBUG: /* Override any gcc2 internal prototype to avoid an error.  */^O
 0:13.32^O DEBUG: /* We use char because int might match the return type of a gcc2^O
 0:13.32^O DEBUG:     builtin and then its argument prototype would still apply.  */^O
 0:13.32^O DEBUG: char IceConnectionNumber();^O
 0:13.32^O DEBUG:^O
 0:13.32^O DEBUG: int main() {^O
 0:13.32^O DEBUG: IceConnectionNumber()^O
 0:13.32^O DEBUG: ; return 0; }^O
 0:13.32^O DEBUG: configure:3710: /usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99 -o conftest {CFLAGS} -mno-avx2  -Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -fuse-ld=bfd conftest.c  1>&5^O
 0:13.32^O DEBUG: x86_64-pc-linux-gnu-gcc: error: {CFLAGS}: No such file or directory^O
 0:13.32^O DEBUG: configure: failed program was:^O
 0:13.32^O DEBUG: #line 3703 "configure"^O
 0:13.33^O DEBUG: #include "confdefs.h"^O
 0:13.33^O DEBUG:^O
 0:13.33^O DEBUG: int main() {^O
 0:13.33^O DEBUG:^O
 0:13.33^O DEBUG: ; return 0; }^O
 0:13.33^O DEBUG: configure: error: compiler is incompatible with sanitize options^O
 0:13.33^O ERROR: old-configure failed^O
 0:13.41^O *** Fix above errors and then restart with\^O
 0:13.41^O                "./mach build"^O
 0:13.41^O gmake: *** [client.mk:115: configure] Error 1^O
 * ERROR: www-client/firefox-81.0.1::gentoo failed (configure phase):
 *   (no error message)

Does anybody have an idea about this ?
Comment 1 François Valenduc 2020-10-02 12:43:54 UTC
output of emerge --info:

Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/systemd, gcc-9.3.0, glibc-2.31-r6, 5.8.13 x86_64)
=================================================================
System uname: Linux-5.8.13-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.7
KiB Mem:     8165428 total,   2440860 free
KiB Swap:     921596 total,    921596 free
Timestamp of repository gentoo: Fri, 02 Oct 2020 11:00:01 +0000
Head commit of repository gentoo: 0e8cecb7fb4585f63eaec14c2916cf7e8c30ab59
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://pc-francois/gentoo-distfiles http://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l4"

I have tried with and without distcc and the problem always occur.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-02 14:54:28 UTC
Fix your CFLAGS.


> checking whether the C compiler (/usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99 {CFLAGS} -mno-avx2 -Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -fuse-ld=bfd) works...
>                                                                              ^^^^^^^^

> checking whether the C++ compiler (/usr/bin/x86_64-pc-linux-gnu-g++ -std=gnu++17 {CSSFLAGS} -mno-avx2 -Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -fuse-ld=bfd) works...
>                                                                                  ^^^^^^^^^^
Comment 3 François Valenduc 2020-10-02 18:19:12 UTC
Can you be a bit more explicit ? Since I use distcc, I followed this guide: https://wiki.gentoo.org/wiki/Distcc/fr#CFLAGS_and_CXXFLAGS

I ran this command like explained: gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'

It gives this result which I put in CLAGS: -march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mrdseed -mprfchw -mfxsr -mxsave -mclflushopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=skylake

It also fails in the same way without distcc and with -march=native.
I could compile all previous releases of firefox. What changed this time ?
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-02 19:33:08 UTC
Your output should not contain anything with "{CFLAGS}" or "{CSSFLAGS}".
Your shown "emerge --info" output doesn't match shown configure output.

Use app-misc/resolve-march-native to set your flags.
Comment 5 François Valenduc 2020-10-03 05:19:00 UTC
Like suggested, I used resolve-march-native. emerge --info now gives this output:

Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/systemd, gcc-9.3.0, glibc-2.31-r6, 5.8.13 x86_64)
=================================================================
System uname: Linux-5.8.13-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.7
KiB Mem:     8165428 total,   2893404 free
KiB Swap:     921596 total,    921596 free
Timestamp of repository gentoo: Fri, 02 Oct 2020 11:00:01 +0000
Head commit of repository gentoo: 0e8cecb7fb4585f63eaec14c2916cf7e8c30ab59
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=skylake -mabm -mno-adx -mno-bmi -mno-bmi2 -mno-f16c -mno-fma -mno-fsgsbase -mno-sgx -mno-xsavec -mno-xsaveopt -mno-xsaves --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=4096"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=skylake -mabm -mno-adx -mno-bmi -mno-bmi2 -mno-f16c -mno-fma -mno-fsgsbase -mno-sgx -mno-xsavec -mno-xsaveopt -mno-xsaves --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=4096"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 -march=skylake -mabm -mno-adx -mno-bmi -mno-bmi2 -mno-f16c -mno-fma -mno-fsgsbase -mno-sgx -mno-xsavec -mno-xsaveopt -mno-xsaves --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=4096"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=skylake -mabm -mno-adx -mno-bmi -mno-bmi2 -mno-f16c -mno-fma -mno-fsgsbase -mno-sgx -mno-xsavec -mno-xsaveopt -mno-xsaves --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=4096"
GENTOO_MIRRORS="rsync://pc-francois/gentoo-distfiles http://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -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="/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd tcpd udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias proxy proxy_http proxy_wstunnel" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput evdev" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres12" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="vesa" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

And it still fails with the same error. I don't understand what's happening.
Comment 6 Joonas Niilola gentoo-dev 2020-10-03 07:35:22 UTC
Please show emerge --info from BOTH machines, CHOST and CBUILD. Does it work if you temporarily try to disable distcc?

FEATURES="-distcc" emerge -uav firefox
Comment 7 François Valenduc 2020-10-03 07:42:53 UTC
Here the output of emerge --info on the second machine:

Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.3.0, glibc-2.31-r6, 5.8.13 x86_64)
=================================================================
System uname: Linux-5.8.13-x86_64-Intel-R-_Core-TM-_i7-8565UC_CPU_@_1.80GHz-with-gentoo-2.7
KiB Mem:     8043564 total,    247996 free
KiB Swap:    4194300 total,   4179964 free
Timestamp of repository gentoo: Sat, 03 Oct 2020 07:00:01 +0000
Head commit of repository gentoo: 6eeed5e24819ba7b8815b4e3a74ab7002975b9d7
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
ccache version 3.7.11 [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

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

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -msgx -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=skylake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/genkernel/arch /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -msgx -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=skylake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -msgx -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=skylake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -msgx -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=skylake -O2 -pipe"
GENTOO_MIRRORS="https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j9 -l20"
PKGDIR="/var/cache/binpkgs"
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 activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli crypt cups dbus declarative dri dts dvd dvdr emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 java jpeg kde kerberos kipi kpathsea kwallet lcms libglvnd libnotify libtirpc lzma mad mmx mng mp3 mp4 mpeg multilib musicbrainz ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon pkcs11 plasma png policykit ppds qml qt5 readline samba scanner sdl seccomp semantic-desktop spell split-usr sse sse2 sse3 sse4 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upnp upower usb v4l2 vim-syntax vorbis widgets wxwidgets xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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 sheets 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 greis 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 evdev" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="radeon intel" 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

Something must have changed between firefox 80.0.1-r1 and 81.1.0.1. With exactly the same setup, the problem doesn't occur with version 80.0.1-r1.
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-03 11:20:44 UTC
Your build.log does not match shown `emerge --info`.

> Something must have changed between firefox 80.0.1-r1 and 81.1.0.1. With exactly the same setup, the problem doesn't occur with version 80.0.1-r1.

It's an entire new version and even ebuild was rewritten from scratch. For example we no longer guard you from passing invalid CFLAGS, i.e. previous versions had USE=custom-cflags and when not set, we called strip-flags -- something we don't do anymore.

All I can tell you: Your logs show invalid value. You either manipulated shown logs file or you are doing something bad causing this invalid value. If you will fix this, firefox should also build on your system...

If you believe this is a problem in firefox or ebuild, please tell us how to reproduce the problem in a clean stage3 environment.
Comment 9 François Valenduc 2020-10-04 11:53:48 UTC
It was indeed a problem with incorrect CFLAGS. It works with these flags:

-march=skylake -mabm -mno-adx -mno-bmi -mno-bmi2 -mno-f16c -mno-fma -mno-fsgsbase -mno-sgx -mno-xsavec -mno-xsaveopt -mno-xsaves --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=4096 -mno-avx2

-mno-avx2 is needed, otherwise I get this error:

74:55.35 In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/immintrin.h:107,
74:55.35                  from /var/tmp/portage/www-client/firefox-81.0.1/work/firefox-81.0.1/gfx/skia/skia/src/opts/SkBitmapFilter_opts.h:14,
74:55.35                  from /var/tmp/portage/www-client/firefox-81.0.1/work/firefox-81.0.1/gfx/skia/skia/src/core/SkOpts.cpp:39:
74:55.35 /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/fmaintrin.h: In function ‘avx2::F avx2::mad(avx2::F, avx2::F, avx2::F)’:
74:55.35 /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/fmaintrin.h:55:1: error: inlining failed in call to always_inline ‘__m128 _mm_fmadd_ps(__m128, __m128, __m128)’: target specific option mismatch
74:55.35    55 | _mm_fmadd_ps (__m128 __A, __m128 __B, __m128 __C)
74:55.36       | ^~~~~~~~~~~~
74:55.36 In file included from /var/tmp/portage/www-client/firefox-81.0.1/work/firefox-81.0.1/gfx/skia/skia/src/core/SkOpts.cpp:44:
74:55.36 /var/tmp/portage/www-client/firefox-81.0.1/work/firefox-81.0.1/gfx/skia/skia/src/opts/SkRasterPipeline_opts.h:739:28: note: called from here
74:55.36   739 |         return _mm_fmadd_ps(f,m,a);
74:55.36       |                ~~~~~~~~~~~~^~~~~~~
74:55.61 distcc[16473] ERROR: compile /var/tmp/portage/www-client/firefox-81.0.1/work/firefox-81.0.1/gfx/skia/skia/src/core/SkOpts.cpp on localhost failed
Comment 10 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-04 14:37:44 UTC
Thank you for the follow up!