Skip to content

Fix compiling with gcc 15, nvcc 13 - #7521

Merged
nilsvu merged 4 commits into
sxs-collaboration:developfrom
nilsvu:upgrade_container
Sep 5, 2026
Merged

Fix compiling with gcc 15, nvcc 13#7521
nilsvu merged 4 commits into
sxs-collaboration:developfrom
nilsvu:upgrade_container

Conversation

@nilsvu

@nilsvu nilsvu commented Aug 31, 2026

Copy link
Copy Markdown
Member

Proposed changes

Fix issues to support GCC 15 and nvcc 13

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.
  • If a coding agent was used, have a co-author trailer of the form
    "Co-Authored-By: " as the last line of the
    commit, e.g. "Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com",
    "Co-Authored-by: Codex noreply@openai.com", or
    "Co-Authored-By: GitHub Copilot CLI noreply@microsoft.com".

Further comments

@nilsvu nilsvu changed the title Upgrade container to Ubuntu 26.04 Upgrade container to Ubuntu 26.04, raise compiler requirements Aug 31, 2026

@nilsdeppe nilsdeppe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please factor this into several PRs? There are a number of additional changes that are clearly necessary for supporting newer compilers or fixing bugs found by them, but the name and description of the PR makes that not at all obvious.

nilsvu and others added 4 commits September 4, 2026 21:23
Widen the boost odeint warning suppression from GCC 13 to GCC 13 and newer.

Stop enabling `-Wdisabled-optimization`. GCC 15's new `ext-dce` pass declines
to run on very large functions and reports that through this warning, which
`-Werror` turns into a build failure. Nothing in the code is wrong, and
raising the size limit would only move the threshold.

Give the DataBox member function pointers explicit target types, which nvcc
13 needs to avoid naming these host-only functions while compiling for
device.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The buffer is a `std::array`, so every slot holds a live object from
construction. `emplace` constructed over those and `pop` destroyed them, so
the array's destructor destroyed popped slots a second time. GCC 15 surfaces
this as a double free in `Unit.Evolution.DG.InboxTags`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`libck` expects `CkRegisterMainModule`, but only a generated main module
defines it, so executables without one, such as `ConvertComposeTable`, fail
to link. Define it weakly; a real main module overrides it. It aborts rather
than doing nothing, so an executable linked without its main module says so
instead of hanging.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
We build with C++20, so the `__cplusplus < 201402L` branches are
unreachable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@nilsvu nilsvu changed the title Upgrade container to Ubuntu 26.04, raise compiler requirements Fix compiling with gcc 15, nvcc 13 Sep 4, 2026
@nilsvu nilsvu added the build system CMake build system label Sep 4, 2026
@nilsvu

nilsvu commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

Sure! I dropped the container upgrade; only pushed the gcc 15 and nvcc 13 fixes.

@nilsvu
nilsvu merged commit 5f3d1d8 into sxs-collaboration:develop Sep 5, 2026
20 of 23 checks passed
@nilsvu

nilsvu commented Sep 5, 2026

Copy link
Copy Markdown
Member Author

Here's the container-upgrade follow-up: #7539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build system CMake build system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants