macOS Intel (native x86_64, macOS 15): full non-AGC test run, two build breaks and four failures not seen under Rosetta #27647

Open
opened 2026-11-26 21:35:17 +00:00 by LODIBIDO · 0 comments
LODIBIDO commented 2026-11-26 21:35:17 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LODIBIDO on 2026-11-26T21:35:17Z.


What happens

A full build and non-AGC test run on an Intel Mac, which no other report covers (the macOS runs on #22270 and #24341 are Apple silicon under Rosetta 2). Context for #24117.

Two build breaks on main:

  1. libwebrtc does not compile on any macOS. core/libs/prx/libwebrtc/src/AudioDecoderOpusImpl.cpp:576:
    error: no matching function for call to 'max'
    const std::size_t newCapacity = std::max(newSize, hostBuffer.capacity + hostBuffer.capacity / 2);
    note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::size_t' (aka 'unsigned long') vs. 'std::uint64_t' (aka 'unsigned long long'))
    
    hostBuffer.capacity is std::uint64_t (line 107). On Linux and Windows both types are the same, so CI does not see it. I found no open PR or issue for it.
  2. Floating-point std::from_chars is missing from the Command Line Tools libc++ (_LIBCPP_VERSION 190102), so UpscaleMode.hpp:25, libSceNKWebKit/CharactersToNumber.cpp:104 and libSceVideoOut/src/InputMapping.cpp:294,310 fail with call to deleted function 'from_chars'. This is the macos-15 problem already mentioned on #24341. It blocks 705 of the 4687 non-AGC tests here.

libcurl.prx also fails to link (_CFRelease, _SCDynamicStoreCopyProxies), which #17425 fixes.

Four test failures, 3 of 3 runs each, that are not in the list of known macOS failures on #22270:

Test Output
guest_math GuestMath.cpp:4919: requirement failed
guest_strtod_subnormal FTZ flushes an inexact decimal subnormal
guest_filesystem aborts without a message after the exclusive.link / held.txt / libc_rename opens
guest_udp aborts without a message

guest_math cause: CheckTinyInverseTrigFlags compares std::fetestexcept(FE_ALL_EXCEPT) with FE_INEXACT. For asin(denorm_min), the flags are 0x22: FE_INEXACT plus 0x02, the x86 denormal-operand flag. On macOS x86-64, FE_ALL_EXCEPT is 0x3f and includes that flag. On glibc and FreeBSD amd64 it is 0x3d and leaves it out, so Linux CI passes, and Rosetta 2 apparently does not raise it. Instrumented run:

asin in=0x1p-30   out=0x3e10000000000000 errno=1234 flags=0x20 expected=0x20
asin in=0x1p-1074 out=0x1                errno=1234 flags=0x22 expected=0x20

The result and errno are right; only the flag mask differs. Masking with the five standard flags (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW | FE_INEXACT) instead of FE_ALL_EXCEPT would match what the FreeBSD guest can observe. The same mask question may apply to guest_strtod_subnormal, which sets MXCSR 0x9fc0; I did not trace it, or guest_filesystem and guest_udp.

Eleven other failures match the known lists: guest_kernel_sys and guest_kernel_sys_execve (#22270), guest_icu_comparisons (#26519), and run_report, guest_math_exact, guest_throw_bad_array_new_length, guest_libc_internal_exception_virtuals, guest_sce_net, guest_socket_options, guest_poll and guest_socket_port_zero (#22270 comment list, #21538). Two more, guest_libcxx_exception_pointer and guest_exception_pointer, abort too and are probably #21538 (host code cannot catch guest exceptions), but that issue does not name them.

Title, test or build step

Full build; ctest -E '^agc' -j2

AnyPS5 commit

main 81ff76a0c0 plus #27201 (libc does not compile on macOS without it or #26739)

System

Intel Core i5-8259U, native x86_64 (no Rosetta), 8 GB, macOS 15.7.8 (24G814), Apple clang 17.0.0 (clang-1700.0.13.5), CMake 4.4.5, Ninja

Steps to reproduce

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON
cmake --build build -- -k 0
ctest --test-dir build -E '^agc' -R '^guest_(math|strtod_subnormal|filesystem|udp)$' --output-on-failure

Result: 3760 of 4687 non-AGC tests passed and 705 were not run because of the build breaks. After rebuilding the relinker helpers my target selection had left out, 17 failed: the four above, the eleven known ones and the two exception tests.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6635459006 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/27647). Originally posted by [LODIBIDO](https://github.com/LODIBIDO) on 2026-11-26T21:35:17Z. --- ### What happens A full build and non-AGC test run on an Intel Mac, which no other report covers (the macOS runs on #22270 and #24341 are Apple silicon under Rosetta 2). Context for #24117. Two build breaks on `main`: 1. **`libwebrtc` does not compile on any macOS.** `core/libs/prx/libwebrtc/src/AudioDecoderOpusImpl.cpp:576`: ``` error: no matching function for call to 'max' const std::size_t newCapacity = std::max(newSize, hostBuffer.capacity + hostBuffer.capacity / 2); note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::size_t' (aka 'unsigned long') vs. 'std::uint64_t' (aka 'unsigned long long')) ``` `hostBuffer.capacity` is `std::uint64_t` (line 107). On Linux and Windows both types are the same, so CI does not see it. I found no open PR or issue for it. 2. **Floating-point `std::from_chars`** is missing from the Command Line Tools libc++ (`_LIBCPP_VERSION` 190102), so `UpscaleMode.hpp:25`, `libSceNKWebKit/CharactersToNumber.cpp:104` and `libSceVideoOut/src/InputMapping.cpp:294,310` fail with `call to deleted function 'from_chars'`. This is the `macos-15` problem already mentioned on #24341. It blocks 705 of the 4687 non-AGC tests here. `libcurl.prx` also fails to link (`_CFRelease`, `_SCDynamicStoreCopyProxies`), which #17425 fixes. Four test failures, 3 of 3 runs each, that are not in the list of known macOS failures on #22270: | Test | Output | |---|---| | `guest_math` | `GuestMath.cpp:4919: requirement failed` | | `guest_strtod_subnormal` | `FTZ flushes an inexact decimal subnormal` | | `guest_filesystem` | aborts without a message after the `exclusive.link` / `held.txt` / `libc_rename` opens | | `guest_udp` | aborts without a message | **`guest_math` cause:** `CheckTinyInverseTrigFlags` compares `std::fetestexcept(FE_ALL_EXCEPT)` with `FE_INEXACT`. For `asin(denorm_min)`, the flags are `0x22`: `FE_INEXACT` plus `0x02`, the x86 denormal-operand flag. On macOS x86-64, `FE_ALL_EXCEPT` is `0x3f` and includes that flag. On glibc and FreeBSD amd64 it is `0x3d` and leaves it out, so Linux CI passes, and Rosetta 2 apparently does not raise it. Instrumented run: ``` asin in=0x1p-30 out=0x3e10000000000000 errno=1234 flags=0x20 expected=0x20 asin in=0x1p-1074 out=0x1 errno=1234 flags=0x22 expected=0x20 ``` The result and `errno` are right; only the flag mask differs. Masking with the five standard flags (`FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW | FE_INEXACT`) instead of `FE_ALL_EXCEPT` would match what the FreeBSD guest can observe. The same mask question may apply to `guest_strtod_subnormal`, which sets MXCSR `0x9fc0`; I did not trace it, or `guest_filesystem` and `guest_udp`. Eleven other failures match the known lists: `guest_kernel_sys` and `guest_kernel_sys_execve` (#22270), `guest_icu_comparisons` (#26519), and `run_report`, `guest_math_exact`, `guest_throw_bad_array_new_length`, `guest_libc_internal_exception_virtuals`, `guest_sce_net`, `guest_socket_options`, `guest_poll` and `guest_socket_port_zero` (#22270 comment list, #21538). Two more, `guest_libcxx_exception_pointer` and `guest_exception_pointer`, abort too and are probably #21538 (host code cannot catch guest exceptions), but that issue does not name them. ### Title, test or build step Full build; `ctest -E '^agc' -j2` ### AnyPS5 commit `main` `81ff76a0c0` plus #27201 (libc does not compile on macOS without it or #26739) ### System Intel Core i5-8259U, native x86_64 (no Rosetta), 8 GB, macOS 15.7.8 (24G814), Apple clang 17.0.0 (clang-1700.0.13.5), CMake 4.4.5, Ninja ### Steps to reproduce ``` cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON cmake --build build -- -k 0 ctest --test-dir build -E '^agc' -R '^guest_(math|strtod_subnormal|filesystem|udp)$' --output-on-failure ``` Result: 3760 of 4687 non-AGC tests passed and 705 were not run because of the build breaks. After rebuilding the relinker helpers my target selection had left out, 17 failed: the four above, the eleven known ones and the two exception tests. AI-assisted: yes
Sign in to join this conversation.
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#27647
No description provided.