Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854474 - sys-devel/mold-1.3.0 fails to prepare
Summary: sys-devel/mold-1.3.0 fails to prepare
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-26 19:44 UTC by Leandro Hoshiko
Modified: 2022-06-29 07:34 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leandro Hoshiko 2022-06-26 19:44:20 UTC
sys-devel/mold-1.3.0 fails to prepare:

 * Package:    sys-devel/mold-1.3.0
 * Repository: gentoo
 * Maintainer: sam@gentoo.org matthew@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mold-1.3.0.tar.gz to /var/tmp/portage/sys-devel/mold-1.3.0/work
>>> Source unpacked in /var/tmp/portage/sys-devel/mold-1.3.0/work
>>> Preparing source in /var/tmp/portage/sys-devel/mold-1.3.0/work/mold-1.3.0 ...
 * Applying mold-1.2.1-install-nopython.patch ...
 [ ok ]
 * Applying mold-1.3.0-openssl-pkgconfig.patch ...
 [ ok ]
rm: cannot remove 'test/elf/hello-static-pie.sh': No such file or directory
 * ERROR: sys-devel/mold-1.3.0::gentoo failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_prepare
 *   environment, line 1203:  Called die
 * The specific snippet of code:
 *           rm test/elf/{hello,ifunc}-static-pie.sh || die;
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/mold-1.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/mold-1.3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/mold-1.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/mold-1.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/mold-1.3.0/work/mold-1.3.0'
 * S: '/var/tmp/portage/sys-devel/mold-1.3.0/work/mold-1.3.0'

That's because upstream has renamed the file test/elf/hello-static-pie.sh to test/elf/static-pie.sh in commit https://github.com/rui314/mold/commit/d7148197591f837988f9662e1f92d5ff559f9482
Comment 1 Leandro Hoshiko 2022-06-26 19:46:41 UTC
Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.34-r13, 5.18.5-gentoo-clang-lto-prjc x86_64)
=================================================================
System uname: Linux-5.18.5-gentoo-clang-lto-prjc-x86_64-AMD_Ryzen_7_3800X_8-Core_Processor-with-glibc2.34
KiB Mem:    32784312 total,  26254396 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 26 Jun 2022 18:31:37 +0000
Head commit of repository gentoo: cb4c0a177468bb5ab2ff7e8d4a99d3db33945842

Timestamp of repository brother-overlay: Wed, 22 Jun 2022 16:10:34 +0000
Head commit of repository brother-overlay: 644bbb3ee2e30f2ddb23a52418f1e871024837e1

Timestamp of repository guru: Sat, 25 Jun 2022 00:47:39 +0000
Head commit of repository guru: 4be19bbedfc28ab8927fde158ca46f12f47f7e14

Timestamp of repository steam-overlay: Wed, 22 Jun 2022 16:10:29 +0000
Head commit of repository steam-overlay: 6994f5819092054f41d0e92748b8687487a7f2a5

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-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.5::gentoo
dev-lang/rust:             1.60.0::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.4::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.4::gentoo
sys-devel/llvm:            14.0.4::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

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

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=13"
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 -O2 -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 -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ http://gentoo.c3sl.ufpr.br/"
LANG="pt_BR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13 -l13"
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 activities alsa amd64 bluetooth branding bzip2 cairo caps cdda cdr cli colord crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 readline samba screencast sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wayland widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a 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="pt-BR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" 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 pypy3" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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
Comment 2 tt_1 2022-06-27 06:51:15 UTC
thats because ../test/elf/hello-static-pie.sh has been removed, or renamed. 

if you need a quick workaround and you don't want to run the testsuite, it should be sufficent to just remove the line.
Comment 3 Michael Orlitzky gentoo-dev 2022-06-27 12:38:43 UTC
It got renamed:

https://github.com/rui314/mold/commit/d7148197591f837988f9662e1f92d5ff559f9482
Comment 4 awilum 2022-06-27 16:46:16 UTC
Hello,

I did this to the mold-1.3.0 to patch the problem
---
        # static-pie tests require glibc built with static-pie support
        # if ! has_version -d 'sys-libs/glibc[static-pie(+)]'; then
        #       rm test/elf/{hello,ifunc}-static-pie.sh || die
        # fi

        # static-pie tests require glibc built with static-pie support
        if ! has_version -d 'sys-libs/glibc[static-pie(+)]'; then
                rm test/elf/ifunc-static-pie.sh || die
                rm test/elf/static-pie.sh || die
        fi
---

Best regards
Comment 5 Larry the Git Cow gentoo-dev 2022-06-29 07:34:55 UTC
The bug has been closed via the following commit(s):

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

commit ed0103e1efc72ff81c5cdc894fe3d81851b5637b
Author:     Matthew Smith <matthew@gentoo.org>
AuthorDate: 2022-06-29 07:32:18 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2022-06-29 07:34:27 +0000

    sys-devel/mold: fix prepare phase when glibc has no static-pie
    
    Closes: https://bugs.gentoo.org/854474
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 sys-devel/mold/mold-1.3.0.ebuild | 2 +-
 sys-devel/mold/mold-9999.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)