Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927948 - {www-client/firefox,mail-client/thunderbird}-115.9.0 fail to install during profile change: segments overlap
Summary: {www-client/firefox,mail-client/thunderbird}-115.9.0 fail to install during p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 10:04 UTC by Jaak Ristioja
Modified: 2024-04-05 13:06 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,372.18 KB, application/x-xz)
2024-03-27 10:04 UTC, Jaak Ristioja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2024-03-27 10:04:49 UTC
Created attachment 888757 [details]
build.log.xz

I'm upgrading to the new default/linux/amd64/23.0/split-usr/no-multilib/hardened profile according to the 2024-03-22-new-23-profiles news item, and during step 16 (`emerge --emptytree @world`) I'm getting the following error while trying to rebuild Firefox:

>>> Install www-client/firefox-115.9.0 into /var/tmp/portage/www-client/firefox-115.9.0/image
 * XATTR_PAX marking -m /var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build/dist/bin/xpcshell with paxctl-ng
 * XATTR_PAX marking -m /var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build/dist/bin/firefox with paxctl-ng
 * XATTR_PAX marking -m /var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build/dist/bin/plugin-container with paxctl-ng
 0:00.47 /usr/bin/gmake -C . -j16 -s -w install
 0:00.50 gmake: Entering directory '/var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build'
 0:00.51 gmake[1]: Entering directory '/var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build/browser/installer'
 0:05.89 ../../dist/firefox/libxul.so: terminate called after throwing an instance of 'std::runtime_error'
 0:05.89   what():  Segments overlap
 0:06.31 Traceback (most recent call last):
 0:06.32   File "/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/toolkit/mozapps/installer/packager.py", line 295, in <module>
 0:06.32     main()
 0:06.32   File "/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/toolkit/mozapps/installer/packager.py", line 290, in main
 0:06.32     copier.copy(args.destination)
 0:06.32   File "/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/python/mozbuild/mozpack/copier.py", line 432, in copy
 0:06.32     copy_results.append((destfile, f.copy(destfile, skip_if_older)))
 0:06.32                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:06.32   File "/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/python/mozbuild/mozpack/files.py", line 320, in copy
 0:06.32     elfhack(dest)
 0:06.32   File "/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/python/mozbuild/mozpack/executables.py", line 140, in elfhack
 0:06.32     errors.fatal("Error executing " + " ".join(cmd))
 0:06.32   File "/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/python/mozbuild/mozpack/errors.py", line 115, in fatal
 0:06.32     self._handle(self.FATAL, msg)
 0:06.32   File "/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/python/mozbuild/mozpack/errors.py", line 110, in _handle
 0:06.32     raise ErrorMessage(msg)
 0:06.32 mozpack.errors.ErrorMessage: error: Error executing /var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build/build/unix/elfhack/elfhack ../../dist/firefox/libxul.so
 0:06.36 gmake[1]: *** [/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/toolkit/mozapps/installer/packager.mk:25: stage-package] Error 1
 0:06.36 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build/browser/installer'
 0:06.36 gmake: *** [/var/tmp/portage/www-client/firefox-115.9.0/work/firefox-115.9.0/browser/build.mk:15: install] Error 2
 0:06.36 gmake: Leaving directory '/var/tmp/portage/www-client/firefox-115.9.0/work/firefox_build'


Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/23.0/split-usr/no-multilib/hardened, gcc-13, glibc-2.38-r10, 6.8.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
Timestamp of repository gentoo: Sat, 23 Mar 2024 08:49:00 +0000
Head commit of repository gentoo: 14f39e3b3b63834adc25404668493326872745c7

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.9.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.0::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.10.13_p3::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.75.0-r1::gentoo
dev-util/ccache:           4.9.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: true

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/firefox/distribution/ /usr/share/config"
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="-O2 -pipe -mtune=native -ggdb"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en et et_EE"
MAKEOPTS="-j17"
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 amr aspell bash-completion bidi bindist brightness-control bzip2 cairo caps cdda cdr cet cli color-management colord cpudetection cracklib crypt cups custom-optimization dbus doc double-precision dri dvd dvdr eds egl eglfs elogind emboss enca encode evdev evo exif faac faad fam fbcon ffmpeg fftw firefox flac fluidsynth fontconfig fontforge gcrypt gif git gmp gnuplot gpg gphoto2 gpm gtk gtk3 handbook hardened hdri heif ibus iconv icu id3tag idn imagemagick introspection ipv6 jpeg jpegxl kate kde kpathsea ladspa lapack latex lcms libbsd libnotify libsamplerate libtirpc lto lz4 lzma lzo mad man markdown matroska md5sum midi mikmod mmap mms mmx mng modplug mp3 mp4 mpeg ncurses nptl ogg openal opencv openexr opengl openh264 opus otr pcre pdf pic pie pipewire plasma png policykit postscript ppds projectm pulseaudio qalculate raw readline rrdtool rtmp rubberband scanner sdl sdl2 seccomp session smp sndfile source speex spell split-usr sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification subversion svg system-png system-sqlite tbb test-rust theora threads tiff truetype udev unicode urandom usb v4l v4l2 vaapi valgrind vc vdpau verify-sig vorbis vpx vulkan wayland webp wifi wmf x264 xattr xcb xcomposite xetex xft xinerama xorg xosd xscreensaver xtpax xv xvid zlib zstd" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" KERNEL="linux" L10N="en et et-EE" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11"
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, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

www-client/firefox-115.9.0::gentoo was built with the following:
USE="dbus eme-free hardened hwaccel lto openh264 pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-png system-webp wayland -X -clang -debug -geckodriver (-gmp-autoupdate) -jack -libproxy -pgo -screencast (-selinux) -sndio (-system-python-libs) -wifi" L10N="et -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 -eu -fa -ff -fi -fr -fur -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 -sc -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="-pipe -mtune=native"
CXXFLAGS="-pipe -mtune=native"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"

# emerge -pqv '=www-client/firefox-115.9.0::gentoo'
[ebuild   R   ] www-client/firefox-115.9.0  USE="dbus eme-free hardened hwaccel lto openh264 pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-png system-webp wayland -X -clang -debug -geckodriver (-gmp-autoupdate) -jack -libproxy -pgo -screencast (-selinux) -sndio (-system-python-libs) -wifi" L10N="et -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 -eu -fa -ff -fi -fr -fur -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 -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
Comment 1 Jaak Ristioja 2024-03-27 14:53:59 UTC
I'm also getting identical errors from installing mail-client/thunderbird-115.9.0:

>>> Install mail-client/thunderbird-115.9.0 into /var/tmp/portage/mail-client/thunderbird-115.9.0/image
 * XATTR_PAX marking -m /var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build/dist/bin/xpcshell with paxctl-ng
 * XATTR_PAX marking -m /var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build/dist/bin/thunderbird with paxctl-ng
 * XATTR_PAX marking -m /var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build/dist/bin/plugin-container with paxctl-ng
 0:00.58 /usr/bin/gmake -C . -j16 -s -w install
 0:00.62 gmake: Entering directory '/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build'
 0:00.62 gmake[1]: Entering directory '/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build/comm/mail/installer'
 0:08.45 ../../../dist/thunderbird/libxul.so: terminate called after throwing an instance of 'std::runtime_error'
 0:08.45   what():  Segments overlap
 0:08.94 Traceback (most recent call last):
 0:08.94   File "/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/toolkit/mozapps/installer/packager.py", line 295, in <module>
 0:08.94     main()
 0:08.94   File "/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/toolkit/mozapps/installer/packager.py", line 290, in main
 0:08.94     copier.copy(args.destination)
 0:08.94   File "/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/python/mozbuild/mozpack/copier.py", line 432, in copy
 0:08.94     copy_results.append((destfile, f.copy(destfile, skip_if_older)))
 0:08.94                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:08.94   File "/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/python/mozbuild/mozpack/files.py", line 320, in copy
 0:08.94     elfhack(dest)
 0:08.94   File "/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/python/mozbuild/mozpack/executables.py", line 140, in elfhack
 0:08.94     errors.fatal("Error executing " + " ".join(cmd))
 0:08.94   File "/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/python/mozbuild/mozpack/errors.py", line 115, in fatal
 0:08.94     self._handle(self.FATAL, msg)
 0:08.94   File "/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/python/mozbuild/mozpack/errors.py", line 110, in _handle
 0:08.94     raise ErrorMessage(msg)
 0:08.94 mozpack.errors.ErrorMessage: error: Error executing /var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build/build/unix/elfhack/elfhack ../../../dist/thunderbird/libxul.so
 0:08.99 gmake[1]: *** [/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/toolkit/mozapps/installer/packager.mk:25: stage-package] Error 1
 0:08.99 gmake[1]: Leaving directory '/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build/comm/mail/installer'
 0:08.99 gmake: *** [/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird-115.9.0/comm/mail/build.mk:18: install] Error 2
 0:08.99 gmake: Leaving directory '/var/tmp/portage/mail-client/thunderbird-115.9.0/work/thunderbird_build'
Comment 2 Joonas Niilola gentoo-dev 2024-04-05 13:06:21 UTC
This looks like it's caused by the mess with 23.0 profiles and -z,pack-relative-relocs. Should be fixed now. Although weird that you got to install phase, it used to die while linking.