Repository navigation
feat: require C++23 and update CI to macOS 15 / Xcode 16 - #9037
Conversation
Bump the C++ standard from C++20 to C++23 across the build system (compiler_flags.cmake, add_library_macros.cmake, contrib). Update minimum compiler versions: GCC 13, Clang 17, AppleClang 16 (Xcode 16), VS 2022 17.6. Migrate macOS CI runners from macos-14 to macos-15 with Xcode 16.4 and MACOSX_DEPLOYMENT_TARGET=15.0. Update install docs and README accordingly. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughCI macOS runners and Xcode/toolchain were bumped to macos-15 / Xcode 16.4, MACOSX_DEPLOYMENT_TARGET set to 15.0, Ubuntu clang++ advanced to 18; project C++ standard raised to C++23 with ARM/AArch64 non-MSVC undef flags; docs and one exception-argument string updated. ChangesBuild & Toolchain
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@doc/doxygen/install/install-win.doxygen`:
- Around line 41-42: Update the remaining Visual Studio 2019 references in
install-win.doxygen to match the new VS2022 requirement: search for and replace
occurrences of the generator/name tokens "Visual Studio 16 2019", "VS2019",
"2019\\Community", and "msvc2019_64" with the VS2022 equivalents (e.g., "Visual
Studio 17 2022", "VS2022", the 2022 Community path, and "msvc2022_64") so the
documented CMake generators and paths are consistent with the C++23/Visual
Studio 2022 requirement stated in the bolded block.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2af52927-cab4-4324-a1eb-a20cee63cc8c
📒 Files selected for processing (7)
.github/workflows/openms_ci_matrix_full.yml.github/workflows/pyopenms-wheels-cibuildwheel.ymlREADME.mdcmake/add_library_macros.cmakecmake/compiler_flags.cmakedoc/doxygen/install/install-macs.doxygendoc/doxygen/install/install-win.doxygen
- Fix ModificationDefinition.cpp: replace nullptr with "" for std::string parameter (C++23 deletes std::string(nullptr_t)) - Bump CI Clang from 17 to 18 to avoid known libstdc++ 14 bug with C++23 pair-like concept (affects std::map/unordered_map) - Update install-win.doxygen: replace stale VS2019 references with VS2022 (generators, paths, Qt toolchain names) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/openms/source/CHEMISTRY/ModificationDefinition.cpp (1)
91-92: Correct fix for C++23 compatibility.This change properly addresses the C++23 requirement where
std::string(nullptr)is undefined behavior. Passing""is valid since the parameter isconst std::string&.For consistency with other call sites (e.g.,
ResidueModification.cpp:642-643which uses"nullptr") and slightly more informative error messages, you could consider using"nullptr"instead:throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, - "No modification defined", ""); + "No modification defined", "nullptr");This would produce "the value 'nullptr' was used but is not valid" rather than "the value '' was used but is not valid". However,
""is also perfectly acceptable.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/CHEMISTRY/ModificationDefinition.cpp` around lines 91 - 92, The throw using Exception::InvalidValue passes nullptr (undefined in C++23); replace that nullptr argument with a valid std::string (e.g., "" or the more informative "nullptr") in the throw expression so the const std::string& parameter receives a valid value; update the throw in ModificationDefinition.cpp where Exception::InvalidValue is called to use the chosen string literal to match other call sites like ResidueModification.cpp.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/openms/source/CHEMISTRY/ModificationDefinition.cpp`:
- Around line 91-92: The throw using Exception::InvalidValue passes nullptr
(undefined in C++23); replace that nullptr argument with a valid std::string
(e.g., "" or the more informative "nullptr") in the throw expression so the
const std::string& parameter receives a valid value; update the throw in
ModificationDefinition.cpp where Exception::InvalidValue is called to use the
chosen string literal to match other call sites like ResidueModification.cpp.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 3722e452-4580-423a-8357-999861b21d1a
📒 Files selected for processing (3)
.github/workflows/openms_ci_matrix_full.ymldoc/doxygen/install/install-win.doxygensrc/openms/source/CHEMISTRY/ModificationDefinition.cpp
🚧 Files skipped from review as they are similar to previous changes (2)
- doc/doxygen/install/install-win.doxygen
- .github/workflows/openms_ci_matrix_full.yml
C++23's <stdfloat> defines std::float16_t/float32_t/float64_t which conflict with ARM NEON's global-scope typedefs when 'using namespace std;' is present. Suppress the __STDCPP_FLOAT*_T__ feature macros on ARM targets so <stdfloat> types are never defined. OpenMS does not use C++23 extended floating-point types. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Remove -U__STDCPP_FLOAT128_T__ and -U__STDCPP_BFLOAT16_T__ as those types have no ARM NEON conflict and suppressing them breaks Boost.Math which references std::float128_t. Only suppress float16/32/64 which actually conflict with NEON typedefs. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
@jpfeuffer got this to compile now. Would make some range code a bit easier to deal with. Opinions? |
|
This is great! I'm looking forward to deleting workarounds in my PIP-ECHO code. |
|
If you build on macos15, all dependencies will have been built with min os version 15 by brew. This means you will stop supporting macos14 unless you build all dependencies from scratch or with conda. It will be a tradeoff |
|
K then let’s do it. |
|
Note that macos14 is 2.5 years old and still officially supported by Apple on all hardware supporting it. |
|
I checked and as we only support arm64 at least in principle all hardware could be updated to at least macos 15. I am a bit tired of mac holding us back in terms of C++ features etc. |
PR #9037 raised the required C++ standard to C++23 and updated the macOS/Windows build instructions and README accordingly, but the Linux build guide stated no compiler requirement at all. - install-linux.doxygen: add a "Compiler Requirements" section (GCC 13+ / Clang 17+) and bump the documented Ubuntu/Debian baseline from 22.04 to 24.04 (24.04's default build-essential toolchain satisfies C++23; CI runs on ubuntu-24.04). - AGENTS.md: update the C++ standard (C++20 -> C++23) and align the stale Windows/macOS minimum-compiler notes (VS 2022 17.6+, Xcode 16+). https://claude.ai/code/session_01Hz9sx6kxhaoN4orfZJZtcX
…23 requirement The macOS line cited #8486, #8494 and #8527, which are notarization PRs; the references came along from a neighbouring bullet when the changelog was condensed. The minimum came from #8450 (14, with the Intel builds dropped), #9037 (15, together with C++23 and the macos-15 runners) and #10202 (15 for the wheels). The 3.6.0 changelog never said that OpenMS now needs C++23 (#9037). It now names the minimum compilers from cmake/min_compiler_versions.cmake. The dataframe page shows default_missing_values=None, the actual default of PeptideIdentificationList.to_df(), and what None stands for. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
…5 minimum (#10285) * [DOC,PYOPENMS] Update the user guide to the 3.6 API; macOS 15 minimum The user-guide examples still used the 3.5.0 API. Replayed against a 3.6 wheel built from develop (with the plot_spectrum fix of #10280), 20 of the 46 pages failed, 14 of which had passed on 3.5.0. Now 36 pass. Three still fail, two on bindings that are missing in 3.6 and one on #10260 item 4. Two need optional packages (datashader, massql). - Output arguments are return values: pickExperiment, getAllNames, digest, align, getDecompositions, getTag, ProtXMLFile.load, applyVariableModifications, getSpectrumAlignment, MassTraceDetection.run, ElutionPeakDetection.detectPeaks and filterByPeakWidth, and SimpleSearchEngineAlgorithm.search. - Strings are str: no .decode(), str keys and arguments instead of b"...", and element compositions print with str keys. char arguments such as PeptideEvidence.setAABefore take "R" and reject b"R". - Removed API: pyopenms.String, DPosition1 and the LogConfigHandler constructor. - Deprecated API: get_df() is now to_df(), and peptide_identifications_to_df() is now PeptideIdentificationList.to_df(). The dataframe page documents the to_df() signatures and the columns 3.6 returns. The merge example is left for #10260 item 4. - Examples that could not run anywhere: the FAQ snippet used an undefined exp, and memory_management and the detailed peptide search read files that exist only in a source checkout. They download their input now, like the other pages. - The stand-alone mass decomposition script imports pyopenms again, which also makes the prose's "line 8 and 9" right. The SpectrumLookup regex in ms_data is a raw string, which removes the invalid escape sequence warning. CHANGELOG: the minimum macOS version is 15, not 14. The wheels are built with MACOSX_DEPLOYMENT_TARGET 15.0. In the 2026-09-24 installer, libOpenMS links a bundled libzstd whose minimum OS is 15.0, so every TOPP tool needs macOS 15, not only the GUI, whose Qt dependencies are built for 15 as well. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * [DOC] CHANGELOG: cite the PRs behind the macOS minimum; state the C++23 requirement The macOS line cited #8486, #8494 and #8527, which are notarization PRs; the references came along from a neighbouring bullet when the changelog was condensed. The minimum came from #8450 (14, with the Intel builds dropped), #9037 (15, together with C++23 and the macos-15 runners) and #10202 (15 for the wheels). The 3.6.0 changelog never said that OpenMS now needs C++23 (#9037). It now names the minimum compilers from cmake/min_compiler_versions.cmake. The dataframe page shows default_missing_values=None, the actual default of PeptideIdentificationList.to_df(), and what None stands for. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * [DOC] peptide_search: call removeDanglingProteinReferences, not its 3.5 name updateProteinReferences is the pyOpenMS 3.5 name. The bindings PR brings it back only as a deprecated alias, and the page replay reports an example that teaches a deprecated call. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 --------- Co-authored-by: Claude <[email protected]>
* [BUILD] Make the macOS package declare the macOS it needs The package build targeted macOS 14, but it runs on macos-15, and the Homebrew libraries the package bundles (Qt's dependencies, ICU, zstd) are built for 15. The 3.6.0 installer therefore installed on macOS 14, where the tools then failed to load. The minimum has been 15 since #9037, which moved the runners to macos-15. - .github/actions/build/action.yml: macosx_deployment_target defaults to 15.0, with the reason it has to match the runner. This answers the FIXME that asked whether it is needed. - The installer refuses an older macOS. cmake/Modules/ CPack.distribution.dist.in is CMake's productbuild Distribution template, unchanged from CMake 3.24 to 4.1, plus an <allowed-os-versions> element with the deployment target. CPack finds it through CMAKE_MODULE_PATH. CPACK_APPLE_PKG_INSTALLER_CONTENT cannot carry the element, because CPack generates that variable. The attribute is single-quoted because CPack copies CPACK_* values into CPackConfig.cmake without escaping them. - TOPPView, TOPPAS and INIFileEditor declare the deployment target as LSMinimumSystemVersion instead of a hardcoded 12.0. Builds without a target keep 12.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * [BUILD] Put the installer's macOS minimum inside <volume-check> Apple's Distribution XML reference allows <allowed-os-versions> only inside <volume-check>; it is not a valid child of <installer-gui-script>. <volume-check> requires a script attribute, so it gets script='true': the volume passes the script, and the allowed-os-versions child adds the OS check. The value stays single-quoted for CPackConfig.cmake. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 * [DOC] CHANGELOG: bin/qt.conf is new in the macOS package, not restored 3.5.0's package_mac_productbuild.cmake already had the qt.conf install commented out, so its package most likely could not load the Qt platform plugin in ExecutePipeline either. Drop "again" and cite #10280, which added the file. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7 --------- Co-authored-by: Claude <[email protected]>
Summary
compiler_flags.cmake,add_library_macros.cmake, andcontrib/CMakeLists.txtmacos-14tomacos-15with Xcode 16.4 andMACOSX_DEPLOYMENT_TARGET=15.0Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Documentation