fix(prx): build and export the stubs that eight libraries never shipped #10944
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10944"
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 ahmadmuj on 2026-10-25T11:16:07Z.
What
The split PRs from #8747 (#8808, #8809, #8812, #8814, #8829, #8831, #8832) each added an
Export.cppofNotImplemented_nid_no_patchstubs. All seven libraries have their ownCMakeLists.txt, socore/libs/CMakeLists.txtnever addsExport.cppfor them, and nothing else did. None of the 101 stubs got built:A title that imports one of these doesn't get the throw on call; the import is
absentand the loader fails (USAGE.md "absent"). This adds eachExport.cppto its target. For AgcDriver it goes intoagcDriverSources, not at the end of the file, to stay clear of the many open PRs on that file.Ngs2.native and AvPlayer.native build with
CXX_VISIBILITY_PRESET hidden, so those two files also get-fvisibility=defaultas a source property (the twins use#pragma GCC visibility, but the extension check rejects new pragmas). libSceNgs2'sPendingExports.cpphas the same visibility problem: it's compiled, but its 6 stubs (sceNgs2FftInit,sceNgs2FftProcess,sceNgs2FftQuerySize,sceNgs2ParseWaveformUser,sceNgs2SystemEnumHandles,sceNgs2SystemEnumRackHandles) end up local, so it gets the same line.The visibility lines only matter on Linux, and presumably macOS. MinGW's PE exports ignore
-fvisibility, so on Windows the 6 libSceNgs2 stubs were already exported; wachi35676 confirmed that below. The CMake part (building the sevenExport.cppfiles) is what fixes Windows.No stub bodies change. Side note:
libScePlayerInvitationDialog/Export.cppisn't compiled either, but its two functions are already built fromlibScePlayerInvitationDialog.cpp, so I left it alone.Tested
Ubuntu 24.04 on WSL2, GCC 13.3, full build with tests.
volatilepointer, without calling it, so they keep passing once the stub is implemented:agc_platform_tests(sceAgcSuspendPointAndCheckStatus),agc_driver_unsupported_diagnostics(sceAgcDriverSetFlip),ngs2_handleerrors(sceNgs2RackQueryInfo),guest_nptrophy2(sceNpTrophy2SystemCreateContext),guest_np_trophy_data(sceNpUniversalDataSystemIntInitialize). Without the CMake change all five fail to link withundefined reference(rechecked in Release after mergingmain85f8e113); with it they pass.nm -D --defined-onlyon the unpatched.prxfiles: all 101 names plus the 6 libSceNgs2 ones are exported. In the patched.prxfiles, all of them are NID-renamed.nmcheck is the evidence.main85f8e113merged): the five tests pluspublic_headers(65) pass, 70/70.cteston the original base: 2210/2212 pass. The two failures (guest_socket_options,guest_socket_read_write) fail the same way on main on this machine (WSL loopback).check_conventions.py --base origin/mainpasses.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-25T11:24:36Z.
Review: APPROVED
Reviewed exact head
11b193c. The previously uncompiled stub files are now wired into their owning targets; source visibility is explicitly raised where the shared target uses hidden visibility, including the existing six NGS2 pending stubs. The five added runtime tests call representative stubs and verify their diagnostics, and the reported dynamic-symbol check covers all 101 newly wired names plus those six. Local conventions and diff checks passed. The author reports the full build and CTest results, including two failures reproduced on main; Windows/macOS and title runs were not performed. I did not independently rerun the full build or symbol scan locally.