Repository navigation
fix(macos): build guest RTTI and the AGC runtime - #29204
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The inspected changes show no concrete blocking defect; caller context and the reported macOS build and tests could not be independently verified.
What I ran
Reviewed head 97aab63ba9444a6c5399b9bfbfd82e54018ebcef using the prepared diff and included file text. Attempted to use repo_read.py for pinned source context, but it could not append its read log in the read-only run directory. No build or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Changed hunks | passed | Both changed files inspected |
| Build and tests | not run | Results in the description are author-reported |
| Pinned caller context | not run | Reader could not log its call |
Negative control
Not run; no non-compiling negative control was available for these changes.
Findings
Blocking
None identified in the inspected hunks.
Non-blocking
None.
Sources
Not verified
- Read
core/libs/prx/libc/include/specifics/itanium/CxxAbi.hppand the changedCompareMappedrange incore/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp; the rest ofGuestMemory.cppwas not read. Both files were included in the review folder;files.jsonlists no excluded files. - Call sites and behavior beyond the inspected hunks were not verified because
repo_read.pycould not write its read log. - The macOS build, AGC runtime tests, pipeline warm dry-run, and conventions check described by the author were not run by this review.
To get this to a good state
Nothing is required. The macOS build and runtime results in the description remain author-reported.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Checked on an Apple M1, macOS 26.5, Apple clang 21.0.0, x86_64 target under Rosetta ( On main With the PR head The changed The same |
|
Tested
Not covered: GPU. This pull request changes GPU code, and the GitHub-hosted runners above have no GPU, so the Vulkan and GPU tests fail there on main and on this pull request alike. This result says nothing about the changed GPU paths; they still need a run on a real GPU. AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
What
The full macOS build stops in guest libc:
exception/Exports.cppfails withno member named '__contained_virtual_mask' in '__cxxabiv1::__class_type_info'. On macOS the libc++ ABI shim inCxxAbi.hppdefined only__unknownof the RTTI path kinds. This adds the remaining__sub_kindvalues and the VMI flags with their Itanium/GCC ABI encodings, which the guest exception runtime uses. The shim is used only with_LIBCPPABI_VERSION, so Linux and MinGW builds still take these definitions from libstdc++'s<cxxabi.h>.With libc fixed, AGC then failed to compile under AppleClang at a
std::mincall inCompareMapped(GuestMemory.cpp, from #24031). It mixesstd::size_twith an expression that contains thestd::uint64_taddress. Those areunsigned longandunsigned long longon macOS, so template deduction fails. The call now namesstd::size_t. The result on the 64-bit targets is unchanged.The macOS CI jobs build only the relinker and standalone targets, so they don't hit either error.
Part of #28913.
Tested
macOS 27.2.1, Apple M6, Xcode 26.6 (macOS 26.5 SDK). x86-64 Release build running under Rosetta 2.
On
main1310d78, thelibctarget fails with the error above.With this change, guest libc, the kernel and AGC build and link. Four focused AGC runtime tests pass on MoltenVK with the AGENTS.md validation environment: the loader inserts the layer and there are 0
VUID-lines. On top of this change, the pipeline warm tool's--dry-runruns against a recorded journal with 0VUID-lines.A main-side GPU comparison is not possible on macOS, because
maindoes not link there.python3 tools/check_conventions.pypasses.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)Created with GPT-6.2 Sol in Codex.
Summary by CodeRabbit