Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

libclc: spirv64-mesa3d-.spv fails to build ( Unknown attribute kind (68) ) #51167

Open Quuxplusone opened 3 years ago

Quuxplusone commented 3 years ago
Bugzilla Link PR52200
Status NEW
Importance P release blocker
Reported by Sylvestre Ledru (sylvestre@debian.org)
Reported on 2021-10-17 12:22:25 -0700
Last modified on 2021-10-18 07:13:02 -0700
Version unspecified
Hardware PC Linux
CC llvm-bugs@lists.llvm.org, tstellar@redhat.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Recent regression:

[2459/2516] cd "/build/llvm-toolchain-snapshot-
14~++20211016052734+2c941fa2f9b9/libclc/build" && /usr/bin/llvm-spirv --spirv-
max-version=1.1 -o spirv64-mesa3d-.spv builtins.link.spirv64-mesa3d-.bc
FAILED: spirv64-mesa3d-.spv
cd "/build/llvm-toolchain-snapshot-
14~++20211016052734+2c941fa2f9b9/libclc/build" && /usr/bin/llvm-spirv --spirv-
max-version=1.1 -o spirv64-mesa3d-.spv builtins.link.spirv64-mesa3d-.bc
Unknown attribute kind (68) (Producer: 'LLVM14.0.0' Reader: 'LLVM 10.0.0')
[2460/2516] "/build/llvm-toolchain-snapshot-
14~++20211016052734+2c941fa2f9b9/build-llvm/tools/clang/stage2-bins/bin/clang" -
DCLC_R600 -D__CLC_INTERNAL -I../generic/include -cl-no-stdinc   -target r600-- -
mcpu=barts -fno-builtin -nostdlib -I /build/llvm-toolchain-snapshot-
14~++20211016052734+2c941fa2f9b9/libclc/generic/lib/shared -o
CMakeFiles/builtins.link.barts-r600--.dir/generic/lib/shared/vload.bc -c
../generic/lib/shared/vload.cl -emit-llvm
[2461/2516] cd "/build/llvm-toolchain-snapshot-
14~++20211016052734+2c941fa2f9b9/libclc/build" && "/build/llvm-toolchain-
snapshot-14~++20211016052734+2c941fa2f9b9/build-llvm/tools/clang/stage2-
bins/bin/opt" -o builtins.opt.spirv64-mesa3d-.bc builtins.link.spirv64-mesa3d-
.bc
Quuxplusone commented 3 years ago

Actually, I have the same issue on amd64 on ubuntu focal

Quuxplusone commented 3 years ago
Seems that it happened between
81e9c90686f7..2c941fa2f9b9
Quuxplusone commented 3 years ago

Seems to be caused by https://reviews.llvm.org/D105169

Quuxplusone commented 3 years ago

Seems that it works with llvm-spir 11.0.0 but fails with 10.0.0