Skip to content

Drop <print>: build with GCC 13 (shared NumSim toolchain baseline) - #21

Closed
petlenz wants to merge 3 commits into
mainfrom
fix/gcc13-no-print
Closed

petlenz wants to merge 3 commits into
mainfrom
fix/gcc13-no-print

Conversation

@petlenz

@petlenz petlenz commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Why

<print> needs libstdc++ 14, which made GCC 14 the minimum for numsim-core and everything that depends on it (numsim-materials, numsim-fft-homogenization). The rest of the stack (numsim-fft, tmech) builds with GCC 13 and Clang 18. This aligns numsim-core with that baseline while keeping C++23.

What

  • numsim-core/print.h: numsim_core::print / println (optionally to a FILE*) on top of <format>, with compile-time checked format strings like std::print.
  • input_parameter_controller.h uses it instead of std::println.
  • Test tests/print.
  • CI matrix: gcc-13 and clang-18 (default libstdc++-13) added next to gcc-14 and clang-19.

Verified locally

Full test suite (66 tests) with g++-13, g++-14 and clang++-18; the header also compiles with clang++-18 against libstdc++-13.

…18 baseline)

<print> needs libstdc++ 14 and was the only reason numsim-core required
GCC 14. print.h provides print/println with the same compile-time checked
format strings on top of <format>, which libstdc++ 13 has.

CI: gcc-13 and clang-18 (default libstdc++-13) join gcc-14 and clang-19.
@petlenz petlenz changed the title Drop <print>: build with GCC 13 and Clang 18 Drop <print>: build with GCC 13 (shared NumSim toolchain baseline) Oct 1, 2026
@petlenz
petlenz force-pushed the fix/gcc13-no-print branch from 412d640 to dc9c08c Compare October 1, 2026 20:17
@petlenz

petlenz commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

Replaced by the single simplified PR.

@petlenz petlenz closed this Oct 1, 2026
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.

1 participant