Rate This Document
Findability
Accuracy
Completeness
Readability

vld1q_f32_x4 Error Reported During Compilation

Symptom

An error is reported during compilation, indicating that the structure function vld1q_f32_x4 of the NEON instruction is not defined.

Key Process and Cause Analysis

The supported NEON instructions vary according to the GCC version. The GCC version on which Milvus depends is supposed to be later than the current version.

Conclusion and Solution

This compilation error is reported in versions earlier than GCC 9.3.0. If the GCC is not upgraded, modify the file content. Change x4 to x3 in the file ~/milvus/cmake_build/thirdparty/knowhere/knowhere-src/src/simd/distance_neon.cc, and update corresponding code as well.

Upgrading GCC from 9.3.0 or earlier versions to 10.3.1 can directly solve this problem.