test(libs): give the prx loader tests the MinGW runtime on their PATH #12426
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12426"
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 meh7an on 2026-10-28T13:14:40Z.
What
guest_kernel_sys_threads_main,guest_kernel_sys_threads_main_patchedandnet_ipv6only_patchedfail on Windows whenctestruns from a shell whose PATH puts another MinGW runtime ahead of the toolchain's, such as Git Bash withC:\Program Files\Git\mingw64\bin.The three test executables link the MinGW runtime statically and load
libkernel_sys.prxorlibSceNet.prxwithLoadLibraryExW(..., LOAD_WITH_ALTERED_SEARCH_PATH). So nothing has loadedlibstdc++-6.dllyet. Windows looks for the libraries' runtime next to the.prxand then on PATH, not inbuild/testswhere the build copies it.Git's
libstdc++-6.dlllacks thestd::__codecvt_utf8_utf16_base<wchar_t>members (do_unshift,do_in,do_out, ...).libkernel_sys,libkernelandlibcimport those members, andlibSceNetpulls in the last two. The result:libkernel_sys.prxas the importing module, until ctest's 20 s timeout.net_ipv6only_patchedsetsSEM_FAILCRITICALERRORS, soLoadLibraryExWfails with error 127 instead, andstd::abort()exits with 0xc0000409.On MinGW this gives the three tests the compiler's directory at the front of PATH, as #10101 did for
patched_libraries.Tested
Windows 11, WinLibs GCC 15.2.0 UCRT, main
e02b43abefplus this change,ctestrun from Git Bash (PATH starts withC:\Program Files\Git\mingw64\bin,C:\winlibs\mingw64\binlater).b99bbebacd, same shell):guest_kernel_sys_threads_mainand_patchedtime out at 20 s behind the Entry Point Not Found dialog;net_ipv6only_patchedprintslibSceNet.prx: LoadLibraryEx failed with error 127and exits 0xc0000409. On this change's build,net_ipv6only_patched_tests.exerun by hand from the same shell without the prepended directory still prints error 127.ctest --parallel 4): 2772/2773 pass. The one failure,agc_driver_mesh_barycentric_emulation, fails on mainb99bbebacdtoo.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 MarcZX10 on 2026-10-28T13:52:55Z.
Review: CHANGES_REQUESTED
The CMake change is narrow and the Windows CI job passes. One repository-rule follow-up remains: this head's merge base with current
mainise02b43abef, while currentmainis750cf6cf48(it contains the intervening main merges, including #11595). The PR's tested section also compares against older main heads (b99bbebacd/e02b43abef), rather than the current base.Please rebase/update the branch to current
mainand refresh the tested-head/baseline description. The hosted Windows job already gives useful current-merge validation; after the update, please rerun the three affected CTest cases against the rebased head (and the focused baseline if available). This is to satisfy the repository's current-main rule and keep the evidence tied to the reviewed base; I found no issue in the CMake PATH modification itself.