All 3 of these requested versions fail on x86, around debug-related stuff. Does not fail on amd64. 15.0.0-r1: ******************** Failed Tests (9): LLVM_SPIRV :: DebugInfo/X86/dbg-declare-alloca.ll LLVM_SPIRV :: DebugInfo/X86/dbg-declare-arg.ll LLVM_SPIRV :: DebugInfo/X86/dbg-value-const-byref.ll LLVM_SPIRV :: DebugInfo/X86/dw_op_minus_direct.ll LLVM_SPIRV :: DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll LLVM_SPIRV :: DebugInfo/X86/frame-register.ll LLVM_SPIRV :: DebugInfo/X86/this-stack_value.ll LLVM_SPIRV :: GroupAndSubgroupInstructions.spvasm LLVM_SPIRV :: spirv-tools-dis.ll Testing Time: 7.10s Unsupported : 1 Passed : 628 Expectedly Failed: 5 Failed : 9 16.0.0-r1: ******************** Failed Tests (9): LLVM_SPIRV :: DebugInfo/X86/dbg-declare-alloca.ll LLVM_SPIRV :: DebugInfo/X86/dbg-declare-arg.ll LLVM_SPIRV :: DebugInfo/X86/dbg-value-const-byref.ll LLVM_SPIRV :: DebugInfo/X86/dw_op_minus_direct.ll LLVM_SPIRV :: DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll LLVM_SPIRV :: DebugInfo/X86/frame-register.ll LLVM_SPIRV :: DebugInfo/X86/this-stack_value.ll LLVM_SPIRV :: GroupAndSubgroupInstructions.spvasm LLVM_SPIRV :: spirv-tools-dis.ll Testing Time: 8.34s Unsupported : 1 Passed : 657 Expectedly Failed: 3 Failed : 9 17.0.0-r2: ******************** Failed Tests (7): LLVM_SPIRV :: DebugInfo/X86/dbg-declare-alloca.ll LLVM_SPIRV :: DebugInfo/X86/dbg-declare-arg.ll LLVM_SPIRV :: DebugInfo/X86/dbg-value-const-byref.ll LLVM_SPIRV :: DebugInfo/X86/dw_op_minus_direct.ll LLVM_SPIRV :: DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll LLVM_SPIRV :: DebugInfo/X86/frame-register.ll LLVM_SPIRV :: DebugInfo/X86/this-stack_value.ll Testing Time: 8.61s Unsupported : 1 Passed : 696 Expectedly Failed: 4 Failed : 7
Created attachment 895363 [details] build.log and emerge --info (15.0.0-r1)
Created attachment 895364 [details] build.log and emerge --info (16.0.0-r1)
Created attachment 895365 [details] build.log and emerge --info (17.0.0-r2)
I think it's likely intractable to make the tests pass on all platforms, but $URL is a PR I made to fix the test expectations on x86. I haven't gotten back to it to fix it up so that the expectations are conditional based on the platform.
I've updated the upstream PR.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c63dfeafaa5062f90b4dde3c335acd4df03c5dc4 commit c63dfeafaa5062f90b4dde3c335acd4df03c5dc4 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2024-06-07 21:59:17 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2024-06-07 21:59:28 +0000 dev-util/spirv-llvm-translator: Fix some tests Closes: https://bugs.gentoo.org/933775 Signed-off-by: Matt Turner <mattst88@gentoo.org> dev-util/spirv-llvm-translator/spirv-llvm-translator-15.0.0-r1.ebuild | 3 +++ dev-util/spirv-llvm-translator/spirv-llvm-translator-16.0.0-r1.ebuild | 3 +++ dev-util/spirv-llvm-translator/spirv-llvm-translator-17.0.0-r2.ebuild | 3 +++ dev-util/spirv-llvm-translator/spirv-llvm-translator-18.1.0.ebuild | 3 +++ 4 files changed, 12 insertions(+)
With the commit in comment #6, the tests passed for me in v17 and v18. Please give it a try.
This indeed fixes the debug ones. What do you want to do about the remaining items on 15 and 16? 15.0.0-r1: ******************** Failed Tests (2): LLVM_SPIRV :: GroupAndSubgroupInstructions.spvasm LLVM_SPIRV :: spirv-tools-dis.ll Testing Time: 7.07s Unsupported : 1 Passed : 635 Expectedly Failed: 5 Failed : 2 16.0.0-r1: ******************** Failed Tests (2): LLVM_SPIRV :: GroupAndSubgroupInstructions.spvasm LLVM_SPIRV :: spirv-tools-dis.ll Testing Time: 8.58s Unsupported : 1 Passed : 664 Expectedly Failed: 3 Failed : 2
I don't know of any good reasons to use llvm < 17 at this point, so probably let's just forget about those versions. I'll update the stabilization bug.