Skip to content

RISC-V build failed

:: [ 52%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/riscv/repack.cpp.o
:: /build/whisper-cpp/parts/main/src/ggml/src/ggml-cpu/arch/riscv/quants.c: In function ‘quantize_row_q8_0’:
:: /build/whisper-cpp/parts/main/src/ggml/src/ggml-cpu/arch/riscv/quants.c:38:9: error: unknown type name ‘vfloat32m8_t’
::    38 |         vfloat32m8_t v_x   = __riscv_vle32_v_f32m8(x+i*QK8_0, vl);
::       |         ^~~~~~~~~~~~
:: /build/whisper-cpp/parts/main/src/ggml/src/ggml-cpu/arch/riscv/quants.c:38:30: error: implicit declaration of function ‘__riscv_vle32_v_f32m8’ [-Werror=implicit-function-declaration]
::    38 |         vfloat32m8_t v_x   = __riscv_vle32_v_f32m8(x+i*QK8_0, vl);
::       |                              ^~~~~~~~~~~~~~~~~~~~~

Might be related to https://github.com/ggml-org/whisper.cpp/issues/2989#issuecomment-2938745664