Fix: Add missing include needed for gcc v15 and clang v19#2313
Fix: Add missing include needed for gcc v15 and clang v19#2313galabovaa merged 1 commit intoERGO-Code:latestfrom
Conversation
There is a missing include for cstdint. Without it, the build fails on gcc v15 and clang v19.
|
Are you happy to release this as 1.10.1 @galabovaa ? |
|
Update: I have been able to get it to build with clang v19 on Alpine Linux instead (I was using Arch before). I think it may be that clang was using gcc's libstdc++ rather than its own libc++. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## latest #2313 +/- ##
=======================================
Coverage 78.93% 78.93%
=======================================
Files 343 343
Lines 83419 83419
=======================================
+ Hits 65849 65850 +1
+ Misses 17570 17569 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This is in zstr which is external from HiGHS. We have 1.0.5 from three years ago and I see now at https://github.com/mateidavid/zstr that they are at 1.0.7 tagged in December 2024. The particular include line was added there only four days ago. I would rather use their next tagged release than the current version of zstr/latest for the update in HiGHS. So, for now, I will merge this into latest and use it in the next release. |
|
Thanks @alexdewar , we can avoid the patch release, then |
|
Thanks for being so responsive 😄 |
|
I'm wondering if making a patch release might still be appropriate, unless we know that a new version of |
|
We are preparing to make a release soon anyway and this fix will be included. I tried the version of zstr from latest, but I get a memory leak in our testing, so will certainly wait until they can make a release. Our patched one should be out relatively soon, I guess in a week or two. |
|
Ok, that's not so bad. Thanks for the update. |
There is a missing include for cstdint. Without it, the build fails on gcc v15 and clang v19 (see below).
Gcc v15 has already been shipped in some distros (Fedora, Arch, maybe others), so it would be great if you could tag a new release ASAP. I'm using HiGHS indirectly via the Rust crate and currently can't build it on my machine.
Build log: