Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833366 - www-client/firefox-97.0 --enable-gold is deprecated, use --enable-linker=gold instead
Summary: www-client/firefox-97.0 --enable-gold is deprecated, use --enable-linker=gold...
Status: RESOLVED FIXED
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: 2022-02-14 23:00 UTC by jorge
Modified: 2022-02-17 21:45 UTC (History)
2 users (show)

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


Attachments
build log (fox_error.txt,17.88 KB, text/plain)
2022-02-14 23:00 UTC, jorge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jorge 2022-02-14 23:00:53 UTC
Created attachment 765139 [details]
build log

Compilation time error when trying to build firefox 97. Current firefox version 96.0.3:

emerge firefox --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-11.2.0, glibc-2.33-r7, 5.15.19-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.19-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1285_v4_@_3.50GHz-with-glibc2.33
KiB Mem:    32721192 total,  13506284 free
KiB Swap:    8388604 total,   2175356 free
Timestamp of repository gentoo: Mon, 14 Feb 2022 10:30:01 +0000
Head commit of repository gentoo: ade8ef8717caec421e83111616190256bbff3941
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-apps/systemd:          249.9::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=8 --load-average=7.9"
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=native -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluray branding bzip2 cairo caps cdda cddb cdr cli colord crypt cuda cups dav1d dbus djvu dri dts dvd dvdr egl encode eselect-ldso exif ffmpeg fftw flac fontconfig fortran fuse gdbm gif gles2 gmp gnome-keyring gphoto2 gpm gtk gtk3 gui iconv icu introspection ipv6 jack jpeg jpeg2k lcms libcaca libglvnd libnotify libsamplerate libtirpc lm-sensors lto lzma mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nss ogg opencl opengl openmp openssl pam pango pcre pdf perl pgo png policykit postscript ppds pulseaudio qt5 raw readline sdl seccomp sndfile speex spell split-usr ssl startup-notification svg systemd teamd threads tiff truetype udev udisks unicode upower usb v4l vaapi vala vdpau vorbis vulkan wavpack wxwidgets x264 x265 xattr xcb xfce xinerama xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda_intel ca0132" 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" KERNEL="linux" L10N="en es la" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

www-client/firefox-96.0.3::gentoo was built with the following:
USE="dbus gmp-autoupdate jack lto openh264 pgo pulseaudio system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -clang -debug -eme-free -geckodriver -hardened -hwaccel -screencast (-selinux) -sndio (-system-av1) -system-png -wayland -wifi" ABI_X86="(64)" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
CFLAGS="-march=native -pipe"
CXXFLAGS="-march=native -pipe -fno-tree-loop-vectorize"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"
Comment 1 Joonas Niilola gentoo-dev 2022-02-17 06:30:51 UTC
--enable-linker=gold should be specified in the ebuild. Can you try editing the ebuild and taking out 
```
export MOZ_FORCE_GOLD=1
```

There are two lines like this, lines 831 and 853
https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/firefox/firefox-97.0.ebuild#n831
https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/firefox/firefox-97.0.ebuild#n853

Remember to "git restore firefox-97.0.ebuild" after your changes before you --sync the next time.
Comment 2 Joonas Niilola gentoo-dev 2022-02-17 06:46:02 UTC
Okay reading the build system files I think that's it. Gonna fix for 97.0.1 which was released today.
Comment 3 Larry the Git Cow gentoo-dev 2022-02-17 09:04:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=109e78aa62ff5eb2fa0ef70557f662409da84e76

commit 109e78aa62ff5eb2fa0ef70557f662409da84e76
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-02-17 09:03:31 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-02-17 09:04:39 +0000

    www-client/firefox: add 97.0.1
    
     - fix an issue when gold linker was used with gcc.
    
    Closes: https://bugs.gentoo.org/833366
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest              |   98 +++
 www-client/firefox/firefox-97.0.1.ebuild | 1265 ++++++++++++++++++++++++++++++
 2 files changed, 1363 insertions(+)