Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939746 - sys-devel/llvm-18.1.8-r1 fails to build on arm64 llvm musl profile
Summary: sys-devel/llvm-18.1.8-r1 fails to build on arm64 llvm musl profile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 15:07 UTC by 2857
Modified: 2024-09-21 18:17 UTC (History)
2 users (show)

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


Attachments
emerge --info '=sys-devel/llvm-18.1.8-r1::gentoo' (file_939746.txt,6.80 KB, text/plain)
2024-09-16 15:09 UTC, 2857
Details
build.log.tgz (build.log.tgz,62.54 KB, application/x-gzip)
2024-09-16 15:14 UTC, 2857
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 2857 2024-09-16 15:07:53 UTC
rpi4, updating world with emerge -avuUDn @world and LLVM 18 is pulled in.

Reproducible: Always
Comment 1 2857 2024-09-16 15:09:01 UTC
Created attachment 903111 [details]
emerge --info '=sys-devel/llvm-18.1.8-r1::gentoo'
Comment 2 2857 2024-09-16 15:14:27 UTC
Created attachment 903113 [details]
build.log.tgz
Comment 3 2857 2024-09-16 15:15:54 UTC
This looks like a duplicate of bug 939738
Comment 4 Karl Pettersson 2024-09-16 15:32:53 UTC
Clear that it affects both AMD and ARM, on both gcc and llvm musl profiles.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-21 02:00:43 UTC
How about without -ftree-vectorize and -flto? tblgen has a history of being miscompiled...
Comment 6 2857 2024-09-21 18:17:08 UTC
@Sam: this is without -ftree-vectorize and -flto:

[1749/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-dag-isel -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/AMDGPUGenDAGISel.inc -d lib/Target/AMDGPU/AMDGPUGenDAGISel.inc.d
FAILED: lib/Target/AMDGPU/AMDGPUGenDAGISel.inc /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc 
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-dag-isel -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/AMDGPUGenDAGISel.inc -d lib/Target/AMDGPU/AMDGPUGenDAGISel.inc.d
[1750/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-disassembler -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/AMDGPUGenDisassemblerTables.inc -d lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc.d
FAILED: lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc 
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-disassembler -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/AMDGPUGenDisassemblerTables.inc -d lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc.d
[1751/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-global-isel -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/AMDGPUGISel.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc -d lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc.d
[1752/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-instr-info -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/AMDGPUGenInstrInfo.inc -d lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc.d
ninja: build stopped: subcommand failed.