KhronosGroup / KhronosGroup/SPIRV-Tools
Ive tried multiple ways of building and installing lib32-spirv-tools from this project and it fails
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
when I try to install the aur lib32-spirv-tools-git release downstream from this project it gives me
Installing: /home/user/Clones/lib32-spirv-tools-git/pkg/lib32-spirv-tools-git/usr/bin/spirv-lesspipe.sh
/home/user/Clones/lib32-spirv-tools-git/PKGBUILD: line 117: cd: /home/user/Clones/lib32-spirv-tools-git/pkg/lib32-spirv-tools-git/usr/bin: No such file or directory
It should be making the directory if it doesnt exist
it also fails with the aur
it also fails if I try to build a release manually or use the aur for lib32-spirv-tools thats the release rather than git giving me this error when building
In file included from /var/tmp/pamac-build-user/lib32-spirv-tools/src/SPIRV-Tools/source/operand.cpp:36:
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/operand.kinds-unified1.inc:1288:4: error: ‘SPV_OPERAND_TYPE_QUANTIZATION_MODES’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_FPOPERATION_MODE’?
1288 | {SPV_OPERAND_TYPE_QUANTIZATION_MODES, ARRAY_SIZE(pygen_variable_QuantizationModesEntries), pygen_variable_QuantizationModesEntries},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_FPOPERATION_MODE
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/operand.kinds-unified1.inc:1290:4: error: ‘SPV_OPERAND_TYPE_OVERFLOW_MODES’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_MEMORY_MODEL’?
1290 | {SPV_OPERAND_TYPE_OVERFLOW_MODES, ARRAY_SIZE(pygen_variable_OverflowModesEntries), pygen_variable_OverflowModesEntries},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_MEMORY_MODEL
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/operand.kinds-unified1.inc:1303:4: error: ‘SPV_OPERAND_TYPE_PACKED_VECTOR_FORMAT’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_SAMPLER_IMAGE_FORMAT’?
1303 | {SPV_OPERAND_TYPE_PACKED_VECTOR_FORMAT, ARRAY_SIZE(pygen_variable_PackedVectorFormatEntries), pygen_variable_PackedVectorFormatEntries},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_SAMPLER_IMAGE_FORMAT
In file included from /var/tmp/pamac-build-user/lib32-spirv-tools/src/SPIRV-Tools/source/opcode.cpp:38:
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/core.insts-unified1.inc:453:167: error: ‘SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER’?
453 | {"SDotKHR", SpvOpSDotKHR, 1, pygen_variable_caps_DotProductKHR, 5, {SPV_OPERAND_TYPE_TYPE_ID, SPV_OPERAND_TYPE_RESULT_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT}, 1, 1, 0, nullptr, 0xffffffffu, 0xffffffffu},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/core.insts-unified1.inc:454:167: error: ‘SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER’?
454 | {"UDotKHR", SpvOpUDotKHR, 1, pygen_variable_caps_DotProductKHR, 5, {SPV_OPERAND_TYPE_TYPE_ID, SPV_OPERAND_TYPE_RESULT_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT}, 1, 1, 0, nullptr, 0xffffffffu, 0xffffffffu},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/core.insts-unified1.inc:455:169: error: ‘SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER’?
455 | {"SUDotKHR", SpvOpSUDotKHR, 1, pygen_variable_caps_DotProductKHR, 5, {SPV_OPERAND_TYPE_TYPE_ID, SPV_OPERAND_TYPE_RESULT_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT}, 1, 1, 0, nullptr, 0xffffffffu, 0xffffffffu},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/core.insts-unified1.inc:456:200: error: ‘SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER’?
456 | {"SDotAccSatKHR", SpvOpSDotAccSatKHR, 1, pygen_variable_caps_DotProductKHR, 6, {SPV_OPERAND_TYPE_TYPE_ID, SPV_OPERAND_TYPE_RESULT_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT}, 1, 1, 0, nullptr, 0xffffffffu, 0xffffffffu},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/core.insts-unified1.inc:457:200: error: ‘SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER’?
457 | {"UDotAccSatKHR", SpvOpUDotAccSatKHR, 1, pygen_variable_caps_DotProductKHR, 6, {SPV_OPERAND_TYPE_TYPE_ID, SPV_OPERAND_TYPE_RESULT_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT}, 1, 1, 0, nullptr, 0xffffffffu, 0xffffffffu},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER
/var/tmp/pamac-build-user/lib32-spirv-tools/src/build/core.insts-unified1.inc:458:202: error: ‘SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT’ was not declared in this scope; did you mean ‘SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER’?
458 | {"SUDotAccSatKHR", SpvOpSUDotAccSatKHR, 1, pygen_variable_caps_DotProductKHR, 6, {SPV_OPERAND_TYPE_TYPE_ID, SPV_OPERAND_TYPE_RESULT_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_PACKED_VECTOR_FORMAT}, 1, 1, 0, nullptr, 0xffffffffu, 0xffffffffu},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SPV_OPERAND_TYPE_OPTIONAL_ACCESS_QUALIFIER
make[2]: *** [source/CMakeFiles/SPIRV-Tools-static.dir/build.make:263: source/CMakeFiles/SPIRV-Tools-static.dir/operand.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [source/CMakeFiles/SPIRV-Tools-static.dir/build.make:249: source/CMakeFiles/SPIRV-Tools-static.dir/opcode.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:898: source/CMakeFiles/SPIRV-Tools-static.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
make[1]: *** [CMakeFiles/Makefile2:898: source/CMakeFiles/SPIRV-Tools-static.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Contributor guide
Research direction
Start by reproducing the reported CMake build and inspect PKGBUILD line 117, source/operand.cpp, source/opcode.cpp, and the generated operand.kinds-unified1.inc and core.insts-unified1.inc files. Determine whether the missing operand constants come from inconsistent generated inputs, then verify that the installation step creates or targets the reported usr/bin directory. Done means the affected build completes and the lib32 installation succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100