Skip to content

upgrade boost to 1.91.0 - #18128

Merged
kevinushey merged 7 commits into
mainfrom
feature/upgrade-boost-1.91
Jul 2, 2026
Merged

kevinushey merged 7 commits into
mainfrom
feature/upgrade-boost-1.91

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

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 rejects vc145 outright (Unknown toolset).

What changed

  • Version bump 1.90.0 -> 1.91.0 across the dependency scripts (install-boost, install-soci, Windows install-*.cmd / install-*.R), src/cpp/CMakeLists.txt, the Linux README, and the dependency-build workflow default.
  • Namespace-patch fix for Boost.Exception 1.91: the new compile-time __PRETTY_FUNCTION__ parser in boost/exception/detail/type_info.hpp matches string literals that hard-code boost::n::; after our rstudio_boost rename 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 produced rstudio_rstudio_boost::n:: on the release pass). Both scripts now document the idempotency requirement.
  • exec() error reporting (dependencies/windows/tools.R): when a caller passes output = TRUE, the captured output is a character vector; the failure path called file.exists() on it and crashed R ('length = 49503' in coercion to 'logical(1)'), masking the underlying build error. It now prints the captured output.
  • Windows e2e workflow: requests MSVC_TOOLSET_VERSION=145 now that toolset-matched prebuilts exist, so the windows-2025 build stops relying on the msvc143 binary-compatibility fallback in src/cpp/CMakeLists.txt (the fallback itself is kept as a safety net).

Published artifacts

All uploaded to rstudio-buildtools and 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

  • macOS (arm64): Boost 1.91 built and installed via install-boost; full src/cpp build against it succeeds; rstudio-tests --scope core passes (421 tests).
  • Windows: the dependency-build workflow is green for both toolsets (debug + release, 32/64-bit), which also exercises the double-patch idempotency path end-to-end; prebuilt lib names carry the expected vc143/vc145 tags.
  • This PR's own Windows e2e run exercises the msvc145 prebuilt download + link path.

No NEWS.md entry: internal build/dependency change.

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

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.
@kevinushey kevinushey added this to the 2026.07 (Pacific Dogwood) milestone Jul 2, 2026
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.
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

RStudio E2E - all platforms

2 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
1755 2 63 17
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
❌ desktop-linux 445 1 10 4
✅ desktop-macos 435 0 19 6
✅ desktop-windows 446 0 12 4
❌ server-linux 429 1 22 3
View / download the full report

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 0139c4466e1fe9e5a74d04c00c9ec43428ab4996 - Run #68

@kevinushey
kevinushey merged commit da12f17 into main Jul 2, 2026
22 of 24 checks passed
@kevinushey
kevinushey deleted the feature/upgrade-boost-1.91 branch July 2, 2026 21:06
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