build: compile FileStream, error categories, thread priority and two tests on macOS #10419
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10419"
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 iamthehimansh on 2026-10-23T23:32:53Z.
What
Part 1 of splitting #8658 into topic PRs, as @adriadam10 asked: the shared-file build fixes that let
maincompile further on macOS. #4627 (@mugurc) has since landed theFormatting.cppandExportMacros.hppparts, so this PR carries only what is still missing onmain. All changes are macOS-only; Linux and Windows compile the same code as before.FileStream.hpp: callfeof_unlocked/ferror_unlockedunqualified. The macOS SDK defines them as macros, so::feof_unlockeddoes not exist.StandardExceptions.cpp:const_castthe error-category vtable slot before the function-pointerreinterpret_cast, which Apple clang rejects as casting away qualifiers. Without itlibc/src/exception/Exports.cppfails to build sincestd::system_categorylanded.ThreadPriority.cpp: macOS has no rtkit orRLIMIT_RTTIME.highasks for the user-interactive QoS class, andrtfor a Mach time-constraint policy (period 1 ms, computation 0.5 ms), documented indocs/dev/ENVIRONMENT.md.GuestContentSearch.cppandGuestNpWebApi2.cpp: include<initializer_list>.On macOS,
mainstill fails 13 objects with this PR, each in a file another open macOS PR changes:GuestAllocations.cpp(branch),DirectMemory.cpp(#7631),Thread.cppandProcess.cpp(#7804),Exception.cppandGuestRaiseException.cpp(#4630), andNativeStat.cpp,SharedMemory.cpp,Stdio.cpp,DynamicLoader.cpp,ModuleInfo.cppandRtld.cpp(#7201).With
BUILD_TESTING=ON,libSceAgcDriveralso fails inDriver/Lifecycle.cpp(MAP_FIXED_NOREPLACE),Execution/src/GuestMemory.cpp(link.h),GuestBufferMemory.cpp(linux/udmabuf.h) andTexture.cpp(is_trivially_copyableon astd::shared_ptr). Those fixes were in #8658 and come in the AGC driver part of the split, since they need the driver memory and dma-buf changes there.Tested
macOS 26 on an Apple M2 Pro, x86_64 under Rosetta 2, Release with Ninja, on
mainata23f8fc9f. The library build's remaining failures are the 13 objects above. For Linux and Windows, I checked each changed file's view underunifdef -U__APPLE__, with-D__linux__and with-D_WIN32: it equalsmain.python3 tools/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-23T23:39:27Z.
Review: APPROVED
Reviewed the current diff and hosted checks. The macOS-only branches address the reported SDK/compiler failures, the Linux/Windows paths remain unchanged, and the author reports a focused Apple Silicon build plus Rosetta x86_64 compile. Hosted conventions, eligibility, intake, labels, register-context, and write-watch checks pass; Linux and Windows product jobs were skipped by the repository path policy. I found no blocking issue.