fix(build): link the ATRAC9 gradient test with libm #9710
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9710"
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 milescoviello on 2026-10-22T09:30:01Z.
What
atrac9_gradient_testsdoesn't link in anANYPS5_ENABLE_ASANbuild, so ctest reportsatrac9_gradientas "Not Run":How
The test is a C program linked against the static
atrac9library, whoseband_extension.ccallspow, and it never listedlibm.--gc-sections. That drops the band extension code the test never reaches, sopownever has to resolve.ldfindspowonly in thelibm.so.6thatlibasan.so.8lists asNEEDED, and refuses an indirect dependency.The test now links
moutside Windows, asatrac9_config_data_testsnext to it already does.Tested
Rebased onto
main093149c5bdas2fee42278f, with no conflicts;git range-diffshows the commit unchanged. On that head,atrac9_gradientlinks and passes 3 of 3 in the ASan build, and 3 of 3 in the default Release build.Ubuntu 26.04.1, GCC 15.2, on
main7e2ba73e4c:ANYPS5_ENABLE_ASAN=ON(RelWithDebInfo),cmake --build --target atrac9_gradient_tests:main: the link fails with the error above.ctest -R '^atrac9_gradient$' --repeat until-fail:3passes.BUILD_TESTING=ON: the target still links and the test passes 3 of 3.tools/check_conventions.py --base upstream/mainpasses. The overlap scan lists only #6044, which conflicts withmain.This was one of five failures in a full ASan run of the CPU-side suites on
maind6eafa54d0(1161 tests). Three others are already covered: #9236, #9238 and #9240. The fifth,input_magic, is #9711.Not tested: Windows (unchanged there), macOS.
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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:08:41Z.
Review: COMMENTED
Reviewed exact head 73f999a5982ea2be4b2d5ce8ad93dc22836df795. The change adds
monly to the non-Windows gradient test target, which is the narrow platform-aware link fix for the directpowdependency; it leaves the existing dead-code elimination and test behavior intact. Current conventions and diff checks pass, and the merge is clean. The reported ASan red/green plus three repeated ASan and Release runs are useful; I could not rerun locally because there is no configured build tree and the filesystem is full. GitHub currently has conventions/intake/labels/report checks passing, with the product/relinker jobs skipped. Please update this 13-commits-behind branch to current main and confirm the focused link/test result there before approval. I found no code-level defect.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T12:29:58Z.
@MarcZX10 rebased onto
main8b3a6ba88das65461aa1ba, with no conflicts; the commit is unchanged. On that head,atrac9_gradientlinks and passes 3 of 3 in the ASan build, and 3 of 3 in the default Release build. Tested names the head.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T15:44:20Z.
Review: DISMISSED
I reviewed exact head 65461aa1ba6f0d653a09b4840b0c5216b551ca88. The platform guard around linking m is narrowly scoped and is the normal fix for a direct pow dependency. Conventions and diff checks pass. The PR reports three passing ASan and Release runs; the hosted current-head jobs here cover eligibility/conventions/labels/report but skip product builds, so I could not independently verify the link or runtime test in this environment.
Before merge:
I found no issue with the m link itself; the main open items are current-main validation and the concrete #6044 conflict.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T04:22:14Z.
Review: APPROVED
Reviewed
9c73da714bc61f0b06dbc78a144e087d6affb25eagainstcf528e78c6c8fd30696ccfca6c097f9828be2cf6. No actionable findings in this focused review.Source review: Inspected the complete three-line link change, surrounding ATRAC9 targets and gradient test source. The dependency is private to the gradient executable and follows the neighboring config-data test's existing non-Windows libm pattern. The library order retains atrac9 before m; Windows behavior is unchanged.
Validation: Disposable CMake 4.3.1 projects using the exact submitted link fragment generated successfully for both WIN32 conditional values on head and baseline. Head yields atrac9;m only in the non-Windows branch; baseline yields atrac9 in both. These are conditional-generation checks on Windows, not Linux execution. Conventions, whitespace and script registration passed. Hosted metadata/conventions succeeded; native/relinker jobs were skipped.
Scope: Approval covers the bounded build dependency correction. No Linux/macOS link or ATRAC9 runtime pass is claimed; WSL is not installed on this host. No application/game test.