Created attachment 450180 [details, diff] Upstream patch As mentioned in https://bugs.gentoo.org/show_bug.cgi?id=595834#c8 clang-3.9.0 does not use the correct dynamic linker name for CHOST="armv7a-hardfloat-linux-musleabi": It tries to use "ld-musl-armv7a.so.1" instead of "ld-musl-armhf.so.1". Bug 595834 is concerned with the "hf" part. The problem addressed by this bug is that "armv7a" is used instead of "arm". This issue has already been fixed upstream but it would be nice to add the patch to the tree.
Let's wait for upstream reply on my patch to the other issue, and then merge both of them.
I'm going to collapse the two bugs since they have a common cause. *** This bug has been marked as a duplicate of bug 595834 ***
Even if the arm tuple is changed from armv7a-hardfloat-linux-musleabi to armv7a-unknown-linux-musleabihf the patch attached to this bug is still necessary (for version 3.9.0) in order that the dynamic linker "ld-musl-armhf.so.1" instead of the non-existing "ld-musl-armv7ahf.so.1" is used.
Ah, sorry, my bad.
The fix seems to be present in 4+.