Skip to content

[llvm22] Fixes the cross-DSO TypeID split#4411

Merged
sacpis merged 4 commits intollvm22_updatefrom
debug_llvm22_update
Apr 29, 2026
Merged

[llvm22] Fixes the cross-DSO TypeID split#4411
sacpis merged 4 commits intollvm22_updatefrom
debug_llvm22_update

Conversation

@sacpis
Copy link
Copy Markdown
Collaborator

@sacpis sacpis commented Apr 29, 2026

LLVM ERROR: can't create Attribute 'mlir::StringAttr' because storage uniquer isn't initialized: the dialect was likely not loaded.

  • Root cause
    • libcudaq-mlir-runtime.so had its own TypeID copies on Linux.The Apple-only CAPI-prepend block was never extended to Linux.
    • Appended $ORIGIN/../cudaq/mlir/_mlir_libs (wheel/install layout) and $ORIGIN/../python/cudaq/mlir/_mlir_libs (build tree) to the global Linux CMAKE_INSTALL_RPATH
    • Wheel build used BFD ld, not LLD, on Linux. build_cudaq.sh passes -DLLVM_USE_LINKER=lld but scikit-build-core didn't. Under BFD, the CAPI-prepend trick fails for _quakeDialects.so. Added a Linux-only override in pyproject.toml, pyproject.toml.cu12, pyproject.toml.cu13.

Signed-off-by: Sachin Pisal <spisal@nvidia.com>
Signed-off-by: Sachin Pisal <spisal@nvidia.com>
@sacpis sacpis changed the title [DNM] Debugging [DNM] Debugging LLVM22 Apr 29, 2026
sacpis added 2 commits April 29, 2026 19:21
Signed-off-by: Sachin Pisal <spisal@nvidia.com>
Signed-off-by: Sachin Pisal <spisal@nvidia.com>
@sacpis sacpis changed the title [DNM] Debugging LLVM22 LLVM22 builds & tests Apr 29, 2026
@sacpis sacpis changed the title LLVM22 builds & tests [llvm22] Fixes the cross-DSO TypeID split Apr 29, 2026
@sacpis sacpis merged commit fbb5a2e into llvm22_update Apr 29, 2026
207 of 212 checks passed
@sacpis sacpis deleted the debug_llvm22_update branch April 29, 2026 20:55
github-actions Bot pushed a commit that referenced this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant