The GitHub Actions job "Publish wheel" on tvm-ffi.git/v0.1.13 has failed. Run started by GitHub user cyx-6 (triggered by cyx-6).
Head commit for run: ff7e3d4f6ece3ffcf48b7111932fd7b6bd77db5d / Yaxing Cai <[email protected]> [FIX] Select the C++ standard for the torch addon by torch version (#687) Torch 2.13 uses C++20 constructs in its public headers, such as designated initializers and default member initializers for bit-fields, and builds its own extensions with C++20 accordingly. The torch C-DLPack addon still compiled with C++17, which makes the Windows wheel job fail to compile: ``` error C7582: default member initializers for bit-fields requires at least /std:c++20 error C7555: use of designated initializers requires at least /std:c++20 error C2139: 'torch::autograd::Node': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_base_of' ``` GCC and Clang accept those constructs in C++17 mode as extensions and only warn about them, so Linux and macOS keep building while MSVC rejects them outright. That is why `main` has been red on Windows since torch 2.13.0 (released 2026-07-08) while the other platforms stayed green on the same commit. ### Changes - Select the C++ standard from the installed torch version rather than hard-coding it: C++20 for torch 2.13 and later, C++17 before that. Applied to both the Windows (`/std:`) and Linux/macOS (`-std=`) build paths. - The build script already reports compiler errors through its own stderr, but the tests discarded the child output and asserted on the exit code alone, so failures surfaced as a bare `exit status 1` and hid the diagnostics above. Capture that output and attach it to the assertion. ### Testing - `tests/python/test_optional_torch_c_dlpack.py` passes on Linux with torch 2.13.0, building the addon from a clean cache. - Version selection verified across torch 2.8.0, 2.12.1, 2.13.0, 2.13.1, 2.14.0 and 3.0.0. - The Windows wheel job only runs on `main` (`ci_mainline_only.yml`) and installs torch 2.13 there, so it was validated by dispatching that workflow against this branch. Report URL: https://github.com/apache/tvm-ffi/actions/runs/30551736573 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
