ITADN

Build errors on 32bit platforms

#3773OpenWhyNotHugo 创建于 2026-04-25
W
WhyNotHugocommented
I see build errors on x86, armhf and armv7: ``` ninja: job failed: /usr/bin/c++ -DGGML_BACKEND_BUILD -DGGML_BACKEND_DL -DGGML_BACKEND_SHARED -DGGML_SCHED_MAX_COPIES=4 -DGGML_SHARED -DGGML_VULKAN_BFLOAT16_GLSLC_SUPPORT -DGGML_VULKAN_COOPMAT2_GLSLC_SUPPORT -DGGML_VULKAN_COOPMAT_GLSLC_SUPPORT -DGGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -Dggml_vulkan_EXPORTS -I/builds/alpine/aports/testing/whisper.cpp/src/whisper.cpp-1.8.4/ggml/src/ggml-vulkan/.. -I/builds/alpine/aports/testing/whisper.cpp/src/whisper.cpp-1.8.4/build/ggml/src/ggml-vulkan -I/builds/alpine/aports/testing/whisper.cpp/src/whisper.cpp-1.8.4/ggml/src/../include -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -O3 -DNDEBUG -std=gnu++17 -fPIC -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wextra-semi -MD -MT ggml/src/ggml-vulkan/CMakeFiles/ggml-vulkan.dir/ggml-vulkan.cpp.o -MF ggml/src/ggml-vulkan/CMakeFiles/ggml-vulkan.dir/ggml-vulkan.cpp.o.d -o ggml/src/ggml-vulkan/CMakeFiles/ggml-vulkan.dir/ggml-vulkan.cpp.o -c /builds/alpine/aports/testing/whisper.cpp/src/whisper.cpp-1.8.4/ggml/src/ggml-vulkan/ggml-vulkan.cpp /builds/alpine/aports/testing/whisper.cpp/src/whisper.cpp-1.8.4/ggml/src/ggml-vulkan/ggml-vulkan.cpp: In member function 'void vk_memory_logger::log_allocation(vk_buffer_ref, size_t)': /builds/alpine/aports/testing/whisper.cpp/src/whisper.cpp-1.8.4/ggml/src/ggml-vulkan/ggml-vulkan.cpp:2018:92: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'vk::Buffer') 2018 | VK_LOG_MEMORY(buf->device->name << ": +" << format_size(size) << " " << type << " at " << buf->buffer << ". Total device: " << format_size(total_device) << ", total host: " << format_size(total_host)); | ^~ ~~~~~~~~~~~ | | | vk::Buffer ``` Complete build log: https://gist.github.com/WhyNotHugo/5427375bc185c46160dd91d7f3eaffd6
0 条评论