mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[GH-ISSUE #132] nanobind 3.0 fails with Clang targeting Windows: dllimport vectorcall aliases are not constant expressions #42
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @contentis on GitHub (Aug 23, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-kitchen/issues/132
nanobind 3.0.0 fails to compile with Clang targeting the Windows/MSVC ABI. The failure occurs in the new vectorcall aliases:
On Windows, PyObject_Vectorcall and PyObject_VectorcallMethod are imported functions. Clang does not consider their addresses constant expressions.
The MSVC-compiled CUDA extension succeeds; the same nanobind backend fails when compiled by ROCm Clang.
Pinning nanobind<3 resolves the build failure but is only a WAR that might get lost over time.