Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736450 - =media-libs/mesa-20.1.5: unable to cross-compile due to llvm issues.
Summary: =media-libs/mesa-20.1.5: unable to cross-compile due to llvm issues.
Status: RESOLVED DUPLICATE of bug 662722
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: 2020-08-08 19:38 UTC by hanetzer
Modified: 2020-08-10 23:15 UTC (History)
0 users

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


Attachments
build.log, unedited eclass, qemu-binfmt not active. (build.log,14.90 KB, text/x-log)
2020-08-08 19:41 UTC, hanetzer
Details
build.log, unedited eclass, qemu-binfmt active (build.log,11.23 KB, text/x-log)
2020-08-08 19:42 UTC, hanetzer
Details
build.log, edited llvm.eclass (build.log.gz,44.81 KB, application/gzip)
2020-08-08 19:44 UTC, hanetzer
Details
aarch64-unknown-linux-musl-emerge --info media-libs/mesa (file_736450.txt,5.57 KB, text/plain)
2020-08-08 19:46 UTC, hanetzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanetzer 2020-08-08 19:38:22 UTC
cross-compiling mesa using crossdev (in this case, from x86_64-pc-linux-gnu
aarch64-unknown-linux-musl) fails in various ways.

1. failure during src_compile by trying to execute `/usr/aarch64-unknown-linux-musl/usr/lib/llvm/10/bin/aarch64-unknown-linux-musl-llvm-config` (its an arm64
binary).

2. with qemu-binfmt running meson seems unable to deal with it at all.

3. editing llvm.eclass (no qemu) to use get_llvm_prefix in llvm_pkg_setup
with the -b (for BROOT) flag gets past src_configure to src_compile but
fails, using headers from the BROOT.
/usr/lib/llvm/10/include/llvm/Config/llvm-config.h:51:3: error: #error "No ABI matched, please report a bug to bugs.gentoo.org", same error with binfmt.
Didn't actually expect this to work.

Reproducible: Always

Steps to Reproduce:
1. set up aarch64-unknown-linux-musl crossdev tree
2. set the profile to a hybrid musl+desktop profile (achieved
   with make.profile as an actual directory containing a parent
   file with these contents:
   gentoo:targets/desktop
   gentoo:default/linux/arm64/17.0/musl

3. attempt to emerge media-libs/musl
Actual Results:  
Varying cross-compilation errors.

Expected Results:  
Successfull cross-compile
Comment 1 hanetzer 2020-08-08 19:41:17 UTC
Created attachment 653836 [details]
build.log, unedited eclass, qemu-binfmt not active.
Comment 2 hanetzer 2020-08-08 19:42:08 UTC
Created attachment 653838 [details]
build.log, unedited eclass, qemu-binfmt active
Comment 3 hanetzer 2020-08-08 19:44:00 UTC
Created attachment 653840 [details]
build.log, edited llvm.eclass
Comment 4 hanetzer 2020-08-08 19:46:32 UTC
Created attachment 653842 [details]
aarch64-unknown-linux-musl-emerge --info media-libs/mesa
Comment 5 hanetzer 2020-08-10 14:59:21 UTC
(In reply to hanetzer from comment #0)
> 3. attempt to emerge media-libs/musl
media-libs/mesa
Comment 6 Matt Turner gentoo-dev 2020-08-10 23:15:04 UTC
Sorry for marking as a duplicate, since you have valuable information posted here. Please post it in the other bug as well.

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