Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 886449

Summary: crossdev target aarch64-unknown-linux-gnu fails to build stage on bare clang
Product: Gentoo Linux Reporter: acertig04
Component: ProfilesAssignee: Cross compilation support <cross>
Status: UNCONFIRMED ---    
Severity: normal CC: immoloism, llvm, toolchain
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: clang crossdev aarch64-unknown-linux-gnu stage1 build log
emerge info

Description acertig04 2022-12-17 02:26:03 UTC
After playtesting with clang building some targets with crossdev, I found none of them went past stage1. Specifically on aarch64-unknown-linux-gnu, which eventually worked with gcc. Seems like it libcc on /lib but then looks for it in /lib64, which doesnt exist. Attachment contains the stage1 log from crossdev --stable -s4 -t aarch64-unknown-linux-gnu.
Comment 1 acertig04 2022-12-17 02:34:25 UTC
Created attachment 843179 [details]
clang crossdev aarch64-unknown-linux-gnu stage1 build log
Comment 2 immolo 2022-12-17 02:43:00 UTC
After discussing this on IRC there is a possibility this might due to the fix in  https://bugs.gentoo.org/652724#c18 only detecting GCC and not clang as I've run into a similar issue with Musl on MIPS.


I'll highlight the code below:

https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/glibc/glibc-2.36-r5.ebuild#n1406
Comment 3 acertig04 2022-12-17 02:45:52 UTC
Created attachment 843180 [details]
emerge info