Skip to content

[onnxruntime] build error on x64-windowsΒ #48699

@theoractice

Description

@theoractice

Package: onnxruntime:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.44.35221.0
  • CMake Version: 3.31.10
  • vcpkg-tool version: 2025-10-16-71538f2694db93da4668782d094768ba74c45991
    vcpkg-scripts version: 656be05 2025-12-04 (10 hours ago)

To Reproduce

vcpkg install onnxruntime

Failure logs

CMake Warning at ports/onnxruntime/portfile.cmake:2 (message):
  The port requires 'onnx' port build with CMake option
  ONNX_DISABLE_STATIC_REGISTRATION=ON
Call Stack (most recent call first):
  scripts/ports.cmake:206 (include)


Downloading https://github.com/microsoft/onnxruntime/archive/v1.23.2.tar.gz -> microsoft-onnxruntime-v1.23.2.tar.gz
Successfully downloaded microsoft-onnxruntime-v1.23.2.tar.gz
-- Extracting source D:/Coding/vcpkg/downloads/microsoft-onnxruntime-v1.23.2.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: D:/Coding/vcpkg/downloads/tools/cmake-3.31.10-windows/cmake-3.31.10-windows-x86_64/bin/cmake.exe -E tar xjf D:/Coding/vcpkg/downloads/microsoft-onnxruntime-v1.23.2.tar.gz
    Working Directory: D:/Coding/vcpkg/buildtrees/onnxruntime/src/v1.23.2-58f875a967.clean.tmp
    Error code: 1
    See logs for more information:
      D:\Coding\vcpkg\buildtrees\onnxruntime\extract-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
  scripts/cmake/vcpkg_from_github.cmake:127 (vcpkg_extract_source_archive_ex)
  ports/onnxruntime/portfile.cmake:10 (vcpkg_from_github)
  scripts/ports.cmake:206 (include)



D:\Coding\vcpkg\buildtrees\onnxruntime\extract-err.log
CMake Error: Problem with archive_write_header(): Invalid empty pathname
CMake Error: Current file: 
CMake Error: Problem extracting tar: D:/Coding/vcpkg/downloads/microsoft-onnxruntime-v1.23.2.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions