Skip to content

fix: bump minimum Boost to 1.78 to fix boost::filesystem link errors - #9042

Merged
timosachsenberg merged 1 commit into
developfrom
fix/bump-min-boost-1.78
Mar 30, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
fix/bump-min-boost-1.78

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fixes boost filesystem not found #9039
  • Bumps minimum required Boost from 1.74 to 1.78
  • BOOST_PROCESS_USE_STD_FS (defined at src/openms/CMakeLists.txt:166) was introduced in Boost 1.78. On older versions, boost::process still uses boost::filesystem internally, but Boost::filesystem is not linked — causing undefined reference errors at link time.
  • Boost 1.78 was released in December 2021. All CI environments and current distros (Ubuntu 24.04, Debian 12, macOS Homebrew, conda-forge) ship Boost >= 1.78.

Test plan

  • CI builds pass on all platforms (the actual compilation/linking validates the fix)
  • Users on Boost < 1.78 now get a clear CMake configure-time error instead of a cryptic linker failure

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Increased minimum Boost dependency requirement to version 1.78.0.
    • Updated build configuration to use standard filesystem implementation.

…9039)

BOOST_PROCESS_USE_STD_FS was defined unconditionally but only exists
since Boost 1.78. On older versions (e.g. 1.74), boost::process still
uses boost::filesystem internally, causing undefined reference errors
because Boost::filesystem was never linked.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d9385612-1404-4412-a135-f0e1271c0128

📥 Commits

Reviewing files that changed from the base of the PR and between 277948c and 1176f33.

📒 Files selected for processing (2)
  • cmake/build_system_macros.cmake
  • src/openms/CMakeLists.txt

📝 Walkthrough

Walkthrough

The pull request updates Boost version requirements for OpenMS from 1.74.0 to 1.78.0 and removes outdated version hints from the CMake configuration. A compile definition is added to configure Boost.Process to use standard C++ filesystem instead of boost::filesystem library, addressing linker errors related to undefined Boost filesystem symbols.

Changes

Cohort / File(s) Summary
Boost Version Discovery
cmake/build_system_macros.cmake
Updated Boost_ADDITIONAL_VERSIONS by removing hints for versions 1.74–1.77 and capping at 1.78; increased minimum required Boost version from 1.74.0 to 1.78.0 in find_package.
OpenMS Build Configuration
src/openms/CMakeLists.txt
Added BOOST_PROCESS_USE_STD_FS compile definition to OpenMS target to configure Boost.Process to use standard C++ filesystem instead of boost::filesystem library.

Possibly related PRs

Suggested reviewers

  • cbielow
  • jpfeuffer

Poem

🐰 A rabbit hops through Boost gardens bright,
From 1.74 to 1.78—what a leap of delight!
No more boost::filesystem in sight,
Standard filesystems make linking just right! 📚✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main change: bumping the minimum Boost version to 1.78 to resolve boost::filesystem link errors.
Linked Issues check ✅ Passed The pull request successfully addresses issue #9039 by bumping minimum Boost to 1.78, enabling BOOST_PROCESS_USE_STD_FS macro, and ensuring users get a configure-time error instead of linker failures.
Out of Scope Changes check ✅ Passed All changes are directly related to the stated objective: removing old Boost version hints, updating the minimum version requirement to 1.78, and adding the BOOST_PROCESS_USE_STD_FS compile definition.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/bump-min-boost-1.78

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@timosachsenberg
timosachsenberg requested a review from cbielow March 30, 2026 17:41
@timosachsenberg
timosachsenberg merged commit 742e5e1 into develop Mar 30, 2026
41 checks passed
@timosachsenberg
timosachsenberg deleted the fix/bump-min-boost-1.78 branch March 30, 2026 19:52
github-actions Bot pushed a commit that referenced this pull request Mar 31, 2026
Add missing Build System entry for minimum Boost version bump to 1.78
(#9042) to fix boost::filesystem link errors.

Co-authored-by: Copilot <[email protected]>
@cbielow

cbielow commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

installation instructions, particularly Linux and MacOS should be augmented to install Boost::filesystem

@timosachsenberg

Copy link
Copy Markdown
Contributor Author

I think it is not needed anymore

timosachsenberg pushed a commit that referenced this pull request Mar 31, 2026
Add missing Build System entry for minimum Boost version bump to 1.78
(#9042) to fix boost::filesystem link errors.

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.

boost filesystem not found

2 participants