Repository navigation
build(win): restore the 32-bit session install rule - #18519
Merged
Merged
Conversation
The multiarch Windows Desktop build installs the 32-bit session into <build>/src/cpp/session/x86, and the 64-bit build had an install rule that collected that directory into resources/app/bin/x86 at package time. That rule sat inside an "install winpty on windows" block and was deleted with it in 04db3f5, so since 2026.06.0 the shipped installer has resources/app/bin/x86 with only the x86 VC runtime DLLs -- no rsession.exe, and since #18070 no rsession.dll. With a 32-bit R, session-launcher.ts finds no x86/rsession.exe and falls back to the 64-bit session, which cannot load a 32-bit R.dll. Restore the rule under a comment that names its actual source, and keep the file(MAKE_DIRECTORY) call: install(DIRECTORY) errors on a missing source directory, and non-multiarch builds never create it. Addresses #18515
gtritchie
marked this pull request as draft
August 11, 2026 19:35
gtritchie
marked this pull request as ready for review
August 11, 2026 20:24
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
This was referenced Aug 14, 2026
gtritchie
added a commit
that referenced
this pull request
Aug 14, 2026
Backport of #18519 (9e0e8e9) to Yellow Yarrow. The multiarch Windows Desktop build installs the 32-bit session into <build>/src/cpp/session/x86, and the 64-bit build had an install rule that collected that directory into resources/app/bin/x86 at package time. That rule sat inside an "install winpty on windows" block and was deleted with it in 04db3f5 (#17814), so the shipped installer has resources/app/bin/x86 with only the x86 VC runtime DLLs -- no rsession.exe, and since #18070 no rsession.dll. With a 32-bit R, session-launcher.ts finds no x86/rsession.exe and falls back to the 64-bit session, which cannot load a 32-bit R.dll. Restore the rule under a comment that names its actual source, and keep the file(MAKE_DIRECTORY) call: install(DIRECTORY) errors on a missing source directory, and non-multiarch builds never create it. This is what makes the x86 binaries signed by 999de99 (#18562) actually reach the installer. The NEWS entry goes in version/news/os/NEWS-2026.08.1-yellow-yarrow.md, since NEWS.md is not carried on this branch. Addresses #18558
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.
Multiarch Windows Desktop builds build, install and code-sign the 32-bit session, but it
never reaches the installer:
resources/app/bin/x86ships with only the x86 VC runtimeDLLs, no
rsession.exeand (since #18070) norsession.dll. With a 32-bit R,session-launcher.tsfinds nox86/rsession.exe, logs a warning, and falls back to the64-bit session, which cannot load a 32-bit
R.dll.The 32-bit sub-build installs into the 64-bit build tree
(
<build>/src/cpp/session/x86, set up bypackage/win32/make-install-win32.bat), and the64-bit build had an
install(DIRECTORY)rule that collected that directory into the stagedapp tree when CPack re-ran the install rules. That rule sat under an
# install winpty on windowscomment and was deleted along with the block in 04db3f5(#17814); nothing replaced it. Affected releases: 2026.06.0 (
rsession.exe) and2026.07.x /
main(rsession.exe+rsession.dll).This restores the rule, under a comment naming
make-install-win32.batas the producer.The
file(MAKE_DIRECTORY)call is required:install(DIRECTORY)errors on a missing sourcedirectory, and non-multiarch builds (the local default) never create it.
Collecting at package time is what makes signed binaries ship -- signing runs against the
build tree between the sub-build and CPack -- so pointing the sub-build's install prefix at
the CPack staging tree is not an alternative.
Verification
Windows Electron dev configure (
cmake .):build/src/cpp/session/x86/is created, and the generatedbuild/src/cpp/session/cmake_install.cmakegainsfile(INSTALL DESTINATION ".../resources/app/bin" TYPE DIRECTORY FILES ".../build/src/cpp/session/x86" USE_SOURCE_PERMISSIONS).Before the change, that file had no rule installing the session
x86directory(
grep 'session/x86'returned nothing).x86directory it installscleanly (the non-multiarch case), and with
rsession.exe/rsession.dllplaced in it,both land in
resources/app/bin/x86.Full multiarch package build (
make-package.bat clean electron multiarch), installed: the32-bit session binaries are present in
resources/app/bin/x86, and a session against a32-bit R starts and runs again.
Fixes #18515.