Skip to content

[Build] CMake Error related to onnxruntime_unittests.cmake #24972

@2876225417

Description

@2876225417

Describe the issue

BUILD_ARGS

    BUILD_ARGS=(
        "--config" "${ONNXRUNTIME_HOST_BUILD_CONFIG}"
        "--parallel" "$(nproc)"
        "--build_shared_lib"
        "--skip_tests"
        "--update"
        "--build"
        "--use_xnnpack"
    )

Urgency

No response

Target platform

Linux x86_64

Build script

    BUILD_ARGS=(
        "--config" "${ONNXRUNTIME_HOST_BUILD_CONFIG}"
        "--parallel" "$(nproc)"
        "--build_shared_lib"
        "--skip_tests"
        "--update"
        "--build"
        "--use_xnnpack"
    )
./build.sh "${BUILD_ARGS[@]}" > "${LOG_FILE_FOR_ABI}" 2>&1   

Error / output

2025-06-06 18:57:50,101 tools_python_utils [INFO] - flatbuffers module is not installed. parse_config will not be available
2025-06-06 18:57:50,106 build [DEBUG] - Command line arguments:
--build_dir /run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/build/Linux --config Release --parallel 16 --build_shared_lib --skip_tests --update --build --use_xnnpack
2025-06-06 18:57:50,108 build [INFO] - Build started
2025-06-06 18:57:50,108 build [INFO] - git submodule sync --recursive
为 'cmake/external/emsdk' 同步子模组 url
为 'cmake/external/libprotobuf-mutator' 同步子模组 url
为 'cmake/external/onnx' 同步子模组 url
为 'cmake/external/onnx/third_party/pybind11' 同步子模组 url
2025-06-06 18:57:50,133 build [INFO] - git submodule update --init --recursive
2025-06-06 18:57:50,161 build [INFO] - Generating CMake build tree
2025-06-06 18:57:50,162 build [INFO] - /usr/bin/cmake /run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/cmake -Donnxruntime_ENABLE_EXTERNAL_CUSTOM_OP_SCHEMAS=OFF -Donnxruntime_RUN_ONNX_TESTS=OFF -Donnxruntime_GENERATE_TEST_REPORTS=ON -DPython_EXECUTABLE=/usr/bin/python3 -Donnxruntime_USE_VCPKG=OFF -Donnxruntime_USE_MIMALLOC=OFF -Donnxruntime_ENABLE_PYTHON=OFF -Donnxruntime_BUILD_CSHARP=OFF -Donnxruntime_BUILD_JAVA=OFF -Donnxruntime_BUILD_NODEJS=OFF -Donnxruntime_BUILD_OBJC=OFF -Donnxruntime_BUILD_SHARED_LIB=ON -Donnxruntime_BUILD_APPLE_FRAMEWORK=OFF -Donnxruntime_USE_DNNL=OFF -Donnxruntime_USE_NNAPI_BUILTIN=OFF -Donnxruntime_USE_VSINPU=OFF -Donnxruntime_USE_RKNPU=OFF -Donnxruntime_ENABLE_MICROSOFT_INTERNAL=OFF -Donnxruntime_USE_VITISAI=OFF -Donnxruntime_USE_TENSORRT=OFF -Donnxruntime_USE_NV=OFF -Donnxruntime_USE_TENSORRT_BUILTIN_PARSER=ON -Donnxruntime_USE_TENSORRT_INTERFACE=OFF -Donnxruntime_USE_CUDA_INTERFACE=OFF -Donnxruntime_USE_NV_INTERFACE=OFF -Donnxruntime_USE_OPENVINO_INTERFACE=OFF -Donnxruntime_USE_VITISAI_INTERFACE=OFF -Donnxruntime_USE_QNN_INTERFACE=OFF -Donnxruntime_USE_MIGRAPHX=OFF -Donnxruntime_DISABLE_CONTRIB_OPS=OFF -Donnxruntime_DISABLE_ML_OPS=OFF -Donnxruntime_DISABLE_RTTI=OFF -Donnxruntime_DISABLE_EXCEPTIONS=OFF -Donnxruntime_MINIMAL_BUILD=OFF -Donnxruntime_EXTENDED_MINIMAL_BUILD=OFF -Donnxruntime_MINIMAL_BUILD_CUSTOM_OPS=OFF -Donnxruntime_REDUCED_OPS_BUILD=OFF -Donnxruntime_BUILD_MS_EXPERIMENTAL_OPS=OFF -Donnxruntime_ENABLE_LTO=OFF -Donnxruntime_USE_ACL=OFF -Donnxruntime_USE_ARMNN=OFF -Donnxruntime_ARMNN_RELU_USE_CPU=ON -Donnxruntime_ARMNN_BN_USE_CPU=ON -Donnxruntime_USE_JSEP=OFF -Donnxruntime_USE_WEBGPU=OFF -Donnxruntime_USE_EXTERNAL_DAWN=OFF -Donnxruntime_ENABLE_NVTX_PROFILE=OFF -Donnxruntime_ENABLE_TRAINING=OFF -Donnxruntime_ENABLE_TRAINING_OPS=OFF -Donnxruntime_ENABLE_TRAINING_APIS=OFF -Donnxruntime_ENABLE_CPU_FP16_OPS=OFF -Donnxruntime_USE_NCCL=OFF -Donnxruntime_BUILD_BENCHMARKS=OFF -Donnxruntime_USE_ROCM=OFF -Donnxruntime_GCOV_COVERAGE=OFF -Donnxruntime_ENABLE_MEMORY_PROFILE=OFF -Donnxruntime_ENABLE_CUDA_LINE_NUMBER_INFO=OFF -Donnxruntime_USE_CUDA_NHWC_OPS=OFF -Donnxruntime_BUILD_WEBASSEMBLY_STATIC_LIB=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING=ON -Donnxruntime_ENABLE_WEBASSEMBLY_API_EXCEPTION_CATCHING=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_THROWING=ON -Donnxruntime_WEBASSEMBLY_RUN_TESTS_IN_BROWSER=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_THREADS=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_MEMORY64=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_DEBUG_INFO=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_PROFILING=OFF -Donnxruntime_ENABLE_LAZY_TENSOR=OFF -Donnxruntime_ENABLE_CUDA_PROFILING=OFF -Donnxruntime_ENABLE_ROCM_PROFILING=OFF -Donnxruntime_USE_XNNPACK=ON -Donnxruntime_USE_WEBNN=OFF -Donnxruntime_USE_CANN=OFF -Donnxruntime_USE_TRITON_KERNEL=OFF -Donnxruntime_DISABLE_FLOAT8_TYPES=OFF -Donnxruntime_DISABLE_SPARSE_TENSORS=OFF -Donnxruntime_DISABLE_OPTIONAL_TYPE=OFF -Donnxruntime_CUDA_MINIMAL=OFF -Donnxruntime_USE_KLEIDIAI=ON -DCMAKE_BUILD_TYPE=Release
CMake Deprecation Warning at CMakeLists.txt:9 (cmake_policy):
The OLD behavior for policy CMP0104 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

Building ONNX Runtime for x86_64 CPU ARCH
Patch found: /usr/bin/patch
-- Loading Dependencies URLs ...
-- Loading Dependencies ...
-- Abseil source dir:/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/build/Linux/Release/_deps/abseil_cpp-src
-- Using protobuf from find_package(or vcpkg). Protobuf version: 31.0.0
CMake Deprecation Warning at /run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/build/Linux/Release/_deps/date-src/CMakeLists.txt:18 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

CMake Warning (dev) at /usr/lib/cmake/Boost-1.88.0/BoostConfig.cmake:141 (find_package):
Ignoring EXACT since no version is requested.
Call Stack (most recent call first):
/usr/lib/cmake/Boost-1.88.0/BoostConfig.cmake:215 (boost_find_component)
/usr/share/cmake/Modules/FetchContent.cmake:2472 (find_package)
/usr/share/cmake/Modules/FetchContent.cmake:2362 (__FetchContent_MakeAvailable_find_package)
external/helper_functions.cmake:22 (FetchContent_MakeAvailable)
external/onnxruntime_external_deps.cmake:290 (onnxruntime_fetchcontent_makeavailable)
CMakeLists.txt:698 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Deprecation Warning at /run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/build/Linux/Release/_deps/pytorch_cpuinfo-src/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

CMake Warning (dev) at /usr/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(safeint) is deprecated, call
FetchContent_MakeAvailable(safeint) instead. Policy CMP0169 can be set to
OLD to allow FetchContent_Populate(safeint) to be called directly for now,
but the ability to call it with declared details will be removed completely
in a future version.
Call Stack (most recent call first):
external/onnxruntime_external_deps.cmake:421 (FetchContent_Populate)
CMakeLists.txt:698 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Aliasing ONNX::onnx to onnx
-- Aliasing ONNX::onnx_proto to onnx_proto

-- Configured Eigen 3.4.90

CMake Deprecation Warning at /run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/build/Linux/Release/_deps/fxdiv-src/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

CMake Deprecation Warning at /run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/build/Linux/Release/_deps/pthreadpool-src/CMakeLists.txt:10 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- Building for ORT_TARGET_PROCESSOR: x86_64
-- Building for XNNPACK_TARGET_PROCESSOR: x86_64
-- Generating microkernels.cmake
No microkernel found in src/reference/binary-elementwise.cc
No microkernel found in src/reference/unary-elementwise.cc
No microkernel found in src/reference/packing.cc
-- Finished fetching external dependencies
NVCC_ERROR =
NVCC_OUT = no such file or directory
-- CMAKE_CXX_COMPILER_ID: GNU
-- CMAKE_CXX_COMPILER_VERSION: 15.1.1
-- Using -mavx2 -mfma -mavxvnni flags
-- Configuring done (10.8s)
CMake Error at onnxruntime_flatbuffers.cmake:17 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_flatbuffers" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_common.cmake:142 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_common" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_graph.cmake:98 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_graph" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_lora.cmake:21 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_lora" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_framework.cmake:96 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_framework" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_util.cmake:18 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_util" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_providers_cpu.cmake:186 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_providers" does not exist.
Call Stack (most recent call first):
onnxruntime_providers.cmake:122 (include)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_providers_xnnpack.cmake:25 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_providers_xnnpack" does not exist.
Call Stack (most recent call first):
onnxruntime_providers.cmake:200 (include)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_optimizer.cmake:129 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_optimizer" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_session.cmake:53 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_session" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime.cmake:138 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target "onnxruntime"
does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:798 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_test_utils" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:826 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnx_test_runner_common" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:56 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_test_all" does not exist.
Call Stack (most recent call first):
onnxruntime_unittests.cmake:924 (AddTest)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:1031 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnx_test_data_proto" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:56 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_shared_lib_test" does not exist.
Call Stack (most recent call first):
onnxruntime_unittests.cmake:1365 (AddTest)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:56 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_global_thread_pools_test" does not exist.
Call Stack (most recent call first):
onnxruntime_unittests.cmake:1410 (AddTest)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:56 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_customopregistration_test" does not exist.
Call Stack (most recent call first):
onnxruntime_unittests.cmake:1697 (AddTest)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:56 (add_dependencies):
The dependency target "flatbuffers::flatbuffers" of target
"onnxruntime_logging_apis_test" does not exist.
Call Stack (most recent call first):
onnxruntime_unittests.cmake:1885 (AddTest)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime.cmake:254 (target_link_libraries):
Target "onnxruntime" links to:

flatbuffers::flatbuffers

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:72 (target_link_libraries):
Target "onnxruntime_test_all" links to:

flatbuffers::flatbuffers

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
onnxruntime_unittests.cmake:924 (AddTest)
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:1126 (target_link_libraries):
Target "onnx_test_runner" links to:

flatbuffers::flatbuffers

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

CMake Error at onnxruntime_unittests.cmake:1280 (target_link_libraries):
Target "onnxruntime_perf_test" links to:

flatbuffers::flatbuffers

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
CMakeLists.txt:1867 (include)

-- Generating done (0.9s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Namespace(build_dir='/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/build/Linux', config=['Release'], update=True, build=True, clean=False, parallel=16, target=None, compile_no_warning_as_error=False, build_shared_lib=True, build_apple_framework=False, enable_lto=False, use_cache=False, use_binskim_compliant_compile_flags=False, cmake_extra_defines=None, cmake_path='cmake', cmake_generator=None, use_vcpkg=False, use_vcpkg_ms_internal_asset_cache=False, skip_submodule_sync=False, test=False, skip_tests=True, ctest_path='ctest', enable_onnx_tests=False, path_to_protoc_exe=None, fuzz_testing=False, enable_symbolic_shape_infer_tests=False, skip_onnx_tests=False, skip_winml_tests=False, skip_nodejs_tests=False, test_all_timeout='10800', enable_transformers_tool_test=False, build_micro_benchmarks=False, code_coverage=False, enable_training=False, enable_training_apis=False, enable_training_ops=False, enable_nccl=False, nccl_home=None, enable_memory_profile=False, enable_address_sanitizer=False, gen_doc=None, rv64=False, riscv_toolchain_root='', riscv_qemu_path='', android=False, android_abi='arm64-v8a', android_api=27, android_sdk_path='/home/ppqwqqq/Android/Sdk', android_ndk_path='/home/ppqwqqq/Android/Sdk/ndk/29.0.13113456', android_cpp_shared=False, android_run_emulator=False, build_wasm=False, build_wasm_static_lib=False, emsdk_version='4.0.4', enable_wasm_simd=False, enable_wasm_relaxed_simd=False, enable_wasm_threads=False, enable_wasm_memory64=False, disable_wasm_exception_catching=False, enable_wasm_api_exception_catching=False, enable_wasm_exception_throwing_override=True, wasm_run_tests_in_browser=False, enable_wasm_profiling=False, enable_wasm_debug_info=False, wasm_malloc=None, emscripten_settings=None, use_full_protobuf=False, use_mimalloc=False, external_graph_transformer_path=None, use_extensions=False, extensions_overridden_path=None, minimal_build=None, include_ops_by_config=None, enable_reduced_operator_type_support=False, disable_contrib_ops=False, disable_ml_ops=False, disable_rtti=False, disable_types=[], disable_exceptions=False, enable_pybind=False, build_wheel=False, wheel_name_suffix=None, skip_keras_test=False, build_csharp=False, build_nuget=False, msbuild_extra_options=None, build_java=False, build_nodejs=False, build_objc=False, use_cuda=False, cuda_version=None, cuda_home=None, cudnn_home=None, enable_cuda_line_info=False, enable_cuda_nhwc_ops=False, disable_cuda_nhwc_ops=False, enable_cuda_minimal_build=False, nvcc_threads=-1, enable_nvtx_profile=False, enable_cuda_profiling=False, use_rocm=False, rocm_version=None, rocm_home=None, enable_rocm_profiling=False, use_dnnl=False, dnnl_gpu_runtime='', dnnl_opencl_root='', dnnl_aarch64_runtime='', dnnl_acl_root='', use_openvino=None, use_tensorrt=False, use_tensorrt_builtin_parser=True, use_tensorrt_oss_parser=False, tensorrt_home=None, use_nv_tensorrt_rtx=False, use_dml=False, dml_path='', dml_external_project=False, use_nnapi=False, nnapi_min_api=None, use_coreml=False, use_qnn=None, qnn_home=None, use_snpe=False, snpe_root=None, use_vitisai=False, use_armnn=False, armnn_relu=False, armnn_bn=False, armnn_home=None, armnn_libs=None, use_acl=False, acl_home=None, acl_libs=None, no_kleidiai=False, use_rknpu=False, use_cann=False, cann_home=None, use_migraphx=False, migraphx_home=None, use_webnn=False, use_jsep=False, use_webgpu=False, use_external_dawn=False, use_xnnpack=True, use_vsinpu=False, use_azure=False, enable_lazy_tensor=False, ms_experimental=False, enable_msinternal=False, use_triton_kernel=False, use_lock_free_queue=False, enable_generic_interface=False, allow_running_as_root=False, enable_external_custom_op_schemas=False)
Traceback (most recent call last):
File "/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/tools/ci_build/build.py", line 2551, in
sys.exit(main())
~~~~^^
File "/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/tools/ci_build/build.py", line 2418, in main
generate_build_tree(
~~~~~~~~~~~~~~~~~~~^
cmake_path,
^^^^^^^^^^^
...<19 lines>...
cmake_extra_args,
^^^^^^^^^^^^^^^^^
)
^
File "/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/tools/ci_build/build.py", line 1223, in generate_build_tree
run_subprocess(
~~~~~~~~~~~~~~^
[*temp_cmake_args, f"-DCMAKE_BUILD_TYPE={config}"],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
env=env,
^^^^^^^^
)
^
File "/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/tools/ci_build/build.py", line 147, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
File "/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/tools/python/util/run.py", line 50, in run
completed_process = subprocess.run(
cmd,
...<6 lines>...
shell=shell,
)
File "/usr/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '/run/media/ppqwqqq/hq1024/android/Geecodex/native/3rdparty/source/onnxruntime/onnxruntime/cmake', '-Donnxruntime_ENABLE_EXTERNAL_CUSTOM_OP_SCHEMAS=OFF', '-Donnxruntime_RUN_ONNX_TESTS=OFF', '-Donnxruntime_GENERATE_TEST_REPORTS=ON', '-DPython_EXECUTABLE=/usr/bin/python3', '-Donnxruntime_USE_VCPKG=OFF', '-Donnxruntime_USE_MIMALLOC=OFF', '-Donnxruntime_ENABLE_PYTHON=OFF', '-Donnxruntime_BUILD_CSHARP=OFF', '-Donnxruntime_BUILD_JAVA=OFF', '-Donnxruntime_BUILD_NODEJS=OFF', '-Donnxruntime_BUILD_OBJC=OFF', '-Donnxruntime_BUILD_SHARED_LIB=ON', '-Donnxruntime_BUILD_APPLE_FRAMEWORK=OFF', '-Donnxruntime_USE_DNNL=OFF', '-Donnxruntime_USE_NNAPI_BUILTIN=OFF', '-Donnxruntime_USE_VSINPU=OFF', '-Donnxruntime_USE_RKNPU=OFF', '-Donnxruntime_ENABLE_MICROSOFT_INTERNAL=OFF', '-Donnxruntime_USE_VITISAI=OFF', '-Donnxruntime_USE_TENSORRT=OFF', '-Donnxruntime_USE_NV=OFF', '-Donnxruntime_USE_TENSORRT_BUILTIN_PARSER=ON', '-Donnxruntime_USE_TENSORRT_INTERFACE=OFF', '-Donnxruntime_USE_CUDA_INTERFACE=OFF', '-Donnxruntime_USE_NV_INTERFACE=OFF', '-Donnxruntime_USE_OPENVINO_INTERFACE=OFF', '-Donnxruntime_USE_VITISAI_INTERFACE=OFF', '-Donnxruntime_USE_QNN_INTERFACE=OFF', '-Donnxruntime_USE_MIGRAPHX=OFF', '-Donnxruntime_DISABLE_CONTRIB_OPS=OFF', '-Donnxruntime_DISABLE_ML_OPS=OFF', '-Donnxruntime_DISABLE_RTTI=OFF', '-Donnxruntime_DISABLE_EXCEPTIONS=OFF', '-Donnxruntime_MINIMAL_BUILD=OFF', '-Donnxruntime_EXTENDED_MINIMAL_BUILD=OFF', '-Donnxruntime_MINIMAL_BUILD_CUSTOM_OPS=OFF', '-Donnxruntime_REDUCED_OPS_BUILD=OFF', '-Donnxruntime_BUILD_MS_EXPERIMENTAL_OPS=OFF', '-Donnxruntime_ENABLE_LTO=OFF', '-Donnxruntime_USE_ACL=OFF', '-Donnxruntime_USE_ARMNN=OFF', '-Donnxruntime_ARMNN_RELU_USE_CPU=ON', '-Donnxruntime_ARMNN_BN_USE_CPU=ON', '-Donnxruntime_USE_JSEP=OFF', '-Donnxruntime_USE_WEBGPU=OFF', '-Donnxruntime_USE_EXTERNAL_DAWN=OFF', '-Donnxruntime_ENABLE_NVTX_PROFILE=OFF', '-Donnxruntime_ENABLE_TRAINING=OFF', '-Donnxruntime_ENABLE_TRAINING_OPS=OFF', '-Donnxruntime_ENABLE_TRAINING_APIS=OFF', '-Donnxruntime_ENABLE_CPU_FP16_OPS=OFF', '-Donnxruntime_USE_NCCL=OFF', '-Donnxruntime_BUILD_BENCHMARKS=OFF', '-Donnxruntime_USE_ROCM=OFF', '-Donnxruntime_GCOV_COVERAGE=OFF', '-Donnxruntime_ENABLE_MEMORY_PROFILE=OFF', '-Donnxruntime_ENABLE_CUDA_LINE_NUMBER_INFO=OFF', '-Donnxruntime_USE_CUDA_NHWC_OPS=OFF', '-Donnxruntime_BUILD_WEBASSEMBLY_STATIC_LIB=OFF', '-Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING=ON', '-Donnxruntime_ENABLE_WEBASSEMBLY_API_EXCEPTION_CATCHING=OFF', '-Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_THROWING=ON', '-Donnxruntime_WEBASSEMBLY_RUN_TESTS_IN_BROWSER=OFF', '-Donnxruntime_ENABLE_WEBASSEMBLY_THREADS=OFF', '-Donnxruntime_ENABLE_WEBASSEMBLY_MEMORY64=OFF', '-Donnxruntime_ENABLE_WEBASSEMBLY_DEBUG_INFO=OFF', '-Donnxruntime_ENABLE_WEBASSEMBLY_PROFILING=OFF', '-Donnxruntime_ENABLE_LAZY_TENSOR=OFF', '-Donnxruntime_ENABLE_CUDA_PROFILING=OFF', '-Donnxruntime_ENABLE_ROCM_PROFILING=OFF', '-Donnxruntime_USE_XNNPACK=ON', '-Donnxruntime_USE_WEBNN=OFF', '-Donnxruntime_USE_CANN=OFF', '-Donnxruntime_USE_TRITON_KERNEL=OFF', '-Donnxruntime_DISABLE_FLOAT8_TYPES=OFF', '-Donnxruntime_DISABLE_SPARSE_TENSORS=OFF', '-Donnxruntime_DISABLE_OPTIONAL_TYPE=OFF', '-Donnxruntime_CUDA_MINIMAL=OFF', '-Donnxruntime_USE_KLEIDIAI=ON', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

Visual Studio Version

No response

GCC / Compiler Version

GCC 15.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateplatform:mobileissues related to ONNX Runtime mobile; typically submitted using templatestaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions