Skip to content

Build error on Linux x64 with Vulkan backend (spv has not been declared) #34

@Beczkawina92

Description

@Beczkawina92

Hi! I tried to build your project to test it out, but it fails right at the compilation stage. I was trying to build it on Linux Mint with the Vulkan backend enabled, but the compiler throws an error. All the dependencies listed on the project page (and the compiler, of course) are installed.

Here is the error log:

/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp: In function ‘void ggml_vk_create_pipeline_func(vk_device&, vk_pipeline&, size_t, const void*, std::string, uint32_t, std::array<unsigned int, 3>, std::vector, bool, bool, uint32_t)’:
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2176:44: error: ‘spv’ has not been declared
2176 | uint32_t opcode = spirv[pos] & spv::OpCodeMask;
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2177:45: error: ‘spv’ has not been declared
2177 | uint32_t len = spirv[pos] >> spv::WordCountShift;
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2180:27: error: ‘spv’ has not been declared
2180 | if (opcode == spv::OpCapability) {
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2183:34: error: ‘spv’ has not been declared
2183 | } else if (opcode == spv::OpExtension) {
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2185:34: error: ‘spv’ has not been declared
2185 | } else if (opcode == spv::OpEntryPoint) {
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2188:34: error: ‘spv’ has not been declared
2188 | } else if (opcode == spv::OpExecutionMode || opcode == spv::OpExecutionModeId) {
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2188:68: error: ‘spv’ has not been declared
2188 | } else if (opcode == spv::OpExecutionMode || opcode == spv::OpExecutionModeId) {
| ^~~

/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2200:41: error: ‘spv’ has not been declared
2200 | uint32_t exec_mode[] = { (4u << spv::WordCountShift) | spv::OpExecutionMode, entry_point_id, spv::ExecutionModeRoundingModeRTE, 16 };
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2200:64: error: ‘spv’ has not been declared
2200 | uint32_t exec_mode[] = { (4u << spv::WordCountShift) | spv::OpExecutionMode, entry_point_id, spv::ExecutionModeRoundingModeRTE, 16 };
| ^~~

/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2200:102: error: ‘spv’ has not been declared
2200 | pv::WordCountShift) | spv::OpExecutionMode, entry_point_id, spv::ExecutionModeRoundingModeRTE, 16 };
| ^~~

/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2207:58: error: ‘spv’ has not been declared
2207 | extension[0] = (uint32_t)((1 + ext_str_words) << spv::WordCountShift) | spv::OpExtension;
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2207:81: error: ‘spv’ has not been declared
2207 | = (uint32_t)((1 + ext_str_words) << spv::WordCountShift) | spv::OpExtension;
| ^~~

/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2212:42: error: ‘spv’ has not been declared
2212 | uint32_t capability[] = { (2u << spv::WordCountShift) | spv::OpCapability, spv::CapabilityRoundingModeRTE };
| ^~~
/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2212:65: error: ‘spv’ has not been declared
2212 | uint32_t capability[] = { (2u << spv::WordCountShift) | spv::OpCapability, spv::CapabilityRoundingModeRTE };
| ^~~

/media/mint/AIDisk/TTS/s2.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2212:84: error: ‘spv’ has not been declared
2212 | lity[] = { (2u << spv::WordCountShift) | spv::OpCapability, spv::CapabilityRoundingModeRTE };
| ^~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions