Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833573 - www-client/firefox-97.0.1 ld.gold: internal error in set_xindex
Summary: www-client/firefox-97.0.1 ld.gold: internal error in set_xindex
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-17 21:45 UTC by jorge
Modified: 2022-02-18 12:27 UTC (History)
0 users

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


Attachments
compressed log file (file_833573.txt,37 bytes, text/plain)
2022-02-17 22:15 UTC, jorge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jorge 2022-02-17 21:45:03 UTC
Compilation time error. The build log is 167MB long, cannot include it. These are the final lines of the error:


--------------------------------------------------------------------------

160:57.72 /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: internal error in set_xindex, at /var/tmp/portage/sys-devel/binutils-2.37_p1-r2/work/binutils-2.37/gold/object.h:1050
160:57.86 collect2: error: ld returned 1 exit status
160:57.87 gmake[4]: *** [/var/tmp/portage/www-client/firefox-97.0.1/work/firefox-97.0.1/config/rules.mk:531: libxul.so] Error 1
160:57.87 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-97.0.1/work/firefox_build/toolkit/library/build'
160:57.87 gmake[3]: *** [/var/tmp/portage/www-client/firefox-97.0.1/work/firefox-97.0.1/config/recurse.mk:72: toolkit/library/build/target] Error 2
160:57.87 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-97.0.1/work/firefox_build'
160:57.87 gmake[2]: *** [/var/tmp/portage/www-client/firefox-97.0.1/work/firefox-97.0.1/config/recurse.mk:34: compile] Error 2
160:57.87 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-97.0.1/work/firefox_build'
160:57.87 gmake[1]: *** [/var/tmp/portage/www-client/firefox-97.0.1/work/firefox-97.0.1/config/rules.mk:352: default] Error 2
160:57.87 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-97.0.1/work/firefox_build'
160:57.87 gmake: *** [client.mk:63: build] Error 2
160:57.87 11 compiler warnings present.
 * ERROR: www-client/firefox-97.0.1::gentoo failed (compile phase):
 *   Failed to run './mach build --verbose'
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 5317:  Called virtx './mach' 'build' '--verbose'
 *   environment, line 6635:  Called die
 * The specific snippet of code:
 *       [[ ${retval} -ne 0 ]] && die "Failed to run '$@'";
 * 
 * If you need support, post the output of `emerge --info '=www-client/firefox-97.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/firefox-97.0.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/firefox-97.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-97.0.1/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/firefox-97.0.1/work/firefox-97.0.1'
 * S: '/var/tmp/portage/www-client/firefox-97.0.1/work/firefox-97.0.1'


--------------------------------------------------------------------------

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.23-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.23-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1285_v4_@_3.50GHz-with-glibc2.33
KiB Mem:    32721192 total,  12666016 free
KiB Swap:    8388604 total,   8174332 free
Timestamp of repository gentoo: Thu, 17 Feb 2022 17:00:01 +0000
Head commit of repository gentoo: cfb1480fdb4ec88ca752f074ffdb64656cd509bd
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 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-r2::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-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

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"



---------------------------------------------------------------------------
---------------------------------------------------------------------------

This error appeared after the following commit:

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

(see bug https://bugs.gentoo.org/833366)
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-17 21:47:03 UTC
Please attach the full build.log compressed.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-17 22:01:09 UTC
Not sure why it's choosing to use gold but someone hitting this needs to report it upstream to binutils.
Comment 3 jorge 2022-02-17 22:13:00 UTC
Hello, I compressed it to 10MB, still cannot upload it. Is this link ok?

https://paste.c-net.org/HelplessPints
Comment 4 jorge 2022-02-17 22:15:12 UTC
Created attachment 765324 [details]
compressed log file
Comment 5 Joonas Niilola gentoo-dev 2022-02-18 06:39:03 UTC
(In reply to Sam James from comment #2)
> Not sure why it's choosing to use gold but someone hitting this needs to
> report it upstream to binutils.

Upstream added a "gold" option to the new --enable-linker configure flag for 97.0, but with a big fat warning saying it's unsupported. But I thought maybe, just maybe it'd work. I'm now willing to believe it won't ever again.

Need to strip out the logic to use gold and force bfd with gcc.
Comment 6 Larry the Git Cow gentoo-dev 2022-02-18 12:27:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb4f8fd1f1c4a5e4dd18092d39448ac5639b52c

commit 6fb4f8fd1f1c4a5e4dd18092d39448ac5639b52c
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-02-18 12:25:48 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-02-18 12:26:54 +0000

    www-client/firefox: disable gold linker for good on 97.0.1
    
    Closes: https://bugs.gentoo.org/833573
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/firefox-97.0.1.ebuild | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)