Windows build fails on main: duplicate patched export name: LibwuIonIBw in libSceVideoOut (since #1339) #2462
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LeandroLP23 on 2026-10-09T22:07:15Z.
Since #1339, the Windows build stops in the
libSceVideoOutNID patch step:#1339 renamed
sceVideoOutVrrStatusUnknown00-style placeholders to their real names,sceVideoOutAddVrrActiveStatusEventandsceVideoOutAddVrrStatusFlagsPrivilege, but kept theAPS5_EXPORT("LibwuIonIBw", …)(Event.cpp) andAPS5_EXPORT("kP2L8t3j-aM", …)(Output.cpp) aliases. The real names hash to those same NIDs, so each NID is exported twice, and the PE patcher's duplicate check (PeNidPatcher.cpp) rejects it. The ELF side has no such check, so Linux likely still builds; the Windows Build runs onmainsince then were all cancelled by newer merges.Removing the two
APS5_EXPORTlines fixes it: on Windows 11 (WinLibs GCC 15.2.0 r7, Release,main7331a123) the build completes, the patchedlibSceVideoOut.prxstill exportsLibwuIonIBwandkP2L8t3j-aM, andpatched_libraries,guest_video_out_wqhd_detectionandguest_video_out_resolution_statuspass. I can't open a PR while intake is paused; the change is two deleted lines.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T22:08:00Z.
Confirmed on Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
main7331a123(with #1421 merged on top). The build stops atLibwuIonIBw. With only that line removed it stops atkP2L8t3j-aM. With bothAPS5_EXPORTlines removed it builds, and the full ctest passes (534 of 534).🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T22:32:20Z.
I independently confirmed the two function names hash to
LibwuIonIBwandkP2L8t3j-aM, so the explicit aliases duplicate the exports generated from their names. I pushed a reviewed two-line fix to Marc's fork:7a74d6eoncodex/fix-videoout-duplicate-vrr-exports.On Linux x86-64 with GCC 12.2 Release,
libSceVideoOut,nid_patcher, andvideo_out_flip_testsbuilt.nid_patcherprocessed the PRX successfully and the patched library contains both NIDs once. The existingvideo_out_flip_tests controlscould not run here because SDL selected itsoffscreenbackend, which has no Vulkan support. The Windows report above supplies the direct reproduction and full test result.I have not opened a PR because the repository's current intake workflow automatically closes PRs from authors with fewer than 20 merged PRs. This account does not meet that threshold. AI-assisted: yes.
Update: Celegans12 has since opened PR #2473 with the same two-line fix. Its checks are queued, so Windows validation on that PR is still pending. #2473 is the active upstream review path; my fork commit is an identical candidate, not a separate PR.
Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-09T22:52:21Z.
Confirming this still reproduces on current
main(c9d42619), several commits past the7331a123in the report.Windows 11, WinLibs GCC 15.2.0 r7 (
x86_64-ucrt-posix-seh), CMake 4.3.1, Ninja 1.13.2, Release:Removing the two
APS5_EXPORTlines (Event.cpp:138,Output.cpp:314) fixes it, and both NIDs are still exported afterwards, since the real names hash to them. Fromobjdump -pon the patched.prx:With the lines removed the
libstarget completes (OK: .../libSceVideoOut.prx) andpatched_libraries,guest_video_out_wqhd_detectionandguest_video_out_resolution_statusall pass.I ran the build at
cb9734cdand then checked that none of the 8 commits up toc9d42619touchlibSceVideoOutor the NID patcher (they are all shader/AGC recompiler changes), so the result carries forward to the current tip.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by jihirmas on 2026-10-09T23:43:41Z.
I also made a fix for this in #2506
Imported from boykopovar/AnyPS5. Originally posted by Yuva1024 on 2026-10-10T02:11:18Z.
This is fixed on
mainbya3ca03e0(#2473), which removed bothAPS5_EXPORTaliases. A Windows 11 (26200) build ofmainc9da0f93with WinLibs GCC 15.2.0 r7 completes, including thelibSceVideoOutNID patch, andctestpasses 573/573. I think this can be closed.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T03:08:12Z.
Fixed by #2473, which removed the duplicate
APS5_EXPORTaliases forLibwuIonIBwandkP2L8t3j-aMinEvent.cppandOutput.cpp. Reopen if the Windows build still stops at the NID patch on current main.