fix(build): allow static MinGW runtimes in relinker-only tests #8067
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8067"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by harry-z-kang on 2026-10-19T19:30:35Z.
What
Windows relinker-only builds with
BUILD_TESTING=ONreject MinGW distributions that ship static runtimes, such as Scoop GCC 15.2.0: configuration requires three runtime DLLs even though this mode does not build the PRX libraries.Allow missing runtime DLLs when
ANYPS5_RELINKER_ONLY=ON. Continue copying each DLL that is present, so WinLibs fixtures retain their runtime dependencies. Full builds still require all three DLLs and retain the existing DWARF-unwinding requirement. Clarify the distinction in the relinker-only build instructions.Overlap review (2026-10-19, main
8038a425f). The scan covered 697 open PRs and found no confirmed conflict involving this PR. The bot lists 10 incomplete comparisons because those other branches already conflict with main. Their current shared-file patches were reviewed manually:This PR has no prerequisite. #8087 is stacked on this exact commit and declares the dependency. The remaining bot warnings require the other branches to be updated against main before automatic comparisons can finish.
Tested
Latest verification on main
8038a425f: Scoop GCC 15.2.0 relinker-only build passed; 212 CTest cases passed, onelong_pathsskip, zero failures (89.10 s). The rebased patch is unchanged. Conventions and whitespace checks passed. Earlier qualification follows.Windows 11 (NT build 26300), Release, Ninja, on
maine004d03ceplus this change.Cannot locate MinGW runtime: libgcc_s_seh-1.dll.ANYPS5_RELINKER_ONLY=ONandBUILD_TESTING=ON.b/rs): 211 CTest cases passed, zero failures, one skip. Its test directory contains none of the three MinGW runtime DLLs; its test environment excludes the WinLibs bin directory.b/rw): 210 cases passed, one skip and oneshader_cache_runtime_sourcescleanup error (WinError 32, temporary file held open). That case passed on an isolated rerun. All runnable cases therefore passed across the full run and rerun. The three copied runtime DLLs match the compiler's originals byte for byte.long_pathsis the skipped case in both configurations because this host hasLongPathsEnabled=0. Short build directories avoid the existing path-length-sensitiveinput_preservationfixture; both it andwindows_diagnostic_fixture_isolationpassed with both compilers.Builds used
cmake --build b/rs --parallel 8andcmake --build b/rw --parallel 8; complete suites usedctest --test-dir b/rs --output-on-failure --parallel 4and the same command forb/rw. Linux and macOS were not run locally.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T19:44:58Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
CMakeLists.txtdocs/dev/BUILD.mdCMakeLists.txtdocs/dev/BUILD.mdCMakeLists.txtdocs/dev/BUILD.mdCMakeLists.txtCMakeLists.txtdocs/dev/BUILD.mdCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtdocs/dev/BUILD.mdCMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-19T23:18:18Z.
Verdict: confirmed (configure step).
Environment: Windows 11 Home 10.0.26300, CMake 4.3.1, Ninja. The compiler is WinLibs GCC 15.2.0 r7, run from a directory without the runtime DLLs:
bin/holds hard links to every WinLibs.exebut none oflibgcc_s_seh-1.dll,libstdc++-6.dllandlibwinpthread-1.dll, andlib/,libexec/,include/andx86_64-w64-mingw32/are junctions to WinLibs. That directory is passed asCMAKE_C_COMPILER/CMAKE_CXX_COMPILER.main9127ea36d-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ONCMake Error at CMakeLists.txt:47: Cannot locate MinGW runtime: libgcc_s_seh-1.dllGenerating done-DBUILD_TESTING=ONWith the normal WinLibs directory, the relinker-only build of this PR configures and builds, and
ctest -j4passes 212/212. The three DLLs are present intests/. That build directory was reused from earlier builds, so their presence does not show the copy itself.I did not build or run the suite with a genuinely static-runtime toolchain (Scoop GCC). This DLL-less compiler directory still links dynamically, so it shows only the configure behaviour.
AI-assisted: yes (Claude Code); results above were run on this machine.