Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] libXNNPACK.a not built when building with vcpkg and onnxruntime_BUILD_UNIT_TESTS=off #22789

Open
cyanic-selkie opened this issue Nov 9, 2024 · 1 comment
Labels
build build issues; typically submitted using template ep:Xnnpack issues related to XNNPACK EP

Comments

@cyanic-selkie
Copy link

Describe the issue

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.

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

./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

Error / output

logs.txt

Visual Studio Version

No response

GCC / Compiler Version

No response

@cyanic-selkie cyanic-selkie added the build build issues; typically submitted using template label Nov 9, 2024
@github-actions github-actions bot added the ep:Xnnpack issues related to XNNPACK EP label Nov 9, 2024
@cyanic-selkie
Copy link
Author

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.

logs.txt

@cyanic-selkie cyanic-selkie changed the title [Build] [Build] libXNNPACK.a not built when building with vcpkg and onnxruntime_BUILD_UNIT_TESTS=off Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template ep:Xnnpack issues related to XNNPACK EP
Projects
None yet
Development

No branches or pull requests

1 participant