subversion fails to compile on an "armv5tel" architecture using GCC 13: ... cd subversion/svnadmin && /bin/sh "/var/tmp/portage/dev-vcs/subversion-1.14.2-r1/work/subversion-1.14.2/libtool" --tag=CC --silent --mode=link armv5tel-softfloat-linux-gnueabi-gcc -shared -O2 -pipe -march=armv5te -mcpu=arm926ej-s -fomit-frame-pointer -O2 -pipe -march=armv5te -mcpu=arm926ej-s -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed -rpath /usr/lib -o svnadmin svnadmin.lo ../../subversion/libsvn_repos/libsvn_repos-1.la ../../subversion/libsvn_fs/libsvn_fs-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la -laprutil-1 -lapr-1 /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../../armv5tel-softfloat-linux-gnueabi/bin/ld: /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../libapr-1.so: undefined reference to `__atomic_fetch_sub_8' /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../../armv5tel-softfloat-linux-gnueabi/bin/ld: /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../libapr-1.so: undefined reference to `__atomic_exchange_8' /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../../armv5tel-softfloat-linux-gnueabi/bin/ld: /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../libapr-1.so: undefined reference to `__atomic_store_8' /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../../armv5tel-softfloat-linux-gnueabi/bin/ld: /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../libapr-1.so: undefined reference to `__atomic_load_8' /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../../armv5tel-softfloat-linux-gnueabi/bin/ld: /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../libapr-1.so: undefined reference to `__atomic_compare_exchange_8' /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../../armv5tel-softfloat-linux-gnueabi/bin/ld: /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/13/../../../libapr-1.so: undefined reference to `__atomic_fetch_add_8' collect2: error: ld returned 1 exit status Reproducible: Always Portage 3.0.47 (python 3.11.3-final-0, default/linux/arm/17.0/armv5te, gcc-13, glibc-2.37-r2, 5.16.13 armv5tel) ================================================================= System Settings ================================================================= System uname: Linux-5.16.13-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-glibc2.37 KiB Mem: 508912 total, 86484 free KiB Swap: 3145724 total, 3140252 free Timestamp of repository gentoo: Sat, 06 May 2023 08:30:01 +0000 Head commit of repository gentoo: 4e0f14d9677f9e282b87d60cf33ae09dc348f353 sh bash 5.2_p15-r2 ld GNU ld (Gentoo 2.40 p4) 2.40.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r2::gentoo dev-lang/perl: 5.36.1-r1::gentoo dev-lang/python: 3.11.3::gentoo dev-util/cmake: 3.26.3::gentoo dev-util/meson: 1.1.0::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/openrc: 0.47.1::gentoo sys-apps/sandbox: 2.30-r1::gentoo sys-devel/autoconf: 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r4::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 13.1.0-r1::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/make: 4.4.1::gentoo sys-kernel/linux-headers: 6.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: --exclude ChangeLog --delete-excluded --delete-during ACCEPT_KEYWORDS="amd64 arm ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="armv5tel-softfloat-linux-gnueabi" CFLAGS="-O2 -pipe -march=armv5te -mcpu=arm926ej-s -fomit-frame-pointer" CHOST="armv5tel-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=armv5te -mcpu=arm926ej-s -fomit-frame-pointer" DISTDIR="/etc/portage/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="-O2 -pipe -march=armv5te" 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="-O2 -pipe -march=armv5te" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded --delete-during" 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="arm bash-completion bzip2 caps cli crypt dlz dri gdbm iconv libglvnd ncurses nptl pam pcre readline seccomp split-usr ssl unicode usb xattr xxhash zlib zstd" ADA_TARGET="gnat_2021" 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_ARM="edsp thumb v4 v5" 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" INPUT_DEVICES="libinput" KERNEL="linux" 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_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-vcs/subversion-1.14.2-r1::gentoo was built with the following: USE="-apache2 -berkdb -debug -doc -extras -gnome-keyring (-java) -kwallet -nls -perl -plaintext-password-storage -ruby -sasl -test" FEATURES="network-sandbox assume-digests parallel-fetch unmerge-logs strict binpkg-dostrip qa-unresolved-soname-deps xattr distlocks unknown-features-warn preserve-libs multilib-strict sfperms merge-sync buildpkg-live sandbox userpriv news unmerge-orphans fixlafiles config-protect-if-modified pid-sandbox ipc-sandbox binpkg-logs protect-owned usersandbox ebuild-locks binpkg-docompress usersync userfetch"
Created attachment 861845 [details] build log
Should be fixed by this from yesterday: commit ad634152ee4e5b0d5fa1002c2fa1dc0cd7755351 Author: Sam James <sam@gentoo.org> Date: Sat Sep 23 16:58:54 2023 +0100 dev-libs/apr: more robustly check for dodgy atomics Let's use append-atomic-libs, which is for this purpose, instead of hardcoding a brittle list of arches which isn't so accurate. Mariusz reported that armv6j at least suffered from this problem. Rather than shoving in 'use arm', let's just use the proper test. Bug: https://bugs.gentoo.org/740464 Tested-by: Mariusz Koniarz <mkoniarz@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>