Skip to content

Use Base's GMP library name in ccall - #32

Merged
oscardssmith merged 1 commit into
JuliaMath:mainfrom
KristofferC:kc/base-lib-names
Oct 18, 2026
Merged

oscardssmith merged 1 commit into
JuliaMath:mainfrom
KristofferC:kc/base-lib-names

Conversation

@KristofferC

Copy link
Copy Markdown
Member

Julia 1.14 on Windows no longer installs the unversioned libgmp.dll, only libgmp-10.dll, so a ccall into :libgmp fails with could not load library there (JuliaLang/julia#63849). Use Base.GMP.libgmp, which names the library that Base itself loads.

Julia versions before 1.9 do not define it, so fall back to the bare name there.

🤖 Generated with Claude Code

Julia 1.14 on Windows no longer installs the unversioned `libgmp.dll`, only `libgmp-10.dll`, so a `ccall` into `:libgmp` fails with `could not load library` there (JuliaLang/julia#63849). Use `Base.GMP.libgmp`, which names the library that Base itself loads.

Julia versions before 1.9 do not define it, so fall back to the bare name there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.36%. Comparing base (0a687ff) to head (9526d07).

Files with missing lines Patch % Lines
src/IntegerMathUtils.jl 66.66% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #32   +/-   ##
=======================================
  Coverage   95.36%   95.36%           
=======================================
  Files           1        1           
  Lines         151      151           
=======================================
  Hits          144      144           
  Misses          7        7           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oscardssmith
oscardssmith merged commit 5ad2f78 into JuliaMath:main Oct 18, 2026
7 of 8 checks passed
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.

2 participants