https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-util/spirv-llvm-translator-15.0.0-r1 fails to compile. Discovered on: amd64 (internal ref: ci) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 884578 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVBasicBlock.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVDecorate.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVEntry.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVFunction.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVInstruction.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVModule.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVStream.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVType.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVValue.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLTypeToSPIRV.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLUtil.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/PreprocessMetadata.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVLowerBitCastToNonStandardType.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVLowerBool.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVLowerConstExpr.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVLowerMemmove.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVLowerOCLBlocks.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVReader.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVRegularizeLLVM.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVToLLVMDbgTran.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVToOCL12.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVToOCL20.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVToOCL.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVTypeScavenger.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVUtil.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVWriter.cpp.o FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/VectorComputeUtil.cpp.o /var/tmp/portage/dev-util/spirv-llvm-translator-15.0.0-r1/work/SPIRV-LLVM-Translator-15.0.0/lib/SPIRV/libSPIRV/SPIRVEntry.h:904:19: error: ‘CapabilityLongConstantCompositeINTEL’ was not declared in this scope
The patch generated from the commit that fixed this issue in trunk, after slight modification, fixes building of `dev-util/spirv-llvm-translator-15.0.0-r1` as well, at least on my laptop.
Created attachment 885761 [details, diff] The patch in question
Err, I misspoke just now. Rather than relying on the original pull request which fixed it for trunk, I used the one which backported the fix to version 17, where it's one commit, like I said, and not four: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2308
patch works for me too
Created attachment 887206 [details, diff] A patch file for spirv-llvm-translator-15.0.0-r1 only, fixing error: ‘CapabilityLongConstantCompositeINTEL’ was not declared in this scope. Hey guys. I am trying to make openVINO work on my gentoo machine and unexpectedly am going through this bug. Previous patch for spirv-llvm-translator-15.0.0 does work but it is not tailored for version 15, so i created this and hoping it to be included in new ebuilds as patch file as name suggested.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5258471ddf31bf452c44ee0402b0ec73c8ddc3a0 commit 5258471ddf31bf452c44ee0402b0ec73c8ddc3a0 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2024-03-15 22:44:46 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2024-03-15 23:58:55 +0000 dev-util/spirv-llvm-translator: fix compilation with newer headers Closes: https://bugs.gentoo.org/924132 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> ...v-llvm-translator-15.0.0-intel-capability.patch | 77 ++++++++++++++++++++++ .../spirv-llvm-translator-15.0.0-r1.ebuild | 4 +- 2 files changed, 80 insertions(+), 1 deletion(-)