Converter website: deployed relinker needs __aps5_* imports that the pinned v0.1.1 libraries do not export (fresh conversions fail with undefined symbol) #5381
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 firasotoom85-droid on 2026-10-13T18:24:29Z.
What happens
Converting any title with the online converter (https://boykopovar.github.io/AnyPS5/, Linux target) and running the result as documented fails at startup:
Why
The deployed converter is newer than the libraries it bundles:
__aps5_get_pending_module_args_nid_no_patchand__aps5_set_module_init_result_nid_no_patch(on main:core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp).release.jsonpins the libraries to v0.1.1, whoselibkernel.prxpredates the definitions added on main (core/libs/prx/libkernel/Module/src/Module.cpp).Evidence
https://boykopovar.github.io/AnyPS5/release.json→"tag": "v0.1.1".libs/in the converter output matchesprx-linux-v0.1.1.tar.gz: identical file list, and e.g.libkernel.prxsha256c6ebacf65894d72fee239bede58aa35e70a020ce38c66a235b0bb2c0e65c8e26,libSceVideoOut.prxsha256593a15d6e6a6477cdb0c6ce9fd799606a4832bac36ad703c10ca596c338d5897in both.nm -D --undefined-only app0/sce_module/*.guest.prx | grep aps5→ both symbols undefined.nm -D --defined-only libs/libkernel.prx | grep aps5→ empty.__tls_get_addrremains).Expected
Either pin the deployed WASM relinker to the release that
release.jsonpoints at, or publish libraries built from the same commit as the deployed relinker.The Windows libraries should be affected by the same skew (same pinned release), though I only reproduced this on Linux.
Incidentally, with the v0.1.1 pair the guest
RUNPATH$ORIGIN/libsdoes not apply to transitive dependencies and the per-library RUNPATHs are empty, so withoutLD_LIBRARY_PATHthe first stop on the same conversion islibSceMouse.prx: cannot open shared object file. The current main libraries carryRUNPATH=$ORIGINper library and resolve without it.Imported from boykopovar/AnyPS5. Originally posted by VitzS7 on 2026-10-13T19:28:37Z.
Confirmed from a second title, with a different symbol, so this is a drift rather than one missing export.
ScreenTester5 (PPSA69420), a homebrew title, unwrapped with
pkg-to-anyps5and converted through the deployed site (Linux, in-memory download, libraries v0.1.1 asrelease.jsonpins them):zl7hupSO0C0issceKernelSendNotificationRequest(python3 tools/nid_names.py --nid zl7hupSO0C0answersalready-implemented), and none of thelibs/*.prxthe site bundled defines it (nm -D --defined-only libs/*.prx | grep zl7hupSO0C0is empty) while currentmaindoes implement it. Same shape as the__aps5_*case in the report: the libraries pinned byrelease.jsonare older than the relinker the site runs.Picking a newer tag, or publishing the libraries from the same revision the relinker was built from, would fix both symbols at once.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T21:29:13Z.
The second title confirms the same deployment version skew and a different missing symbol (
sceKernelSendNotificationRequest), so this is now reproducible across a commercial title and homebrew. There is a concrete site/release fix candidate: keep the deployed relinker and its bundled PRX libraries on the same revision or release tag. Is the website source/deployment configuration maintained in this repository, and can you point to the relevant workflow/config path? That will tell us whether a repository PR can fix the mismatch or whether the change belongs in the separate site project.Imported from boykopovar/AnyPS5. Originally posted by iDiesIrae-Req on 2026-10-14T05:14:32Z.
Confirmed for the Windows target too, with a third missing symbol.
DOOM Native Port (PPSA99666, catalog homebrew, v1.1.1). The
eboot.binandsce_module/libc.prxwere unwrapped from their fake-signed SELF to plain ELF first, then converted on the site: Windows.exe, "Download in memory". The result'slibs/has 98.prxplus the three MinGW DLLs. Windows 11, RTX 4070.vZMcAfsA31Iissetbuf, added on main in7789c0a57(2026-10-05), after v0.1.1 (2026-09-28).The site's
eboot.exeitself is fine. Withlibs/*.prxreplaced by libraries built from maina5f493f90(MinGW GCC 15.2.0 r7, Release), the sameeboot.exereaches DOOM's menu: 59.95 fps for 40 s, no errors. So on Windows, too, the only problem is the library version the site bundles.AI-assisted: yes (Claude Code); all runs were on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T05:33:27Z.
The Windows report confirms the same release/library version skew on a third title. I found PR #5409, which proposes building the browser relinker and platform libraries from the same tagged release and has a focused release-pin test. GitHub closed it automatically for the author’s open-PR limit; the closure comment gives no technical rejection. Since that PR already contains the proposed fix under its author’s contribution, I have not opened a duplicate.
Imported from boykopovar/AnyPS5. Originally posted by AMRYB on 2026-10-14T07:43:17Z.
I implemented a fix for this with AI assistance from OpenAI Codex: #5710.
The change publishes the complete web converter and the Linux/Windows libraries from the same release commit, and prevents Pages from publishing mismatched or incomplete assets. Regression tests and real WASM conversion checks passed; the validation details are in the PR.
Please take a look at #5710. It was automatically closed by the open-PR limit while my #3456 remains open, so the implementation is available for review but has not been merged or deployed.
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-14T15:09:32Z.
Since v0.1.2 was published, the converter site's
release.jsonpoints to v0.1.2, so the__aps5_*,zl7hupSO0C0andsetbufimports reported here should resolve now. A retest would confirm it.The skew is structural, though.
pages.ymlbuilds the WASM relinker frommainon every push, whiletools/build_web.pytakes the libraries from the latest release, so the gap reopens as soon asmainadds an import the release lacks. #5409 and #5710 both proposed building the two from one release; both were closed by the open-PR limit, not on technical grounds.Until then, the matching offline pair (
relinker-v0.1.2+prx-<os>-v0.1.2) avoids the mismatch.Written with AI assistance (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by firasotoom85-droid on 2026-10-14T16:50:36Z.
Retested against the current pin (
release.json→ v0.1.2), with the matching pairsrelinker-v0.1.2+prx-linux-v0.1.2/prx-windows-v0.1.2.The reported symbols now resolve in the pinned archives:
__aps5_get_pending_module_args_nid_no_patchlibkernel.prxlibkernel.prx__aps5_set_module_init_result_nid_no_patchlibkernel.prxlibkernel.prxzl7hupSO0C0(sceKernelSendNotificationRequest)libkernel.prxlibkernel.prxvZMcAfsA31I(setbuf)libc.prxlibc.prxsce_module/libc.prxconverts into a guest module whose only__aps5_*imports are the two above, andtools/import_audit.pyreports 0 absent of 586 unique imports.vZMcAfsA31Iis exported bylibc.prxonly —libSceLibcInternal.prxstill does not export it, while the earlier Windows report namedlibSceLibcInternal.prxas the importing library. PE binding is per-DLL and the audit tool documents that imports exported by a library other than the one they name can fail on Windows, so that title is worth a Windows retest before this is closed.YNw9Xk5iNWostub, so a title aborts at its first flip with[videoout] presentation failed: YNw9Xk5iNWo not implemented.It is fixed on main by #5738 and stops with libraries built past v0.1.2; user-side workaround is
LD_PRELOAD=libs/libSceMouse.prx.pages.ymlbuildsrelinker_webfrom the checked-out tree whiletools/build_web.py --librariesdownloadsreleases/latest; #5409 and #5710 covered that and were closed by the open-PR limit.AI-assisted (opencode).