Skip to content

Compile bug: undefined symbol: vkResetQueryPool for android-ndk-r29-beta3 #15698

@calvin2021y

Description

@calvin2021y

Git commit

master branch bbbf5ec

Operating systems

Other? (Please let us know in description)

GGML backends

Vulkan

Problem description & steps to reproduce

There is no vkResetQueryPool for android vulkan.

[100%] Linking CXX executable ../../bin/llama-server
ld.lld: error: undefined symbol: vkResetQueryPool
>>> referenced by vulkan.hpp:2212 (/vulkan/include/vulkan/vulkan.hpp:2212)
>>>               ../../ggml/src/ggml-vulkan/llama-server.lto.libggml-vulkan.a(ggml-vulkan.cpp.o at 83020).o:(ggml_backend_vk_graph_compute(ggml_backend*, ggml_cgraph*))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [tools/server/CMakeFiles/llama-server.dir/build.make:118: bin/llama-server] Error 1
make[1]: *** [CMakeFiles/Makefile2:531: tools/server/CMakeFiles/llama-server.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

First Bad Commit

No response

Compile command

cmake -DGGML_CPU=ON -DGGML_CPU_AARCH64=ON -DGGML_CUDA_FA=OFF -DGGML_CUDA_GRAPHS=OFF -DGGML_HIP_NO_VMM=OFF -DGGML_HIP_MMQ_MFMA=OFF -DGGML_LASX=OFF -DGGML_LSX=OFF -DGGML_METAL=OFF -DGGML_METAL_EMBED_LIBRARY=OFF -DGGML_METAL_NDEBUG=OFF -DGGML_METAL_USE_BF16=OFF -DGGML_ACCELERATE=OFF -DGGML_OPENCL=OFF -DGGML_OPENCL_EMBED_KERNELS=OFF -DGGML_OPENCL_USE_ADRENO_KERNELS=OFF -DGGML_OPENMP=ON -DGGML_RVV=OFF -DGGML_VXE=OFF -DGGML_SYCL_GRAPH=OFF -DGGML_VULKAN=ON -DGGML_BLAS=OFF -DGGML_LTO=ON -DLLAMA_CURL=OFF -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_BUILD_TOOLS=ON -DGGML_LLAMAFILE=OFF

Relevant log output

use https://github.com/KhronosGroup/Vulkan-Headers.git branch `vulkan-sdk-1.4.321` with android-ndk-r29-beta3, enable vulkan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions