agc tests: GpuIndirectArgumentsMisalignedWriterAhead.cpp does not compile with MinGW GCC (alignas(65536)) #6716

Closed
opened 2026-10-16 06:53:05 +00:00 by ps54all · 2 comments
ps54all commented 2026-10-16 06:53:05 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ps54all on 2026-10-16T06:53:05Z.


Since 6b14169a4 (still on main 5d9dcc42d), the test's static alignas(BlockBytes) std::array<std::uint8_t, BlockBytes> Block{} (BlockBytes = 65536) fails on Windows with MinGW GCC 15.2.0:

GpuIndirectArgumentsMisalignedWriterAhead.cpp:25:58: error: requested alignment '65536' exceeds object file maximum 8192

PE/COFF sections cap alignment at 8192. The other execution tests that need a 64 KiB guest block (ConstantStore.cpp, AlphaToCoverage.cpp, ...) allocate it with VirtualAlloc / std::aligned_alloc; doing the same here builds, and the test passes (Windows 11, GCC 15.2.0, RTX 3080). Happy to open a PR with that change if wanted.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5879746202 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6716). Originally posted by [ps54all](https://github.com/ps54all) on 2026-10-16T06:53:05Z. --- Since 6b14169a4 (still on main 5d9dcc42d), the test's static `alignas(BlockBytes) std::array<std::uint8_t, BlockBytes> Block{}` (BlockBytes = 65536) fails on Windows with MinGW GCC 15.2.0: ``` GpuIndirectArgumentsMisalignedWriterAhead.cpp:25:58: error: requested alignment '65536' exceeds object file maximum 8192 ``` PE/COFF sections cap alignment at 8192. The other execution tests that need a 64 KiB guest block (`ConstantStore.cpp`, `AlphaToCoverage.cpp`, ...) allocate it with `VirtualAlloc` / `std::aligned_alloc`; doing the same here builds, and the test passes (Windows 11, GCC 15.2.0, RTX 3080). Happy to open a PR with that change if wanted. AI-assisted: yes (Claude Code).
MarcZX10 commented 2026-10-16 14:20:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T14:20:11Z.


This is already covered by two open PRs against the same fixture: #6452 uses an aligned span inside static backing storage, and #6829 uses a dynamically allocated aligned block. Both address the reported MinGW 64 KiB alignment failure. I compared their changed path with current main; the issue source still has the alignas(65536) declaration. Please coordinate/consolidate with those PR authors rather than opening another fix.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217521748 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6716#issuecomment-6217521748). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T14:20:11Z. --- This is already covered by two open PRs against the same fixture: #6452 uses an aligned span inside static backing storage, and #6829 uses a dynamically allocated aligned block. Both address the reported MinGW 64 KiB alignment failure. I compared their changed path with current main; the issue source still has the `alignas(65536)` declaration. Please coordinate/consolidate with those PR authors rather than opening another fix.
ps54all commented 2026-10-16 21:19:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ps54all on 2026-10-16T21:19:07Z.


Closing as covered by #6452 and #6829, which fix the same MinGW 64 KiB alignment failure in this fixture (thanks @MarcZX100 for comparing them).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224899819 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6716#issuecomment-6224899819). Originally posted by [ps54all](https://github.com/ps54all) on 2026-10-16T21:19:07Z. --- Closing as covered by #6452 and #6829, which fix the same MinGW 64 KiB alignment failure in this fixture (thanks @MarcZX100 for comparing them).
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#6716
No description provided.