fix(relinker): print the Windows stub's ' -> FAILED' only with dependency diagnostics #3325
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3325"
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 reyani-dev on 2026-10-11T07:43:10Z.
What
Carries @Jnbla6's fix from #3307 (their #3312 was closed by the intake check). The fix commit is theirs, with authorship kept. I only reworded its message to the conventional-commit form; the code change is unchanged. I added a regression test as a separate commit.
When
LoadLibraryExWfails in the Windows entry stub without--dependency-diagnostics, the stub printed a bare-> FAILEDline beforeFailed to load module: …. TheLoading PRX: <path>prefix and the-> OKsuffix were already guarded bydependencyDiagnostics, but the failure suffix was not:The failure suffix now follows the same guard. With diagnostics on, the output is still
Loading PRX: <path> -> FAILED; without them it starts withFailed to load module:. Since #3282'sanyps5.logwork, this orphan line would also be the first line of the log in GUI starts.test_windows_import_modules.pynow checks that the consolemissing-dependencycase's stderr starts withFailed to load module:.Closes #3307.
Tested
Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, relinker-only Release build (
ANYPS5_RELINKER_ONLY=ON), onmain2bb78d2c:ctest: 104/104. It builds without warnings.test_windows_import_modules.pyrun against a relinker built frommainfails at the new check (AssertionError: -> FAILED); with the fix it passes.check_conventions.pypasses, andpr_overlap.pyreports no overlap.The change only affects the Windows entry stub, so there's nothing to run on Linux.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:58:23Z.
Checked: the
loadFailedsuffix now follows the samedependencyDiagnosticsguard asloading/loaded(WindowsEntryStubBuilder.cpp:394), so without diagnostics the output starts withFailed to load module:; with them it is stillLoading PRX: <path> -> FAILED. The new assert intest_windows_import_modules.py:332only runs on Windows, so I relied on the Windows relinker CI job (green) and your before/after run onmain. Relinker build and ctest on Linux: 98/98. Merging.