Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939738 - sys-devel/llvm: 18.1.8-r1 fails to build on amd64-musl under WSL 2
Summary: sys-devel/llvm: 18.1.8-r1 fails to build on amd64-musl under WSL 2
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 11:25 UTC by Karl Pettersson
Modified: 2024-09-21 13:26 UTC (History)
2 users (show)

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


Attachments
Build log, with output of emerge --info and emerge -pqv (llvm_build.tar.xz,61.11 KB, application/x-compressed)
2024-09-16 11:25 UTC, Karl Pettersson
Details
build.log.tgz (build.log.tgz,62.54 KB, application/x-gzip)
2024-09-16 15:12 UTC, 2857
Details
(empty) (file_939738.txt,7 bytes, text/plain)
2024-09-21 13:26 UTC, 2857
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Pettersson 2024-09-16 11:25:24 UTC
Created attachment 903106 [details]
Build log, with output of emerge --info and emerge -pqv

Since Friday (2024-09-13), llvm-18.1.8 does not build on a musl-based Gentoo, which I have used under WSL 2 since February without any problems before.

Build logs are attached. The FAILED lines in the main build log all seem related to tablegen generated files for AMDGPU.

Switching from r1 to r4 gives the same failure.
Comment 1 2857 2024-09-16 15:10:16 UTC
Failure looks the same as in bug 939746:

[1671/3494] cd /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64 && /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/bin/llvm-tblgen -gen-asm-matcher -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/include -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc -d lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc.d
ninja: build stopped: subcommand failed.
 * ERROR: sys-devel/llvm-18.1.8-r1::gentoo failed (compile phase):
 *   ninja -v -j4 -l4 distribution failed
Comment 2 2857 2024-09-16 15:12:39 UTC
Created attachment 903112 [details]
build.log.tgz
Comment 3 2857 2024-09-16 15:15:17 UTC
Sorry, I've messed up two browser tabs and uploaded build.log from my bug, but the failure is essentially the same.
Comment 4 Karl Pettersson 2024-09-17 14:52:21 UTC
Building llvm from llvmorg-18.1.8 tarball on Github (https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/llvm-project-18.1.8.src.tar.xz) also fails on the AMDGPU files. It works if only the X86 target is enabled. However, building llvm 19.1.0 (released today), works with all targets enabled.
Comment 5 Karl Pettersson 2024-09-19 08:36:49 UTC
Now, llvm-19.1.0 is testing on amd64, but many packages do not have the 19 slot.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-21 02:00:16 UTC
There's a history of tblgen being miscompiled. But your compiler flags look vanilla to me. Did you change them recently?
Comment 7 2857 2024-09-21 13:26:16 UTC
Created attachment 903497 [details]
(empty)