Created attachment 444276 [details, diff]
sys-libs/musl ldconfig doesn't work for softfloat ARM because it assumes ARM is hardfloat: arm) arch="armhf";; # We only have hardfloat right now
A Patch is attached that checks if the __ARM_PCS_VFP macro is defined and if it is ARM is hardfloat, otherwise ARM is softfloat.
Thanks for your patch! It would be nice to have a solution for all
architectures without replicating the logic of musl's configure
Recent versions of musl's dynamic linker report the architecture name
used for the dynamic linker name. For example:
musl libc (armhf)
Dynamic Program Loader
Usage: /usr/lib/libc.so [options] [--] pathname [args]
$ ls /lib/ld-*
Could you investigate rewriting ldconfig and the musl ebuild to reuse
that information? (See also the TODO in the musl ebuild.)
On the other hand, how have you setup a gentoo arm softfloat system?
(In reply to Felix Janda from comment #1)
> Could you investigate rewriting ldconfig and the musl ebuild to reuse
> that information? (See also the TODO in the musl ebuild.)
especially for ldconfig we can't be invoking the compiler as you do in that patch for the musl ebuild via $(tc-getCPP). parsing out the architecture from the output of /usr/lib/libc.so will work as Felix suggested.
sys-libs/musl-1.1.15-r1, which should fix this bug, is now in the tree.
@Laine, could you test whether it works for you?
works fine on sys-libs/musl-9999