gentoo / musl

[MIRROR] musl development overlay
https://gitweb.gentoo.org/proj/musl.git
99 stars 59 forks source link

dev-java/icedtea-bin issues with unsplitting orphaned debug symbols #428

Closed parona-source closed 3 years ago

parona-source commented 3 years ago

dev-java/icedtea-bin fails when trying to unsplit debug symbols due to the libraries that the debug symbols were splitted from being missing. libcompiledMethodLoad.so.debug and libgctest.so.debug to be specific.

Removing the debug unsplitting code or skipping just the mentioned debug symbols will bypass this, but then it will output a QA notice about unresolved soname dependencies. The binaries seem to work fine though, as i was able to build openjdk fine with it (ive yet to try icedtea due to unrelated issues with systemtap). This is from a fresh stage3-amd64-musl-hardened-20210313 derived chroot that has been fully rebuilt (emerge -e @world) once.

build.log with repeating lines truncated with ...

 * Package:    dev-java/icedtea-bin-3.18.0
 * Repository: musl
 * Maintainer: gyakovlev@gentoo.org java@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_musl gtk kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Package:    dev-java/icedtea-bin-3.18.0
 * Repository: musl
 * Maintainer: gyakovlev@gentoo.org java@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_musl gtk kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking icedtea-bin-3.18.0-x86_64.tar.gz to /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
...
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
>>> Unpacking icedtea-bin-3.18.0-jre-x86_64.tar.gz to /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
...
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
>>> Unpacking icedtea-bin-3.18.0-jre-base-x86_64.tar.gz to /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
...
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
>>> Unpacking icedtea-bin-3.18.0-jre-lib-x86_64.tar.gz to /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
...
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
>>> Unpacking icedtea-bin-3.18.0-doc-x86_64.tar.gz to /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
...
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
>>> Unpacking icedtea-bin-3.18.0-dbg-x86_64.tar.gz to /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
...
tar: Ignoring unknown extended header keyword 'APK-TOOLS.checksum.SHA1'
>>> Source unpacked in /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work
>>> Preparing source in /var/tmp/portage/dev-java/icedtea-bin-3.18.0/work ...
renamed 'usr/lib/debug' -> '/var/tmp/portage/dev-java/icedtea-bin-3.18.0/work/debug'
eu-unstrip: cannot open '/var/tmp/portage/dev-java/icedtea-bin-3.18.0/work/usr/lib/jvm/java-1.8-openjdk/demo/jvmti/compiledMethodLoad/lib/libcompiledMethodLoad.so': No such file or directory
 * ERROR: dev-java/icedtea-bin-3.18.0::musl failed (prepare phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_prepare
 *   environment, line 1934:  Called die
 * The specific snippet of code:
 *           eu-unstrip -o "${bin}" "${bin}" "${debug}" || die;
 *
 * If you need support, post the output of `emerge --info '=dev-java/icedtea-bin-3.18.0::musl'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/icedtea-bin-3.18.0::musl'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/icedtea-bin-3.18.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-bin-3.18.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/icedtea-bin-3.18.0/work/debug'
 * S: '/var/tmp/portage/dev-java/icedtea-bin-3.18.0/work'

QA notice after bypassing unsplitting debug symbols issue

* QA Notice: Unresolved soname dependencies:
 *
 *      /opt/icedtea-bin-3.18.0/bin/appletviewer: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/clhsdb: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/extcheck: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/hsdb: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/idlj: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jar: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jarsigner: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/java: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/javac: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/javadoc: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/javah: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/javap: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jcmd: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jconsole: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jdb: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jdeps: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jfr: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jhat: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jinfo: libc.musl-x86_64.so.1
  *      /opt/icedtea-bin-3.18.0/bin/jjs: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jmap: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jps: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jrunscript: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jsadebugd: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jstack: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jstat: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/jstatd: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/keytool: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/native2ascii: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/orbd: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/pack200: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/policytool: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/rmic: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/rmid: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/rmiregistry: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/schemagen: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/serialver: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/servertool: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/tnameserv: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/unpack200: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/wsgen: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/wsimport: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/bin/xjc: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/java: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/jjs: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/keytool: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/orbd: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/pack200: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/policytool: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/rmid: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/rmiregistry: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/servertool: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/tnameserv: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/bin/unpack200: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/jli/libjli.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libattach.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libawt.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libawt_headless.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libawt_xawt.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libdt_socket.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libfontmanager.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libhprof.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libinstrument.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libj2gss.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libj2krb5.so: libc.musl-x86_64.so.1 libkrb5.so.3
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libj2pcsc.so: libc.musl-x86_64.so.1 libpcsclite.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libj2pkcs11.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libj2sctp.so: libc.musl-x86_64.so.1 libsctp.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjaas_unix.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjava.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjava_crw_demo.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjavajpeg.so: libc.musl-x86_64.so.1 libjpeg.so.8
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjavalcms.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjdwp.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjsdt.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libjsig.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libmanagement.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libmlib_image.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libnet.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libnio.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libnpt.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libsplashscreen.so: libc.musl-x86_64.so.1 libjpeg.so.8
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libsunec.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libunpack.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libverify.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/libzip.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/amd64/server/libjvm.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/jre/lib/jexec: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/lib/amd64/jli/libjli.so: libc.musl-x86_64.so.1
 *      /opt/icedtea-bin-3.18.0/lib/jexec: libc.musl-x86_64.so.1

emerge --info

Portage 3.0.13 (python 3.8.8-final-0, default/linux/amd64/17.0/musl/hardened, gcc-10.2.0, musl-1.2.1-r2, 5.4.97-gentoo x86_64)
=================================================================
System uname: Linux-5.4.97-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-libc
KiB Mem:    32849216 total,   4049324 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 16 Mar 2021 14:30:01 +0000
Head commit of repository gentoo: 220df569b04687cedb633a001d95f8433feaf487
Timestamp of repository musl: Sat, 13 Mar 2021 21:51:11 +0000
Head commit of repository musl: b7b7d7d959da8a703744d9a7f3ece547aaf18b31

Head commit of repository testaus-overlay: eab47f8595070560f1a0e726ad630c7585cf4bdd

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
distcc 3.3.3 x86_64-gentoo-linux-musl [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::musl
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/musl:            1.2.1-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://192.168.1.200/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

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

testaus-overlay
    location: /var/db/repos/testaus-overlay
    sync-type: git
    sync-uri: https://gitlab.com/Parona/testaus-overlay
    masters: gentoo

ACCEPT_KEYWORDS="amd64"                                                                                                                          [3/1930]
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-linux-musl"
CFLAGS="-O3 -pipe -march=bdver2"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/te
rminfo"
CXXFLAGS="-O3 -pipe -march=bdver2"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask --autounmask --with-bdeps=y --load-average=8"
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_H
OME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O3 -pipe -march=bdver2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merg
e-sync mount-sandbox network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict un
known-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe -march=bdver2"
GENTOO_MIRRORS="https://mirrors.dotsrc.org/gentoo/ rsync://ftp.vectranet.pl/gentoo/"
INSTALL_MASK="charset.alias locale.alias"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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"
USE="acl amd64 bzip2 crypt hardened iconv ipv6 libglvnd libtirpc lto ncurses nls nptl openmp pam pcre pgo pie readline seccomp split-usr ssl ssp unicode
xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938
 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 a
uthz_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 lo
gio 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="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1
 sse4_2 sse4a ssse3 xopm" CURL_SSL="openssl" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itr
ax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="l
ibinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console pre
senter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postg
res10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="
quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude cha
os account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EX
TRA_OPTS
parona-source commented 3 years ago

libcompiledMethodLoad.so.debug and libgctest.so.debug to be specific.

Now it appears there is more, not sure if just bad methodology when i first looked at it or something changed.

Full list of orphaned debug symbols:

usr/lib/jvm/java-1.8-openjdk/demo/jvmti/compiledMethodLoad/lib/libcompiledMethodLoad.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/gctest/lib/libgctest.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/heapTracker/lib/libheapTracker.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/heapViewer/lib/libheapViewer.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/hprof/lib/libhprof.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/minst/lib/libminst.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/mtrace/lib/libmtrace.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/versionCheck/lib/libversionCheck.so.debug
usr/lib/jvm/java-1.8-openjdk/demo/jvmti/waiters/lib/libwaiters.so.debug

It appears that all debug symbols in usr/lib/jvm/java-1.8-openjdk/demo/jvmti are orphaned.

Something like this would workaround this, but would like to get some feedback before creating a pull request just in case there is more to this.

    for debug in **/*.debug; do
+       # Rudimentary skipping of orphaned debug symbols
+       if [[ "${debug}" =~ usr/lib/jvm/java-1.8-openjdk/demo/jvmti ]]; then
+           continue
+       fi
        bin="${strip_dir}/${debug%.debug}"
        eu-unstrip -o "${bin}" "${bin}" "${debug}" || die
    done
parona-source commented 3 years ago

Looks like a pull request has appeared that will fix this issue.

https://github.com/gentoo/musl/pull/429

I'll close this when its merged.