Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597076 - sys-devel/clang-3.9.0 on armv7a-hardfloat-linux-musleabi: wrong dynamic linker name
Summary: sys-devel/clang-3.9.0 on armv7a-hardfloat-linux-musleabi: wrong dynamic linke...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2016-10-13 21:42 UTC by Felix Janda
Modified: 2018-03-29 08:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Upstream patch (clang-3.9.0-musl.patch,3.85 KB, patch)
2016-10-13 21:42 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Janda 2016-10-13 21:42:33 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-17 18:11:19 UTC
Let's wait for upstream reply on my patch to the other issue, and then merge both of them.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-12-14 21:43:48 UTC
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 ***
Comment 3 Felix Janda 2016-12-14 23:38:31 UTC
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.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-12-15 08:32:54 UTC
Ah, sorry, my bad.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-29 08:40:45 UTC
The fix seems to be present in 4+.