Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696236 - sys-libs/musl fails to cross compile with ERROR: sys-libs/musl-1.1.23::gentoo failed (install phase)
Summary: sys-libs/musl fails to cross compile with ERROR: sys-libs/musl-1.1.23::gentoo...
Status: RESOLVED DUPLICATE of bug 645626
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-04 17:26 UTC by tt_1
Modified: 2019-10-04 17:44 UTC (History)
0 users

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


Attachments
compressed build log (musl-1.1.23-cross.log.gz,31.71 KB, application/gzip)
2019-10-04 17:26 UTC, tt_1
Details
output of cross emerge --info (emerge-info,5.28 KB, text/plain)
2019-10-04 17:28 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2019-10-04 17:26:41 UTC
Created attachment 591856 [details]
compressed build log

this is from a cross-compiler chroot, set up from native musl amd64 system with: crossdev -S armv7a-unknown-linux-musleabihf --libc 1.1.23, followed by emerge-armv7a-unknown-linux-muselabihf -av =musl-1.1.23

quote from the build log: 

 * ERROR: sys-libs/musl-1.1.23::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 2305:  Called die
 * The specific snippet of code:
 *           [[ -e "${D}"/lib/ld-musl-${arch}.so.1 ]] || die;
 * 

compressed log is attached
Comment 1 tt_1 2019-10-04 17:28:26 UTC
Created attachment 591858 [details]
output of cross emerge --info
Comment 2 tt_1 2019-10-04 17:31:54 UTC
I think the problem is most likely this line: 

https://github.com/gentoo/gentoo/blob/master/sys-libs/musl/musl-1.1.23.ebuild#L101

value for ${arch} is broken on the next line, it should be armhf 

honestly, I don't understand the fancy sed kungfu, and why it's causing this mess. 

local workaround is to go to line 102 and hard code the value of ${arch} to armhf to the time being, this makes the ebuild cross emerge just fine.
Comment 3 tt_1 2019-10-04 17:44:33 UTC
whopsy, been reported more than a year ago.

*** This bug has been marked as a duplicate of bug 645626 ***