lemon-graph: fix build with GCC 15 and C++20#477756
lemon-graph: fix build with GCC 15 and C++20#477756GaetanLepage merged 1 commit intoNixOS:masterfrom
Conversation
gonsolo
commented
Jan 7, 2026
- Fix 'std::iterator' deprecation warnings by defining iterator traits explicitly.
- Fix 'std::allocator::construct' removal in C++20 using std::allocator_traits.
- Resolve uninitialized variable warnings in dim2::Point.
- Add [[fallthrough]] attributes to intentional switch case transitions.
bouk
left a comment
There was a problem hiding this comment.
not sure why you added me as a reviewer since I'm not a maintainer, but it doesn't seem a good idea to me to switch to a fork
There were two reviewers suggested in the corner top right. Sorry about that. I converted this PR to a draft since it is WIP. |
Version 1.3.1 was released in 2014. The fork from OpenROAD is at least updated to compile. |
|
Could you review, @eljamm? |
|
$ hydra-check lemon-graph
Build Status for nixpkgs.lemon-graph.x86_64-linux on jobset nixos/trunk-combined
https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.lemon-graph.x86_64-linux
✔ lemon-graph-1.3.1 2025-12-31 https://hydra.nixos.org/build/317865215
✔ lemon-graph-1.3.1 2025-11-23 https://hydra.nixos.org/build/314192137
✔ lemon-graph-1.3.1 2025-11-13 https://hydra.nixos.org/build/313176240
✔ lemon-graph-1.3.1 2025-10-21 https://hydra.nixos.org/build/310404901
✔ lemon-graph-1.3.1 2025-10-07 https://hydra.nixos.org/build/309254064
✖ (Failed) lemon-graph-1.3.1 2025-10-05 https://hydra.nixos.org/build/308844417
✔ lemon-graph-1.3.1 2025-09-11 https://hydra.nixos.org/build/306922703
✔ lemon-graph-1.3.1 2025-08-25 https://hydra.nixos.org/build/305602029
✔ lemon-graph-1.3.1 2025-07-27 https://hydra.nixos.org/build/303380753
✔ lemon-graph-1.3.1 2025-07-14 https://hydra.nixos.org/build/302408273And I can indeed build it from the latest master: nix build github:nixos/nixpkgs/master#lemon-graph -L
If these are just warnings, I think we can probably ignore them for now since they don't appear to be breaking the build. |
Ah, yes, it's more complicated than that; while trying to get Librelane into Nix, I had to update OpenROAD:
I fixed everything upstream in the OpenROAD fork: I also contacted the author of Lemon at lemon.cs.elte.hu, you may have received the email. Thanks anyway, |
|
The error from an updated openroad is: This is not triggered in lemon-graph since it is header only and not in test. |
|
eljamm
left a comment
There was a problem hiding this comment.
I took a different path now; just vendor the necessary patch from the OpenROAD fork.
I hope this is acceptible.
Yes, I think that's a much better solution.
x86_64-linux❌ 2 packages failed to build:
* coloquinte * openroad
Openroad is already broken with an open PR to fix it and Coloquinte will potentially work after it's been updated:
This PR looks good to me now, but let's wait until these 2 are fixed before we merge.
|
|
I think this is ready, maybe @eljamm @imincik @GaetanLepage? |
|
|