"Illegal instruction core dumped" Is Displayed When the KML_FFT Library Function Is Called
Symptom
On EulerOS 2.0, after installing BoostKit-KML 2.0.0 by locally extracting the RPM package via rpm2cpio xxx.rpm | cpio -div, invoking the kml_fft function triggers an "Illegal instruction (core dumped)" error.
Key Process and Cause Analysis
Root cause: KML is not installed by running the rpm command, and the correct .so library is not used.
Key process: The .so library in the kfft-neon directory is the FFT library that supports NEON instructions, and the .so library in the lib directory is the FFT library that supports SVE instructions.
Conclusion and Solution
Check whether the environment supports SVE instructions. If not, use the .so library in kfft-neon for compilation. To use the correct math library in the future, you are advised to install it by running the rpm command.