Hello, today i try to update firefox to the last version (75.0), but i have error at the end of 50 minutes xD Emerge info: Portage 2.3.96 (python 3.6.10-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-9.3.0, glibc-2.30-r7, 5.6.2-gentoo x86_64) ================================================================= System uname: Linux-5.6.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.7 KiB Mem: 16275988 total, 7521628 free KiB Swap: 20971516 total, 19208700 free Timestamp of repository gentoo: Tue, 07 Apr 2020 11:00:01 +0000 Head commit of repository gentoo: 8f01023d1ba778cc3a58626a498f69217afd87fb sh bash 5.0_p16 ld GNU ld (Gentoo 2.34 p1) 2.34.0 app-shells/bash: 5.0_p16::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo, 3.8.2-r1::gentoo dev-util/cmake: 3.17.0::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.15.1-r2::gentoo, 1.16.2::gentoo sys-devel/binutils: 2.34::gentoo sys-devel/gcc: 9.3.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: fulgurance-overlay location: /var/lib/layman/fulgurance-overlay sync-type: laymansync sync-uri: https://github.com/fulgurance/fulgurance-overlay.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="-a" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves" GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/" LANG="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr fr_FR" MAKEOPTS="-j9" 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 acl acpi alsa amd64 audit bluetooth btrfs bzip2 compat consolekit crypt cryptsetup cuda custom-cflags custom-optimization dbus device-mapper dhcpcd dri dri3 experimental ffmpeg git glamor gstreamer hardened iconv ipv6 jpeg kde kms libtirpc lto lvm mp3 mp4 mtp multilib ncurses networkmanager nls nptl ogg open_perms opengl openmp pam pcre peer_perms phonon pie plasma png policykit pulseaudio readline seccomp selinux semantic-desktop split-usr ssl ssp svg tiff ubac udev udisks unconfined unicode uvm v4l vaapi vdpau vorbis vulkan wifi wireless x264 xattr xtpax zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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 ssse3 sse4_1 sse4_2" 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" KERNEL="linux" L10N="fr fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" 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
Log: https://textup.fr/424435RH
Can you reproduce this with vanilla CFLAGS and CXXFLAGS? e.g. CFLAGS="-march=native -O2 -pipe" or, in your case, you may want: CFLAGS="-march=skylake -O2 -pipe". --- Some similar bugs in the past which may be relevant: https://bugzilla.mozilla.org/show_bug.cgi?id=1121410 https://bugs.gentoo.org/650488
The error disappeared for me with lto disabled.
can you please post your emerge -pv firefox before and after flipping the lto? I have the same toolchain on my tinderbox, and could easily confirm.
(In reply to tt_1 from comment #4) > can you please post your emerge -pv firefox before and after flipping the > lto? I have the same toolchain on my tinderbox, and could easily confirm. This has already been fixed in 76.x, soon as I have a bit of time will add the upstream bug report
The problem is, that the following code from security/sandbox/linux/moz.build never evaluates to true: > # gcc lto likes to put the top level asm in syscall.cc in a different partition > # from the function using it which breaks the build. Work around that by > # forcing there to be only one partition. > for f in CONFIG['OS_CXXFLAGS']: > if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang': > LDFLAGS += ['--param', 'lto-partitions=1'] I.e. when iterating through OS_CXXFLAGS, it looks like f never starts with "-flto".
*** This bug has been marked as a duplicate of bug 709654 ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=987751ee8d8f1d480022eab94fdc0ccb555b10fa commit 987751ee8d8f1d480022eab94fdc0ccb555b10fa Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-04-14 23:19:29 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-04-14 23:42:04 +0000 www-client/firefox: fix building with USE=lto when using GCC Closes: https://bugs.gentoo.org/716576 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox/Manifest | 2 +- www-client/firefox/firefox-75.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Is it just me or did the above commit/patch break clang instead? Was working fine before but when attempting to rebuild now getting (early on): 0:27.23 ============================== 0:27.23 FATAL ERROR PROCESSING MOZBUILD FILE 0:27.23 ============================== 0:27.23 The error occurred while processing the following file: 0:27.23 /tmp/portage/www-client/firefox-75.0/work/firefox-75.0/security/sandbox/linux/moz.build 0:27.23 The error was triggered on line 103 of this file: 0:27.23 for f in CONFIG['MOZ_LTO_LDFLAGS']: 0:27.23 An error was encountered as part of executing the file itself. The error appears to be the fault of the script. 0:27.23 The error as reported by Python is: 0:27.23 ["TypeError: 'NoneType' object is not iterable\n"] 0:27.87 *** Fix above errors and then restart with\ 0:27.87 "./mach build" 0:27.87 gmake: *** [client.mk:115: configure] Error 1 [ebuild R ] www-client/firefox-75.0::gentoo USE="clang gmp-autoupdate lto pgo pulseaudio screenshot system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp" (it's an up-to-date ~amd64 system using python 3.7 instead of 3.6, although there is a few non-standard handling on my system that could be messing with this, I'll investigate further if need be)
(In reply to Ionen Wolkens from comment #9) > Is it just me or did the above commit/patch break clang instead? Hrm. USE="clang lto" works but when you add "USE=pgo" it's missing.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39be06eb68ca12d18b164bda6efe67ea604c1d1d commit 39be06eb68ca12d18b164bda6efe67ea604c1d1d Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-04-15 11:55:45 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-04-15 11:55:45 +0000 www-client/firefox: rev bump Previous patch set fixed building with LTO enabled using GCC but broke building with LTO and PGO enabled using CLANG. Closes: https://bugs.gentoo.org/716576 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox/Manifest | 2 +- www-client/firefox/firefox-75.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)