Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953459 - app-containers/containerd-2.0.3 - fatal error: cannot find ‘ld’
Summary: app-containers/containerd-2.0.3 - fatal error: cannot find ‘ld’
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on: 893956
Blocks:
  Show dependency tree
 
Reported: 2025-04-09 04:16 UTC by Leonid Kopylov
Modified: 2025-04-10 00:41 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,98.40 KB, application/x-xz)
2025-04-09 04:17 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2025-04-09 04:16:40 UTC
# emerge -pqv '=app-containers/containerd-2.0.3::gentoo'
[ebuild  N    ] app-containers/containerd-2.0.3  USE="apparmor btrfs cri device-mapper seccomp -hardened (-selinux) -test"

# emerge --info '=app-containers/containerd-2.0.3::gentoo'
Portage 3.0.67 (python 3.13.3-final-0, default/linux/arm64/23.0/desktop/gnome/systemd, gcc-14, glibc-2.41-r1, 6.14.0-gentoo-arm64 aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.14.0-gentoo-arm64-aarch64-with-glibc2.41
KiB Mem:    32814712 total,   6484216 free
KiB Swap:    8388604 total,   8387848 free
Timestamp of repository gentoo: Wed, 09 Apr 2025 03:00:00 +0000
Head commit of repository gentoo: 411a9d0f4f826c7bfc9dff734ff08d14ebb87e6e
Timestamp of repository HomeAssistantRepository: Mon, 19 Aug 2024 18:34:04 +0000
Head commit of repository HomeAssistantRepository: b3ac1445b4b7810c19215de5a8f5f32a4f70e45d

Head commit of repository SarahMiaOverlay: 30b125b12df1e333cd4951969dc258bb1ecef48b

Head commit of repository elementary: 0f3e16640e59fd959878719ee2ada96cee27946e

Timestamp of repository guru: Tue, 08 Apr 2025 19:50:25 +0000
Head commit of repository guru: 749c37f8e91aa211deaab3fba18babe23760ebd2

Head commit of repository inode64-overlay: cbd19de13bd68b75ab934c1ffa94d12b2fbc3af2

Head commit of repository kde: c62d32fb444ec25d3f8b34504740fdcd1d47f41c

Head commit of repository kodi-overlay: 47cb3cbd6c1a22e6af6d57cdb026dc71d1d9ce7d

Head commit of repository pentoo: 5e7d6229cff9f5cbc33441c77e0346c00853fb81

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
ccache version 4.11.2 [enabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo
dev-build/cmake:           3.31.6-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.1::gentoo
dev-lang/python:           3.10.17::gentoo, 3.11.12::gentoo, 3.12.10::gentoo, 3.13.3::gentoo, 3.13.3-r100::gentoo
dev-lang/rust:             1.85.1::gentoo
dev-lang/rust-bin:         1.81.0-r103::gentoo, 1.84.1-r2::gentoo, 1.85.1::gentoo
dev-util/ccache:           4.11.2::gentoo
llvm-core/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.2::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            15.0.7-r7::gentoo, 16.0.6-r5::gentoo, 17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.2::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-apps/systemd:          257.5::gentoo
sys-devel/binutils:        2.43-r2::gentoo, 2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20250301::gentoo, 14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

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

HomeAssistantRepository
    location: /var/db/repos/HomeAssistantRepository
    sync-type: git
    sync-uri: https://git.edevau.net/onkelbeh/HomeAssistantRepository.git
    masters: gentoo
    volatile: False

SarahMiaOverlay
    location: /var/db/repos/SarahMiaOverlay
    sync-type: git
    sync-uri: https://gitlab.com/SarahMia/sarahmiaoverlay.git
    masters: gentoo
    volatile: False

elementary
    location: /var/db/repos/elementary
    sync-type: git
    sync-uri: https://github.com/pimvullers/elementary.git
    masters: gentoo
    volatile: False

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

inode64-overlay
    location: /var/db/repos/inode64-overlay
    sync-type: git
    sync-uri: https://github.com/inode64/inode64-overlay.git
    masters: gentoo
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    volatile: False

kodi-overlay
    location: /var/db/repos/kodi-overlay
    sync-type: git
    sync-uri: https://github.com/kodi-overlay/kodi-overlay.git
    masters: gentoo
    volatile: False

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/arm64/binpackages/23.0/arm64

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="* -@EULA geekbench Microsoft-vscode TeamViewer Vivaldi"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
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="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j6"
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"
RUSTFLAGS=" -C target-cpu=native"
SHELL="/bin/bash"
USE="X a52 aac accessibility acl acpi activities alsa apparmor arm64 audit bash-completion berkdb bidi bluetooth branding brotli btrfs bzip2 cairo cdda cdr cli colord crypt cryptsetup cups curl dbus designer device-mapper doc dri drm dts dvd dvdr eds emacs encode evdev evo examples exif experimental ffmpeg flac fortran fuse gamepad gdbm gdk-pixbuf gif git gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnutls go gpg gpm gstreamer gtk gtk-doc gui hscolour html http iconv icu idn introspection iodbc ios ipv6 jack java javascript jemalloc joystick jpeg json kde kerberos keyring kf6compat lcms ldap libnotify libtirpc lua lvm lz4 lzma lzo mad man mbedtls mng mongodb mp3 mp4 mpeg mpi multimedia mysql nas nautilus ncurses netlink network networkmanager nfs nls nss odbc offensive ogg opengl openmp openssl pam pango pcap pcre pdf perl pkcs11 plasma plugins png policykit postgres ppds pulseaudio python qml qt5 qt6 readline redis samba sasl screencast sdl seccomp semantic-desktop snmp sound source speech spell sqlite ssl startup-notification svg symlink sysprof systemd tcl telemetry test-rust threads tiff tk tools tracker truetype udev udisks unicode upower usb utils v4l vala vim-syntax vnc vorbis vulkan wayland webengine webkit webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid yaml zeroconf zip zlib zsh-completion zstd" ADA_TARGET="gcc_14" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_file authn_socache authz_core authz_dbd authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex brotli cache cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir env expires ext_filter file_cache filter headers http2 ident imagemap include info log_config logio mime mime_magic negotiation ratelimit reqtimeout rewrite session session_cookie session_crypto session_dbd setenvif socache_shmcb speling status substitute unique_id unixd userdir usertrack version vhost_alias watchdog xml2enc" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 asimddp v8" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1 lua5-4" NGINX_MODULES_HTTP="access addition auth_basic auth_ldap auth_pam auth_request autoindex brotli browser charset dav dav_ext echo empty_gif fancyindex fastcgi flv geo geoip geoip2 grpc gunzip gzip image_filter javascript limit_conn limit_req map memc memcached metrics mirror mp4 perl proxy push_stream referer rewrite scgi split_clients ssi stub_status upload_progress upstream_check upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi vhost_traffic_status vod xslt" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_STREAM="access geo geoip geoip2" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2 php8-3" POSTGRES_TARGETS="postgres16 postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_12 python3_10 python3_11 python3_13 python3_13t" RUBY_TARGETS="ruby32 ruby33 ruby34" UWSGI_PLUGINS="alarm_curl cache carbon cheaper_busyness clock_monotonic clock_realtime corerouter curl_cron dumbloop echo emperor_amqp emperor_pg emperor_zeromq fastrouter forkptyrouter geoip graylog2 http ldap legion_cache_fetch logcrypto logfile logpipe logsocket mongodblog nagios notfound pam ping rados rawrouter redislog router_access router_basicauth router_cache router_expires router_hash router_http router_memcached router_metrics router_redirect router_redis router_rewrite router_spnego router_static router_uwsgi router_xmldir rpc rrdtool rsyslog signal spooler sqlite ssi sslrouter stats_pusher_statsd symcall syslog systemd_logger transformation_chunked transformation_gzip transformation_offload transformation_tofile transformation_toupper tuntap ugreen webdav xattr xslt zabbix zergpool" VIDEO_CARDS="virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Leonid Kopylov 2025-04-09 04:17:09 UTC
Created attachment 924170 [details]
build.log.xz
Comment 2 Leonid Kopylov 2025-04-09 06:21:35 UTC
builds on amd64, but fails on arm64
Comment 3 Mike Gilbert gentoo-dev 2025-04-09 15:53:51 UTC
It looks like it is calling gcc with -fuse-ld=gold.

The gold linker is masked in binutils, so this is unlikely to work on most systems.
Comment 4 Mike Gilbert gentoo-dev 2025-04-09 15:56:17 UTC
I think dev-lang/go needs to be updated to not depend on sys-devel/binutils[gold] for arm/arm64.
Comment 5 Mike Gilbert gentoo-dev 2025-04-09 15:58:36 UTC
Ah, you probably need to select binutils 2.43-r2 using binutils-config.

binutils 2.44 does not support gold at all (not even with the unmasking in the arm64 profile).
Comment 6 Leonid Kopylov 2025-04-09 16:04:38 UTC
(In reply to Mike Gilbert from comment #5)
> Ah, you probably need to select binutils 2.43-r2 using binutils-config.
> 
> binutils 2.44 does not support gold at all (not even with the unmasking in
> the arm64 profile).

# binutils-config -l
 [1] aarch64-unknown-linux-gnu-2.43 *
 [2] aarch64-unknown-linux-gnu-2.44

yes, switching to 2.43 allows app-containers/containerd to build
Comment 7 Larry the Git Cow gentoo-dev 2025-04-10 00:39:33 UTC
The bug has been closed via the following commit(s):

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

commit f55732a438fb996fc8e4fdc8e6576f5d9946532d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-10 00:38:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-10 00:39:16 +0000

    dev-lang/go: don't default to -fuse-ld=gold on arm64
    
    Don't default to -fuse-ld=gold on arm64. The gold linker is deprecated in
    GNU Binutils and the referenced bfd bug which led to this default being
    added is long-fixed.
    
    Closes: https://bugs.gentoo.org/893956
    Closes: https://bugs.gentoo.org/953459
    Signed-off-by: Sam James <sam@gentoo.org>

 .../go/files/go-1.24-dont-force-gold-arm.patch     |  55 +++++++++
 dev-lang/go/go-1.24.2-r1.ebuild                    | 132 +++++++++++++++++++++
 dev-lang/go/go-9999.ebuild                         |   4 +-
 3 files changed, 188 insertions(+), 3 deletions(-)
Comment 8 Larry the Git Cow gentoo-dev 2025-04-10 00:41:51 UTC
The bug has been referenced in the following commit(s):

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

commit d64408bff678ad239582d8edf8d995780081174a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-10 00:40:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-10 00:40:55 +0000

    profiles/arch: tweak binutils[gold] masks
    
    (un)mask <sys-devel/binutils-2.44[gold] in a few places instead as it
    got removed in 2.44.
    
    Bug: https://bugs.gentoo.org/953459
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/arm/package.use.mask   | 2 +-
 profiles/arch/arm64/package.use.mask | 2 +-
 profiles/arch/loong/package.use.mask | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)