Open cyanic-selkie opened 6 days ago
When building onnxruntime==v1.20.0 with the XNNPACK EP using vcpkg, the libXNNPACK.a doesn't get built. It gets built normally when not using vcpkg.
onnxruntime==v1.20.0
vcpkg
libXNNPACK.a
vcpkg.
build/linux/Release/_deps/googlexnnpack-build/CMakeFiles/XNNPACK.dir exists, but the built library itself doesn't.
build/linux/Release/_deps/googlexnnpack-build/CMakeFiles/XNNPACK.dir
No response
x86 Linux
./build.sh --config Release --parallel --compile_no_warning_as_error --skip_submodule_sync --update --build --build_dir build/linux --use_xnnpack --use_vcpkg --cmake_extra_defines CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake onnxruntime_BUILD_UNIT_TESTS=off
logs.txt
It turns out that the root cause for this is actually the onnxruntime_BUILD_UNIT_TESTS=off. If I leave it out, it actually tries to build XNNPACK, but fails with the logs below.
onnxruntime_BUILD_UNIT_TESTS=off
XNNPACK
Describe the issue
When building
onnxruntime==v1.20.0
with the XNNPACK EP usingvcpkg
, thelibXNNPACK.a
doesn't get built. It gets built normally when not usingvcpkg.
build/linux/Release/_deps/googlexnnpack-build/CMakeFiles/XNNPACK.dir
exists, but the built library itself doesn't.Urgency
No response
Target platform
x86 Linux
Build script
Error / output
logs.txt
Visual Studio Version
No response
GCC / Compiler Version
No response