Windows build fails on main: duplicate patched export name: LibwuIonIBw in libSceVideoOut (since #1339) #2462

Closed
opened 2026-10-09 22:07:15 +00:00 by LeandroLP23 · 6 comments
LeandroLP23 commented 2026-10-09 22:07:15 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-09T22:07:15Z.


Since #1339, the Windows build stops in the libSceVideoOut NID patch step:

FAIL: .../libs/libSceVideoOut.prx: duplicate patched export name: LibwuIonIBw

#1339 renamed sceVideoOutVrrStatusUnknown00-style placeholders to their real names, sceVideoOutAddVrrActiveStatusEvent and sceVideoOutAddVrrStatusFlagsPrivilege, but kept the APS5_EXPORT("LibwuIonIBw", …) (Event.cpp) and APS5_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 on main since then were all cancelled by newer merges.

Removing the two APS5_EXPORT lines fixes it: on Windows 11 (WinLibs GCC 15.2.0 r7, Release, main 7331a123) the build completes, the patched libSceVideoOut.prx still exports LibwuIonIBw and kP2L8t3j-aM, and patched_libraries, guest_video_out_wqhd_detection and guest_video_out_resolution_status pass. I can't open a PR while intake is paused; the change is two deleted lines.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5785258339 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2462). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-09T22:07:15Z. --- Since #1339, the Windows build stops in the `libSceVideoOut` NID patch step: ``` FAIL: .../libs/libSceVideoOut.prx: duplicate patched export name: LibwuIonIBw ``` #1339 renamed `sceVideoOutVrrStatusUnknown00`-style placeholders to their real names, `sceVideoOutAddVrrActiveStatusEvent` and `sceVideoOutAddVrrStatusFlagsPrivilege`, but kept the `APS5_EXPORT("LibwuIonIBw", …)` (`Event.cpp`) and `APS5_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 on `main` since then were all cancelled by newer merges. Removing the two `APS5_EXPORT` lines fixes it: on Windows 11 (WinLibs GCC 15.2.0 r7, Release, `main` 7331a123) the build completes, the patched `libSceVideoOut.prx` still exports `LibwuIonIBw` and `kP2L8t3j-aM`, and `patched_libraries`, `guest_video_out_wqhd_detection` and `guest_video_out_resolution_status` pass. I can't open a PR while intake is paused; the change is two deleted lines. AI-assisted: yes (Claude Code).
popcoder565 commented 2026-10-09 22:08:00 +00:00 (Migrated from github.com)
Author
Contributor

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, main 7331a123 (with #1421 merged on top). The build stops at LibwuIonIBw. With only that line removed it stops at kP2L8t3j-aM. With both APS5_EXPORT lines removed it builds, and the full ctest passes (534 of 534).

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090062809 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2462#issuecomment-6090062809). Originally posted by [popcoder565](https://github.com/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, `main` 7331a123 (with #1421 merged on top). The build stops at `LibwuIonIBw`. With only that line removed it stops at `kP2L8t3j-aM`. With both `APS5_EXPORT` lines removed it builds, and the full ctest passes (534 of 534). _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
MarcZX10 commented 2026-10-09 22:32:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T22:32:20Z.


I independently confirmed the two function names hash to LibwuIonIBw and kP2L8t3j-aM, so the explicit aliases duplicate the exports generated from their names. I pushed a reviewed two-line fix to Marc's fork: 7a74d6e on codex/fix-videoout-duplicate-vrr-exports.

On Linux x86-64 with GCC 12.2 Release, libSceVideoOut, nid_patcher, and video_out_flip_tests built. nid_patcher processed the PRX successfully and the patched library contains both NIDs once. The existing video_out_flip_tests controls could not run here because SDL selected its offscreen backend, 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090355631 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2462#issuecomment-6090355631). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T22:32:20Z. --- I independently confirmed the two function names hash to `LibwuIonIBw` and `kP2L8t3j-aM`, so the explicit aliases duplicate the exports generated from their names. I pushed a reviewed two-line fix to Marc's fork: [`7a74d6e`](https://github.com/MarcZX100/AnyPS5/commit/7a74d6e665e268993cea108529bb8d3f615fe820) on `codex/fix-videoout-duplicate-vrr-exports`. On Linux x86-64 with GCC 12.2 Release, `libSceVideoOut`, `nid_patcher`, and `video_out_flip_tests` built. `nid_patcher` processed the PRX successfully and the patched library contains both NIDs once. The existing `video_out_flip_tests controls` could not run here because SDL selected its `offscreen` backend, 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](https://github.com/boykopovar/AnyPS5/pull/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.
ycbuzi commented 2026-10-09 22:52:21 +00:00 (Migrated from github.com)
Author
Contributor

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 the 7331a123 in the report.

Windows 11, WinLibs GCC 15.2.0 r7 (x86_64-ucrt-posix-seh), CMake 4.3.1, Ninja 1.13.2, Release:

[1/2] Patching NIDs for libSceVideoOut
FAILED: [code=2] core/libs/libs/libSceVideoOut.prx
FAIL: D:/AnyPS5/build/core/libs/libs/libSceVideoOut.prx: duplicate patched export name: LibwuIonIBw
ninja: build stopped: subcommand failed.

Removing the two APS5_EXPORT lines (Event.cpp:138, Output.cpp:314) fixes it, and both NIDs are still exported afterwards, since the real names hash to them. From objdump -p on the patched .prx:

[ 228] +base[ 229]  0045 LibwuIonIBw
[ 229] +base[ 230]  00d6 kP2L8t3j-aM

With the lines removed the libs target completes (OK: .../libSceVideoOut.prx) and patched_libraries, guest_video_out_wqhd_detection and guest_video_out_resolution_status all pass.

I ran the build at cb9734cd and then checked that none of the 8 commits up to c9d42619 touch libSceVideoOut or the NID patcher (they are all shader/AGC recompiler changes), so the result carries forward to the current tip.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090620976 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2462#issuecomment-6090620976). Originally posted by [ycbuzi](https://github.com/ycbuzi) on 2026-10-09T22:52:21Z. --- Confirming this still reproduces on current `main` (`c9d42619`), several commits past the `7331a123` in the report. Windows 11, WinLibs GCC 15.2.0 r7 (`x86_64-ucrt-posix-seh`), CMake 4.3.1, Ninja 1.13.2, Release: ``` [1/2] Patching NIDs for libSceVideoOut FAILED: [code=2] core/libs/libs/libSceVideoOut.prx FAIL: D:/AnyPS5/build/core/libs/libs/libSceVideoOut.prx: duplicate patched export name: LibwuIonIBw ninja: build stopped: subcommand failed. ``` Removing the two `APS5_EXPORT` lines (`Event.cpp:138`, `Output.cpp:314`) fixes it, and both NIDs are still exported afterwards, since the real names hash to them. From `objdump -p` on the patched `.prx`: ``` [ 228] +base[ 229] 0045 LibwuIonIBw [ 229] +base[ 230] 00d6 kP2L8t3j-aM ``` With the lines removed the `libs` target completes (`OK: .../libSceVideoOut.prx`) and `patched_libraries`, `guest_video_out_wqhd_detection` and `guest_video_out_resolution_status` all pass. I ran the build at `cb9734cd` and then checked that none of the 8 commits up to `c9d42619` touch `libSceVideoOut` or the NID patcher (they are all shader/AGC recompiler changes), so the result carries forward to the current tip. AI-assisted: yes (Claude Code).
jihirmas commented 2026-10-09 23:43:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by jihirmas on 2026-10-09T23:43:41Z.


I also made a fix for this in #2506

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6091173300 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2462#issuecomment-6091173300). Originally posted by [jihirmas](https://github.com/jihirmas) on 2026-10-09T23:43:41Z. --- I also made a fix for this in #2506
Yuva1024 commented 2026-10-10 02:11:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Yuva1024 on 2026-10-10T02:11:18Z.


This is fixed on main by a3ca03e0 (#2473), which removed both APS5_EXPORT aliases. A Windows 11 (26200) build of main c9da0f93 with WinLibs GCC 15.2.0 r7 completes, including the libSceVideoOut NID patch, and ctest passes 573/573. I think this can be closed.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6092569480 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2462#issuecomment-6092569480). Originally posted by [Yuva1024](https://github.com/Yuva1024) on 2026-10-10T02:11:18Z. --- This is fixed on `main` by `a3ca03e0` (#2473), which removed both `APS5_EXPORT` aliases. A Windows 11 (26200) build of `main` `c9da0f93` with WinLibs GCC 15.2.0 r7 completes, including the `libSceVideoOut` NID patch, and `ctest` passes 573/573. I think this can be closed. AI-assisted: yes (Claude Code).
oneandonlydean commented 2026-10-10 03:08:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T03:08:12Z.


Fixed by #2473, which removed the duplicate APS5_EXPORT aliases for LibwuIonIBw and kP2L8t3j-aM in Event.cpp and Output.cpp. Reopen if the Windows build still stops at the NID patch on current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6093147933 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2462#issuecomment-6093147933). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T03:08:12Z. --- Fixed by #2473, which removed the duplicate `APS5_EXPORT` aliases for `LibwuIonIBw` and `kP2L8t3j-aM` in `Event.cpp` and `Output.cpp`. Reopen if the Windows build still stops at the NID patch on current main.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#2462
No description provided.