Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706772 - www-client/firefox-73.0_beta10::mozilla build fails on MOZ_LTO_CFLAGS makefile error
Summary: www-client/firefox-73.0_beta10::mozilla build fails on MOZ_LTO_CFLAGS makefil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 709272 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-27 20:38 UTC by Vladi
Modified: 2020-02-14 13:09 UTC (History)
6 users (show)

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


Attachments
build.log (build.log.gz,25.27 KB, application/gzip)
2020-01-27 20:42 UTC, Vladi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladi 2020-01-27 20:38:25 UTC
building fails with..

 0:29.38 js/src> checking for posix_memalign... (cached) yes
 0:29.39 js/src> checking for memalign... (cached) yes
 0:29.40 js/src> checking for malloc_usable_size... (cached) yes
 0:29.51 js/src> checking whether malloc_usable_size definition can use const argument... no
 0:29.60 js/src> checking for valloc in malloc.h... yes
 0:29.67 js/src> checking for valloc in unistd.h... no
 0:29.73 js/src> checking for _aligned_malloc in malloc.h... no
 0:29.74 js/src> updating cache /var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/ff/instrumented/./config.cache
 0:29.74 js/src> creating ./config.data
 0:29.76 js/src> Creating config.status
 0:29.81 Creating config.status
 0:30.03 Reticulating splines...
 0:30.55 Traceback (most recent call last):
 0:30.56   File "/var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/configure.py", line 170, in <module>
 0:30.56     sys.exit(main(sys.argv))
 0:30.56   File "/var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/configure.py", line 51, in main
 0:30.56     return config_status(config)
 0:30.56   File "/var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/configure.py", line 165, in config_status
 0:30.56     return config_status(args=[], **normalize(sanitized_config))
 0:30.56   File "/var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/python/mozbuild/mozbuild/config_status.py", line 142, in config_status
 0:30.56     definitions = list(definitions)
 0:30.56   File "/var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/python/mozbuild/mozbuild/frontend/emitter.py", line 175, in emit
 0:30.56     for out in output:
 0:30.56   File "/var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/python/mozbuild/mozbuild/frontend/reader.py", line 890, in read_topsrcdir
 0:30.56     for r in self.read_mozbuild(path, self.config):
 0:30.56   File "/var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/python/mozbuild/mozbuild/frontend/reader.py", line 1060, in read_mozbuild
 0:30.56     raise bre
 0:30.56 mozbuild.frontend.reader.BuildReaderError:
 0:30.56 ==============================
 0:30.56 FATAL ERROR PROCESSING MOZBUILD FILE
 0:30.56 ==============================
 0:30.56 The error occurred while processing the following file:
 0:30.56     /var/cache/portage/www-client/firefox-73.0_beta10/work/firefox-73.0/security/sandbox/linux/moz.build
 0:30.56 The error was triggered on line 103 of this file:
 0:30.56     for f in CONFIG['MOZ_LTO_CFLAGS']:
 0:30.56 An error was encountered as part of executing the file itself. The error appears to be the fault of the script.
 0:30.56 The error as reported by Python is:
 0:30.56     ["TypeError: 'NoneType' object is not iterable\n"]
 0:31.78 *** Fix above errors and then restart with\
 0:31.78                "./mach build"
 0:31.78 gmake: *** [client.mk:115: configure] Error 1
 * ERROR: www-client/firefox-73.0_beta10::x-portage failed (compile phase):
 *   Failed to run './mach build --verbose'


Reproducible: Always

Steps to Reproduce:
1.emerge firefox
2.
3.
Actual Results:  
fails

Expected Results:  
compiles + installs firefox
Comment 1 Vladi 2020-01-27 20:40:06 UTC
❯ emerge --info
Portage 2.3.84 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r7, 5.5.0 x86_64)
=================================================================
System uname: Linux-5.5.0-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-gentoo-2.6
KiB Mem:    16363164 total,   3763736 free
KiB Swap:   16382972 total,  16382972 free
Timestamp of repository gentoo: Mon, 27 Jan 2020 19:49:36 +0000
Head commit of repository gentoo: c5cb3074f74fa9709eb0889197aed22a3564e46a

Head commit of repository lto-overlay: b07f56c97c032699ff2751112aa7c57e4ff495fc

Head commit of repository mozilla: 19bdfd5cb37e3b6d86c9ec25a8a1f3dbc6c37e82

Head commit of repository mv: bb0198145066a2efdd899bd5cc9b6929948bbb51

Head commit of repository steam-overlay: d77d22779230e23014724e9046225b4f3124df34

Head commit of repository tlp: 8f0dfbb298ebce318ddd38ec0cae727984ef6f10

Head commit of repository eroen: 168c481db277e12e30ba6dea71a774337512ce32

Head commit of repository mva: fbad7ca8d4e0e3de90d0d8d121d1084b6d18a163

Head commit of repository throttled: 937b9ec326a5a2fb3f43c1045dccacd199ddaa91

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.6 [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/ccache:          3.7.6::gentoo
dev-util/cmake:           3.16.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r3::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

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

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

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

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: https://anongit.gentoo.org/git/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

eroen
    location: /usr/local/portage/eroen
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/eroen.git
    masters: gentoo
    priority: 9999

mva
    location: /usr/local/portage/mva
    sync-type: git
    sync-uri: https://github.com/msva/mva-overlay.git
    masters: gentoo
    priority: 9999

throttled
    location: /usr/local/portage/throttled
    sync-type: git
    sync-uri: https://github.com/erpalma/throttled-overlay.git
    masters: gentoo
    priority: 9999

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -mabm -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32"
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=skylake -mabm -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32"
DISTDIR="/usr/portage/distfiles"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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 -Wl,--hash-style=gnu"
LINGUAS="en bg"
MAKEOPTS="-j8 -l5"
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 aalib acpi adns alsa amd64 apng archive aspell async autoipd autoreplace avahi bash-completion bluetooth branding btrfs bzip2 cairo caps cdda cdinstall cdr cli client-libs crypt cryptsetup cups curl custom-cflags custom-optimization cxx dbus declarative dhcp dolphin dri dri3 dts dvd dvdr egl encode epub exif ffmpeg flac fuse gallium gd gdbm geoclue geoip gif gles gnome-keyring gnutls gphoto2 gps graphite gstreamer haptic hardcoded-tables hddtemp hwaccel i3 ibmacpi iconv icu imagemagick imap imlib introspection iproute2 ipv6 ithreads iwd javascript jpeg jumbo-build kde kdenlive kipi kwallet lame laptop lcms libaom libcaca libinput libkms libnotify libtirpc lm_sensors logrotate lto lzma lzo mad matroska minizip mng mobi mp3 mp4 mpeg mtp multilib musicbrainz mysql ncurses network networkmanager nonfsv4 nptl offensive ogg opengl openmp optimized-qmake pam pango pch pcre pdf pgo phonon pic pie plasma png pnp policykit postproc ppds pulseaudio qml qt5 rar readline rpc rss rtmp s3tc samba sasl sdl seccomp semantic-desktop smi smime smtp speex spell split-usr sqlite srt ssl ssse3 svg swaybar swaybg swaygrab swaylock swaymsg system-cairo system-ffmpeg system-icu system-jpeg system-libevent system-libvpx system-llvm system-sqlite systemd theora threads tidy tiff tordns truetype udev udisks udisks2 ulaw unicode upower urandom usb user-session userlocales vaapi vim vim-syntax vnc vorbis vpx wayland webp widgets wifi x264 xattr xcb xcomposite xml xv xvid zeroconf zip zlib zsh-completion" 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="pc efi-64" INPUT_DEVICES="keyboard libinput" 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="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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 2 Vladi 2020-01-27 20:42:52 UTC
Created attachment 605854 [details]
build.log
Comment 3 Jory A. Pratt gentoo-dev 2020-01-27 23:09:52 UTC
You are using a personal overlay, I nor any other mozilla project dev is gonna support anything not from ::mozilla or ::gentoo
Comment 4 Vladi 2020-01-27 23:54:48 UTC
Sorry, I forgot to remove that. That is just a copy from the mozilla repo to get latest beta10 version. Is not my own ebuild or anything. The LTO_FLAGS make has been broken since 73beta1 on the mozilla overlay.
Comment 5 Andrew 2020-01-28 08:40:19 UTC
I can confirm that I'm also affected by this bug.
Comment 6 Jory A. Pratt gentoo-dev 2020-01-28 14:11:50 UTC
DISABLE pgo useflag and test just LTO, do you still have failure?
Comment 7 Vladi 2020-01-28 17:00:55 UTC
Yup disabling pgo with lto only seems to pass the configuration phase.
Comment 8 Jory A. Pratt gentoo-dev 2020-02-11 23:35:39 UTC
*** Bug 709272 has been marked as a duplicate of this bug. ***
Comment 9 Jory A. Pratt gentoo-dev 2020-02-14 02:37:58 UTC
If you can test the current ebuild in the overlay would be appreciated, it should fix both pgo and lto builds. Please report findings soon as possible so we can move the fix to main tree.
Comment 10 Andrew 2020-02-14 11:05:40 UTC
www-client/firefox-73.0::mozilla with pgo and lto compiles without errors.
Comment 11 Larry the Git Cow gentoo-dev 2020-02-14 13:09:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f2ceab0a79e973d3e1e70dc4cf201bd09c5154b

commit 2f2ceab0a79e973d3e1e70dc4cf201bd09c5154b
Author:     Jory Pratt <anarchy@gentoo.org>
AuthorDate: 2020-02-14 13:09:14 +0000
Commit:     Jory Pratt <anarchy@gentoo.org>
CommitDate: 2020-02-14 13:09:29 +0000

    www-client/firefox: Fix pgo/lto builds
    
    Closes: https://bugs.gentoo.org/709440
    Closes: https://bugs.gentoo.org/706772
    Closes: https://bugs.gentoo.org/709594
    Package-Manager: Portage-2.3.88, Repoman-2.3.20
    Signed-off-by: Jory Pratt <anarchy@gentoo.org>

 .../firefox/files/firefox-69.0-lto-gcc-fix.patch   | 26 -----------
 .../files/firefox-73.0_fix_lto_pgo_builds.patch    | 51 ++++++++++++++++++++++
 www-client/firefox/firefox-73.0.ebuild             |  2 +
 3 files changed, 53 insertions(+), 26 deletions(-)