Repository navigation
upgrade boost to 1.91.0 - #18128
Merged
Merged
upgrade boost to 1.91.0#18128
Conversation
Boost 1.91 bundles b2 5.4, which supports the Visual Studio 2026 toolset (vc145 / msvc-14.5), unblocking msvc145 prebuilt builds. The rstudio_boost namespace patch now also rewrites the hard-coded 'boost::n::' literals in Boost.Exception's compile-time __PRETTY_FUNCTION__ parser (new in 1.91), which otherwise fails a static assert once the namespace is renamed. Also fix exec() in dependencies/windows/tools.R to print captured output on failure instead of crashing on a vector passed to file.exists(). Addresses #17986
install-boost.R runs the namespace patch once per variant (debug, then release); the fixed-string boost::n:: rule matched inside the already-patched rstudio_boost::n:: literals on the second pass, yielding rstudio_rstudio_boost::n:: and failing the release build. Use a negative lookbehind so re-running the patch is a no-op. Also removes the temporary funcsig probe step.
The msvc145 prebuilts for Boost 1.91.0 are now published, so the windows-2025 e2e build can use toolset-matched prebuilts instead of relying on the msvc143 binary-compatibility fallback.
The rstudio-tools cache covers dependencies/common and dependencies/windows, which contain the tracked install scripts; a stale restore-keys hit overwrites the checked-out copies, silently reverting dependency version bumps (the Boost 1.91 bump ran with main's install-dependencies.cmd and failed CMake configure). Restore tracked files from git after the cache restore.
This was referenced Jul 2, 2026
RStudio E2E - all platforms2 test(s) failed
View / download the full reportDownload playwright-report.zip -- extract and open
All platforms - commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Addresses #17986.
Upgrades Boost 1.90.0 -> 1.91.0. Boost 1.91 bundles b2 5.4, the first release that recognizes the Visual Studio 2026 toolset (
vc145/msvc-14.5), which unblocks building the msvc145 prebuilts the VS 2026 pipeline needs -- Boost 1.90's bundled b2 rejectsvc145outright (Unknown toolset).What changed
install-boost,install-soci, Windowsinstall-*.cmd/install-*.R),src/cpp/CMakeLists.txt, the Linux README, and the dependency-build workflow default.__PRETTY_FUNCTION__parser inboost/exception/detail/type_info.hppmatches string literals that hard-codeboost::n::; after ourrstudio_boostrename nothing matches and a static assert fails the build (clang: "array is too large"; MSVC: C2466/C2070). Both namespace-patch scripts now rewrite those literals too -- with a negative lookbehind so the rewrite is idempotent, since on Windows the patch runs once per build variant over the same tree (the non-idempotent first attempt producedrstudio_rstudio_boost::n::on the release pass). Both scripts now document the idempotency requirement.exec()error reporting (dependencies/windows/tools.R): when a caller passesoutput = TRUE, the captured output is a character vector; the failure path calledfile.exists()on it and crashed R ('length = 49503' in coercion to 'logical(1)'), masking the underlying build error. It now prints the captured output.MSVC_TOOLSET_VERSION=145now that toolset-matched prebuilts exist, so the windows-2025 build stops relying on the msvc143 binary-compatibility fallback insrc/cpp/CMakeLists.txt(the fallback itself is kept as a safety net).Published artifacts
All uploaded to
rstudio-buildtoolsand verified publicly fetchable:Boost/boost_1_91_0.tar.bz2,Boost/boost_1_91_0.7z(sources, SHA-256-verified against boost.org)Boost/boost-1.91.0-win-msvc143.zip,Boost/boost-1.91.0-win-msvc145.zip(from green runs of the dependency-build workflow: msvc145, msvc143)soci-msvc143-4.0.3.zip,soci-msvc145-4.0.3.zip(built against the new Boost; not yet consumed, published for future use)Verification
install-boost; fullsrc/cppbuild against it succeeds;rstudio-tests --scope corepasses (421 tests).vc143/vc145tags.No NEWS.md entry: internal build/dependency change.
Checklist
NEWS.md