Windows build broken since #3170: GuestJobManager.cpp uses std::aligned_alloc, absent in MinGW UCRT; fix branch ready #3329

Closed
opened 2026-10-11 07:50:48 +00:00 by screamm · 1 comment
screamm commented 2026-10-11 07:50:48 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T07:50:48Z.


Since #3170 (merged 2026-10-11 07:32) the Windows build of the full tree stops in the new test:

C:/dev/AnyPS5/core/libs/tests/GuestJobManager.cpp:100:67: error: 'aligned_alloc' is not a member of 'std'; did you mean 'aligned_union'?
ninja: build stopped: subcommand failed.

MinGW-w64's UCRT (WinLibs GCC 15.2.0 r7, the toolchain CI uses) has no aligned_alloc, so cmake --build build fails before ctest can run; libs still builds.

Fix branch ready: screamm:fix/job-manager-test-aligned-alloc (119d59fd, one commit on main 2bb78d2c). The test's Block allocates with the aligned ::operator new(size, std::align_val_t{256}) and frees with the matching ::operator delete, standard C++17 on every host; nothing else changes.

Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON: guest_job_manager_tests builds, and the eight job_manager tests pass 3/3 (--repeat until-fail:3); tools/check_conventions.py --base main passes. Not run on Linux.

Written with Claude Code assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5799155653 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3329). Originally posted by [screamm](https://github.com/screamm) on 2026-10-11T07:50:48Z. --- Since #3170 (merged 2026-10-11 07:32) the Windows build of the full tree stops in the new test: ``` C:/dev/AnyPS5/core/libs/tests/GuestJobManager.cpp:100:67: error: 'aligned_alloc' is not a member of 'std'; did you mean 'aligned_union'? ninja: build stopped: subcommand failed. ``` MinGW-w64's UCRT (WinLibs GCC 15.2.0 r7, the toolchain CI uses) has no `aligned_alloc`, so `cmake --build build` fails before `ctest` can run; `libs` still builds. **Fix branch ready:** [`screamm:fix/job-manager-test-aligned-alloc`](https://github.com/screamm/AnyPS5/tree/fix/job-manager-test-aligned-alloc) (`119d59fd`, one commit on `main` `2bb78d2c`). The test's `Block` allocates with the aligned `::operator new(size, std::align_val_t{256})` and frees with the matching `::operator delete`, standard C++17 on every host; nothing else changes. **Tested** on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`: `guest_job_manager_tests` builds, and the eight `job_manager` tests pass 3/3 (`--repeat until-fail:3`); `tools/check_conventions.py --base main` passes. Not run on Linux. Written with Claude Code assistance.
reyani-dev commented 2026-10-11 08:00:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T08:00:22Z.


Carried as #3332: only your 119d59fd (unchanged), not the sceVoiceQoSEnd commit below it on the branch. Confirmed on Windows 11 / WinLibs GCC 15.2: main fails to build, and with the fix the tree builds, the job_manager tests pass 3/3 and the CPU suite passes 428/428.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106919437 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3329#issuecomment-6106919437). Originally posted by [reyani-dev](https://github.com/reyani-dev) on 2026-10-11T08:00:22Z. --- Carried as #3332: only your `119d59fd` (unchanged), not the `sceVoiceQoSEnd` commit below it on the branch. Confirmed on Windows 11 / WinLibs GCC 15.2: `main` fails to build, and with the fix the tree builds, the `job_manager` tests pass 3/3 and the CPU suite passes 428/428.
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#3329
No description provided.