Repository navigation
Compile CTarget C source in ccompile test (Symbolics no longer accepts expression=Val{false}) - #5261
Merged
ChrisRackauckas merged 1 commit intoOct 14, 2026
Conversation
…sion=Val{false}
Symbolics v7.43.0 (JuliaSymbolics/Symbolics.jl#2040) makes CTarget with
expression=Val{false} throw an ArgumentError. Build the C source with
expression=Val{true}, compile it with gcc, and call it through Libdl.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code (subagent of ci-green head)
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_011aK5Xvp9NpdkzKuEwtiMGd
Member
Independent review (Devin CLI 3000.11.3, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium): MERGE, risk low. Full reviewVERDICT: MERGE Blocking findingsNone. Non-blocking findings
What I ranAll results in this section were confirmed by running them. I used Julia 1.12.7 with a scratch env containing the dev'd
What I did not verify
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (review), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ignore until reviewed by @ChrisRackauckas.
What and why
Symbolics v7.43.0 (JuliaSymbolics/Symbolics.jl#2040, closing JuliaSymbolics/Symbolics.jl#1672) makes
build_function(...; target = CTarget(), expression = Val{false})throwArgumentErroron purpose, following the maintainer's guidance in the issue.lib/ModelingToolkitBase/test/ccompile.jlused that combination, so the MTKBaseExtendedgroup (and the SciMLBase downstream job "ModelingToolkit.jl/Extended", e.g. https://github.com/SciML/SciMLBase.jl/actions/runs/37642465025/job/112864709358) errors in "C Compilation Test". The test now takes the C source (expression = Val{true}), compiles it withgcc, and callsdiffeqfthroughLibdl.dlopen/dlsym/ccall, comparing against the Julia-built function as before. Test-only change; no package source touched.Verification (local, Symbolics v7.44.1, ModelingToolkitBase from this branch, only the ccompile testset)
Before (master
ccompile.jl):After:
Runic
--checkandtyposclean on the changed file.Not verified
Full
Extendedgroup (other testsets) and other groups were not run locally (machine compute cap); CI runs them. Needsgccon the runner, same as before.Risk assessment
🤖 Generated with Claude Code (model: claude-opus-5-5[1m]) https://claude.ai/code/session_011aK5Xvp9NpdkzKuEwtiMGd
Independent review: Devin Fusion (fusion-claude-opus-5-5-high-sidekick-swe-2-medium) rated it low, verdict MERGE: #5261 (comment)