test(avplayer): link guest_avplayer with the shared runtime libraries #4256

Merged
MarcZX10 merged 1 commit from upstream-pr/4256 into main 2026-10-12 12:23:34 +00:00
MarcZX10 commented 2026-10-12 02:47:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T02:47:50Z.


What

Link guest_avplayer_tests without the inherited static runtime flags on Linux. The test imports __cxa_throw from libc.prx; a private static GCC unwinder cannot resume an exception through that shared library. With the shared runtimes, failed Check assertions print their message and exit with code 1 instead of aborting during unwinding. This is the test-runner failure described in #2709.

Tested

Linux, clean Release build on current main: rebuilt guest_avplayer_tests; ctest -R '^guest_avplayer$' passed (1/1). A temporary forced Check(false) in TestPlayback printed forced unwind control and exited 1. Restored the test source and rebuilt the normal executable. The final link command includes shared libstdc++.so.6 and libgcc_s.so.1 dependencies.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

Original fix by Yassine; carried with commit authorship preserved.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4824329072 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4256). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T02:47:50Z. --- ### What Link `guest_avplayer_tests` without the inherited static runtime flags on Linux. The test imports `__cxa_throw` from `libc.prx`; a private static GCC unwinder cannot resume an exception through that shared library. With the shared runtimes, failed `Check` assertions print their message and exit with code 1 instead of aborting during unwinding. This is the test-runner failure described in #2709. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. --> Linux, clean Release build on current `main`: rebuilt `guest_avplayer_tests`; `ctest -R '^guest_avplayer$'` passed (1/1). A temporary forced `Check(false)` in `TestPlayback` printed `forced unwind control` and exited 1. Restored the test source and rebuilt the normal executable. The final link command includes shared `libstdc++.so.6` and `libgcc_s.so.1` dependencies. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes Original fix by Yassine; carried with commit authorship preserved.
MarcZX10 commented 2026-10-12 02:53:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T02:53:27Z.


Local validation on Linux, rebuilt from the current main base: guest_avplayer passed (1/1). A temporary Check(false) in TestPlayback printed the expected message and exited 1; I restored the test source and rebuilt the normal target. Intake, conventions, eligibility, register-context and macOS relinker checks pass. The Linux/Windows full-suite jobs are skipped by the workflow; Windows relinker is still running.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6116895885 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4256#issuecomment-6116895885). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T02:53:27Z. --- Local validation on Linux, rebuilt from the current main base: `guest_avplayer` passed (1/1). A temporary `Check(false)` in `TestPlayback` printed the expected message and exited 1; I restored the test source and rebuilt the normal target. Intake, conventions, eligibility, register-context and macOS relinker checks pass. The Linux/Windows full-suite jobs are skipped by the workflow; Windows relinker is still running.
MarcZX10 commented 2026-10-12 02:54:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T02:54:23Z.


Update: the Windows relinker job has now passed as well. All reported checks are green; the workflow skips its Linux and Windows full-suite jobs for this PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6116904164 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4256#issuecomment-6116904164). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T02:54:23Z. --- Update: the Windows relinker job has now passed as well. All reported checks are green; the workflow skips its Linux and Windows full-suite jobs for this PR.
Sign in to join this conversation.
No reviewers
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!4256
No description provided.