Skip to content

[Build] compiling errors for armeabi-v7a: vfmaq_f32 undecared #25949

Description

@weidu-tpvision

Describe the issue

I am building onnxruntime for armeabi-v7a, so arm in 32 bits, the older versions are fine but today (Sep 4 2026) I did a git pull and then I ran into compiling errors all of which are related to MLAS, in particular, vfmaq_f32 undeclared.

I think it is only for armv8 but I need to build for armv7.

Urgency

No response

Target platform

armv7 and android

Build script

Below is how I build:
./build.sh
--config Release
--android
--android_abi armeabi-v7a
--android_api 29
--android_ndk_path $ANDROID_NDK_PATH
--build_shared_lib
--parallel
--skip_tests
--use_nnapi
--use_xnnpack
--cmake_extra_defines
"onnxruntime_DISABLE_TRAINING=ON"
"onnxruntime_USE_NEON=ON"
"onnxruntime_DISABLE_TRAINING=ON"
"onnxruntime_ENABLE_CPU_FP32_NCHWc_OPS=ON"
"onnxruntime_DISABLE_EXCEPTIONS=ON"
"onnxruntime_DISABLE_RTTI=ON"
"onnxruntime_BUILD_UNIT_TESTS=OFF"
"onnxruntime_USE_MLAS=OFF" \ # doesn't help but kept anyway
"MLAS_TARGET_ARCHITECTURE=generic" \ # doesn't help but kept anyway
"CMAKE_CXX_FLAGS=-DMLAS_TARGET_ARM=1" # doesn't help but kept anyway

Error / output

In fact all errors are vfmaq_f32 undecared and from MLAS. For example:
[ 6%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/generated_enum_util.cc.o
In file included from /home/weidu/WorkAtTPVision/test/xxx/onnxruntime/onnxruntime/core/mlas/lib/sgemm.cpp:18:
/home/weidu/WorkAtTPVision/test/xxx/onnxruntime/onnxruntime/core/mlas/lib/mlasi.h:2283:12: error: use of undeclared identifier 'vfmaq_f32'
return vfmaq_f32(Vector3, Vector1, Vector2);
^

Visual Studio Version

No response

GCC / Compiler Version

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateplatform:mobileissues related to ONNX Runtime mobile; typically submitted using template

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions