Created attachment 594916 [details] build.log Hi, While trying to stabilize bug #692932, =dev-libs/glib-2.60.6 emerged successfully on my ia64 workstation but enabling FEATURES=test make it fails test gio/tests/test_resources. From build.log: [672/1135] /var/tmp/portage/dev-libs/glib-2.60.6/temp/glib-test-ld-wrapper -r -b binary gio/tests/test5.gresource -o gio/tests/test_resources.o FAILED: gio/tests/test_resources.o /var/tmp/portage/dev-libs/glib-2.60.6/temp/glib-test-ld-wrapper -r -b binary gio/tests/test5.gresource -o gio/tests/test_resources.o ld: failed to merge target specific data of file gio/tests/test5.gresource Please let me know how/if I can help further to diagnose the problem. Thanks, Émeric
Created attachment 594918 [details] environment
emerge --info output: Portage 2.3.76 (python 3.6.9-final-0, default/linux/ia64/17.0/desktop/gnome/systemd, gcc-8.3.0, glibc-2.29-r2, 4.19.72-gentoo ia64) ================================================================= System uname: Linux-4.19.72-gentoo-ia64-Madison-with-gentoo-2.6 KiB Mem: 24981712 total, 21255520 free KiB Swap: 499696 total, 499696 free Timestamp of repository gentoo: Sun, 27 Oct 2019 15:30:01 +0000 Head commit of repository gentoo: f39b48f3c96f1881eea8ba2bd5b3c0e19e091c4a sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 4.4_p23-r1::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo dev-util/cmake: 3.14.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 8.3.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="ia64" ACCEPT_LICENSE="@FREE" CBUILD="ia64-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="ia64-unknown-linux-gnu" CONFIG_PROTECT="/etc /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="-O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/" LANG="fr_FR.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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" USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dri dts dvdr eds encode evo exif fam flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret libtirpc mad mng mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl spell split-usr ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2018" ALSA_CARDS="fm801" 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" 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" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
emerge -pqv output: [ebuild R ] dev-libs/glib-2.60.6 USE="dbus (mime) test* xattr -debug (-fam) -gtk-doc (-selinux) -static-libs -systemtap -utils"
glib-test-ld-wrapper is simply a wrapper around "ld" to honor the "${LD}" env var where the linker is supposed to be (so it works for multilib builds with meson otherwise hardcoding it to just "ld" without CHOST). So you have essentially the ld -r -b binary gio/tests/test5.gresource -o gio/tests/test_resources.o command failing. See what it tells after failure when you launch it manually in the build dir where test_resources.o resides in a that subdir
(In reply to Mart Raudsepp from comment #4) > glib-test-ld-wrapper is simply a wrapper around "ld" to honor the "${LD}" > env var where the linker is supposed to be (so it works for multilib builds > with meson otherwise hardcoding it to just "ld" without CHOST). > So you have essentially the > > ld -r -b binary gio/tests/test5.gresource -o gio/tests/test_resources.o > > command failing. See what it tells after failure when you launch it manually > in the build dir where test_resources.o resides in a that subdir Manually running ld -r -b binary gio/tests/test5.gresource -o gio/tests/test_resources.o gives: ld: failed to merge target specific data of file gio/tests/test5.gresource Does it help?
Not really, this feels like an architecture specific issue to me. Perhaps toolchain can help. This is the kind of stuff that needs an architecture team imho for an arch to be supported... In any case, lets not block hppa stabilizing things due to it.
It is likely ia64-specific ld bug. Most of linkers can manage to embed arbitrary data into an ELF (or COFF) file: $ echo hi > hello.123 $ for ld in /usr/bin/*-ld; do echo $ld; $ld -r -b binary hello.123 -o hello.o; done /usr/bin/aarch64-unknown-linux-gnu-ld /usr/bin/aarch64_be-unknown-linux-gnu-ld /usr/bin/alpha-unknown-linux-gnu-ld /usr/bin/arm-none-eabi-ld /usr/bin/armv5tel-softfloat-linux-gnueabi-ld /usr/bin/armv6j-unknown-linux-gnueabihf-ld /usr/bin/armv7a-unknown-linux-gnueabihf-ld /usr/bin/avr-ld /usr/bin/hppa-unknown-linux-gnu-ld /usr/bin/hppa2.0-unknown-linux-gnu-ld /usr/bin/hppa64-unknown-linux-gnu-ld /usr/bin/i686-w64-mingw32-ld /usr/bin/ia64-unknown-linux-gnu-ld /usr/bin/ia64-unknown-linux-gnu-ld: failed to merge target specific data of file hello.123 /usr/bin/m68k-unknown-linux-gnu-ld /usr/bin/mips-unknown-linux-gnu-ld /usr/bin/mips64-unknown-linux-gnu-ld /usr/bin/mips64-unknown-linux-gnuabin64-ld /usr/bin/mips64el-unknown-linux-gnu-ld /usr/bin/mips64el-unknown-linux-gnuabin64-ld /usr/bin/mipsel-elf-ld /usr/bin/mipsel-unknown-linux-gnu-ld /usr/bin/mmix-ld Segmentation fault (core dumped) /usr/bin/msp430-elf-ld /usr/bin/msp430-elf-ld: --relax and -r may not be used together /usr/bin/nios2-unknown-linux-gnu-ld /usr/bin/powerpc-unknown-linux-gnu-ld /usr/bin/powerpc64-unknown-linux-gnu-ld /usr/bin/powerpc64le-unknown-linux-gnu-ld /usr/bin/riscv64-unknown-linux-gnu-ld /usr/bin/s390-unknown-linux-gnu-ld /usr/bin/s390x-unknown-linux-gnu-ld /usr/bin/sh4-unknown-linux-gnu-ld /usr/bin/sparc-unknown-linux-gnu-ld /usr/bin/sparc64-unknown-linux-gnu-ld /usr/bin/vax-unknown-linux-gnu-ld /usr/bin/wasm-ld wasm-ld: error: unknown argument: -b wasm-ld: error: cannot open binary: No such file or directory wasm-ld: error: unknown file type: hello.123 /usr/bin/x86_64-HEAD-linux-gnu-ld /usr/bin/x86_64-UNREG-linux-gnu-ld /usr/bin/x86_64-gentoo-linux-musl-ld /usr/bin/x86_64-pc-linux-gnu-ld /usr/bin/x86_64-w64-mingw32-ld /usr/bin/xtensa-esp32-elf-ld /usr/bin/xtensa-esp32-elf-ld: --relax and -r may not be used together
Filed https://sourceware.org/PR25316 upstream.
Created attachment 600612 [details, diff] binutils-2.32-ia64-allow-binary-merge.patch If you feel adventurous try binutils-2.32-ia64-allow-binary-merge.patch. It should allow merging binary flavours.
Newer version of this patch is here: https://sourceware.org/ml/binutils/2019-12/msg00356.html
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06a60cd676554f19aac444144f4375d998b1fb50 commit 06a60cd676554f19aac444144f4375d998b1fb50 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-01-04 12:23:24 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-01-04 12:31:05 +0000 sys-devel/binutils: backport ia64 binary section merge, bug #699180 Single new patch: - Fix ld/PR25316 for the ia64 target by refusing to support binary merging. Should help =dev-libs/glib-2.60.6 test suite to embed .xml files into data section. Reported-by: Émeric Maschino Bug: https://bugs.gentoo.org/699180 Bug: https://sourceware.org/PR25316 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/binutils/Manifest | 2 + sys-devel/binutils/binutils-2.32-r2.ebuild | 439 +++++++++++++++++++++++++++ sys-devel/binutils/binutils-2.33.1-r1.ebuild | 433 ++++++++++++++++++++++++++ 3 files changed, 874 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48b1740ff60d507bcf54df8429614e99f31555ee commit 48b1740ff60d507bcf54df8429614e99f31555ee Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-01-04 21:08:07 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-01-04 21:08:18 +0000 sys-libs/binutils-libs: 2.33.1 bump up to patchset 2 Single new patch: - Fix ld/PR25316 for the ia64 target by refusing to support binary merging. Reported-by: Émeric Maschino Bug: https://bugs.gentoo.org/699180 Bug: https://sourceware.org/PR25316 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-libs/binutils-libs/Manifest | 1 + .../binutils-libs/binutils-libs-2.33.1-r1.ebuild | 120 +++++++++++++++++++++ 2 files changed, 121 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a577c8f5bcf8864f0bade3e5e66396efc13581c commit 2a577c8f5bcf8864f0bade3e5e66396efc13581c Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-01-05 12:19:02 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-01-05 12:19:28 +0000 sys-devel/binutils: stable 2.32-r2 on ia64, bug #699180 Bug: https://bugs.gentoo.org/699180 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/binutils/binutils-2.32-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Just checked: =dev-libs/glib-2.60.7 emerged successfully, including tests with =sys-devel/binutils-2.32-r2. Thanks!