Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924132 - dev-util/spirv-llvm-translator-15.0.0-r1 fails to compile: SPIRVEntry.h:904:19: error: CapabilityLongConstantCompositeINTEL was not declared in this scope
Summary: dev-util/spirv-llvm-translator-15.0.0-r1 fails to compile: SPIRVEntry.h:904:1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-02-09 07:53 UTC by Agostino Sarubbo
Modified: 2024-03-15 23:59 UTC (History)
7 users (show)

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


Attachments
build.log (build.log,202.13 KB, text/plain)
2024-02-09 07:54 UTC, Agostino Sarubbo
Details
The patch in question (renamed-capabilities.patch,5.71 KB, patch)
2024-02-23 05:03 UTC, Sandi (Sandy) Vujaković
Details | Diff
A patch file for spirv-llvm-translator-15.0.0-r1 only, fixing error: ‘CapabilityLongConstantCompositeINTEL’ was not declared in this scope. (spirv-llvm-translator-15.0.0-intel-capability.patch,3.43 KB, patch)
2024-03-10 07:54 UTC, memorytoco
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-02-09 07:53:57 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2024-02-09 07:54:00 UTC
Created attachment 884578 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-09 07:54:00 UTC
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
Comment 3 Sandi (Sandy) Vujaković 2024-02-23 05:01:40 UTC
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.
Comment 4 Sandi (Sandy) Vujaković 2024-02-23 05:03:46 UTC
Created attachment 885761 [details, diff]
The patch in question
Comment 5 Sandi (Sandy) Vujaković 2024-02-23 05:13:23 UTC
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
Comment 6 Leonid Kopylov 2024-02-23 15:51:48 UTC
patch works for me too
Comment 7 memorytoco 2024-03-10 07:54:01 UTC
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.
Comment 8 Alexander Weber 2024-03-15 07:17:07 UTC
patch works for me too
Comment 9 Larry the Git Cow gentoo-dev 2024-03-15 23:59:03 UTC
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(-)