fix(build): register relinker tests with CTest #2
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2"
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 SamG-Coder on 2026-09-24T19:27:37Z.
With
BUILD_TESTING=ON, the existing relinker tests build, butctest --test-dir builddiscovers zero tests because testing is not enabled at the project root. The Windows dependency diagnostics executable also has no CTest registration.This change:
BUILD_TESTINGwith a default of OFF and enables testing at the root when requested.Validation on Windows with CMake/Ninja and MSYS2 UCRT64 GCC 16.2.0:
relinker,strict_nid_filter_tests, andwindows_dependency_diagnostics_tests.git diff --checkpassed before committing.The homebrew notes document that the PS5 Omnispeak and Crispy Doom payloads both fail relinking with missing
DT_PLTGOTmetadata (exit code 2). This PR does not add homebrew compatibility or claim successful game execution. The compatibility libraries and shader pipeline were not built or validated; the relinker compiler result does not establish support for replacing the documented Windows libc toolchain.Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-24T21:12:18Z.
Thanks for the fixes for CTest and for the Homebrew compatibility research (I'll work on compatibility support).
I'd gladly merge it. But I'm confused by HOMEBREW_TESTING.md investigation - I think it's more suitable as part of a PR discussion, not as documentation. I want any text in the git repository to be as dry, strict, and concise as possible.
Could you move (preferably with a force push) this file under this PR to preserve it, or leave it in docs but only include instructions and links to Homebrew projects (which is very important)?
Imported from boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-09-25T02:06:54Z.
Moved the original homebrew investigation here to preserve it, including the project links and reproduction commands. HOMEBREW_TESTING.md has been removed from the proposed tree; this PR now changes only the two CMake files.
The notes below are a historical snapshot from commit
0968c32, not a statement of current compatibility or the current development plan.Homebrew investigation, 2026-09-25
Baseline: SamG-Coder/AnyPS5, commit
2778c1e.Verified locally
relinker,strict_nid_filter_tests, andwindows_dependency_diagnostics_tests.BUILD_TESTING=ONand registered the Windows diagnostics test. The latter is included in normal builds only when testing is enabled.This verifies the relinker build and these two test suites only. The compatibility libraries, shader pipeline, and game execution have not been built or validated in this investigation. Upstream documents a specific WinLibs GCC 15.2.0 toolchain requirement for its Windows libc implementation; the compiler used here does not establish compatibility with that requirement.
Reproduce the build
Run from the repository root in PowerShell. These paths match this workstation:
Public PS5 homebrew inputs
Downloaded directly from ps5-payload-dev/websrv v0.34. Downloads remain in the ignored
downloads/directory; no game binaries or data are added to Git.Omnispeak is an open-source Commander Keen engine. Its upstream README links Keen 4 shareware data, and the PS5 package includes CK4 data. The PS5 build recipe identifies how that package is assembled.
Crispy Doom's PS5 recipe builds the engine and packages shareware data. Freedoom is a separate free-content candidate for later compatibility testing; it has not been downloaded or tested here.
These PS5 builds are ELF payloads, not ISO disc images. An engine's open-source license does not automatically apply to original commercial game data.
Both currently report:
Why this is more than a missing table
RelinkerPipeline.cppunconditionally requires PLTGOT, PLTRELSZ, PLTREL, and JMPREL metadata. Inspection of Omnispeak with objdump shows ordinary RELA relocations but no PLTGOT/PLT relocation tags. Supporting ELF files without PLT relocations is a candidate improvement, but simply bypassing the requirement does not establish a runnable conversion.The PS5 payload SDK startup takes a
payload_args_tpointer and initializes console-specific kernel and dynamic-linker facilities. Its entry assembly calls that startup. Homebrew payload startup therefore needs separate compatibility analysis and likely an adapter.Omnispeak imports
libkernel_web.sprxandlibSceLibcInternal.sprx, among other libraries. In this AnyPS5 revision, the former contains onlyAPS5_DUMMY_FUN, while the latter exposes only a heap tracing stub. File presence is not evidence of implemented compatibility.Suggested next milestones
Keep conversion, loader startup, first rendered frame, and playable gameplay as distinct results. A native Windows build of the same open-source engine is useful as a reference but is not evidence that PS5 binary conversion works.