Skip to content

Fix CI: remove broken Clang_jll import in generate_C_API.jl - #12

Merged
terasakisatoshi merged 1 commit into
mainfrom
fix/clang-jll-import
Sep 6, 2026
Merged

Fix CI: remove broken Clang_jll import in generate_C_API.jl#12
terasakisatoshi merged 1 commit into
mainfrom
fix/clang-jll-import

Conversation

@terasakisatoshi

Copy link
Copy Markdown
Member

Problem

CI was failing on every PR (Integration Test on ubuntu/macos, Test CalcPi.jl on ubuntu) with:

ERROR: LoadError: UndefVarError: `Clang_jll` not defined in `Clang.LibClang`

Root cause

CalcPi.jl/utils/generate_C_API.jl has:

using Clang.Generators
using Clang.LibClang.Clang_jll

The currently resolved Clang.jl (v0.19.3) no longer depends on Clang_jll from Clang.LibClang — that submodule now depends on Clang_unified_jll instead. The Clang_jll import is not referenced anywhere else in the file, so it's dead code left over from an older Clang.jl API, and simply removing it fixes the build.

Verification

Reproduced and fixed locally by running every step from .github/workflows/ci.yml's test-calcpi-jl / test-integration jobs directly (deps/build.jl, then Pkg.test("CalcPi")), all of which now pass:

Test Summary:            | Pass  Total  Time
Basic MonteCarloPi Tests |   27     27  0.3s
Test Summary: | Pass  Total  Time
C-API Tests   |   29     29  0.0s
Test Summary:     | Pass  Total  Time
Integration Tests |   19     19  0.1s

Once merged, main's CI should go green again and the currently-blocked Dependabot PRs (#8, #9, #10, #11) should pass after a rebase/merge from main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YU8yMLZkRkqta9wbWPGfgx

Clang.jl (currently resolved v0.19.3) no longer exposes Clang_jll under
Clang.LibClang — that submodule now depends on Clang_unified_jll instead.
The unused `using Clang.LibClang.Clang_jll` import therefore fails with:

    UndefVarError: `Clang_jll` not defined in `Clang.LibClang`

This broke deps/build.jl (which calls generate_C_API.jl) and made
"Test CalcPi.jl" and "Integration Test" fail in CI on every PR. The
import isn't referenced anywhere else in the file, so it's safe to drop.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YU8yMLZkRkqta9wbWPGfgx
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-06T07:23:50.133329Z bf57c4f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@terasakisatoshi
terasakisatoshi merged commit e8ae566 into main Sep 6, 2026
23 checks passed
@terasakisatoshi
terasakisatoshi deleted the fix/clang-jll-import branch September 6, 2026 07:30
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