Skip to content

CMake error on Windows with -use_xnnpack #23174

Open
@mram0509

Description

@mram0509

Describe the issue

Using Visual Studio 2022

Using build.bat to build xnnpack ep using --use_xnnpack

Gives a CMake error

Am I missing any dependencies?

Urgency

No response

Target platform

Windows

Build script

.\build.bat --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --use_xnnpack --use_dml

Error / output

Building Custom Rule C:/onnxruntime-v1.20.1/build/Windows/Release/_deps/googlexnnpack-subbuild/CMakeLists.txt
No update step for 'googlexnnpack-populate'
Performing patch step for 'googlexnnpack-populate'
patching file CMakeLists.txt
No configure step for 'googlexnnpack-populate'
No build step for 'googlexnnpack-populate'
No install step for 'googlexnnpack-populate'
No test step for 'googlexnnpack-populate'
Completed 'googlexnnpack-populate'
Building Custom Rule C:/onnxruntime-v1.20.1/build/Windows/Release/_deps/googlexnnpack-subbuild/CMakeLists.txt
-- Building for XNNPACK_TARGET_PROCESSOR: x86_64
-- Generating microkernels.cmake
CMake Error at C:/onnxruntime-v1.20.1/build/Windows/Release/_deps/googlexnnpack-src/CMakeLists.txt:346 (MESSAGE):
Failed to generate "microkernels.cmake".

Visual Studio Version

2022

GCC / Compiler Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateep:Xnnpackissues related to XNNPACK EPplatform:windowsissues related to the Windows platformstaleissues 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