fix(libkernel): restore Windows select build for Demons Souls testing #4021
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4021"
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 Mouhand-Kaddo on 2026-10-11T21:34:00Z.
What
Windows builds of current main cannot produce
libkernel, blocking Demon's Souls startup testing. The host-file descriptor support merged in #3462 definesHostPollonly for non-Windows builds but calls it from two unguarded branches:Compile those Unix host-file polling branches under the same platform guard as the helper and host descriptor classification. Windows socket selection continues through the socket poller; unsupported descriptors still throw during classification.
Tested
Windows 11 x64, MinGW GCC 15.2, Release, base
989146c3b:cmake --build build-windows --target libkernel --parallel 4fails on main with both errors above and builds with this change.libstarget builds successfully with this change.guest_sce_net,guest_sysmodule,guest_socket_read_write,guest_socket_pairandguest_socket_events: 5/5 pass.guest_sce_netcovers immediate and timedselect, invalid timeouts and descriptor ranges, and mixed socket/device descriptors.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-11T21:54:25Z.
Independent validation of the exact
Socket.cppcorrection from121b16fb4bbd47ff4ce9302c40631bab858e3e71, applied to our local diagnostic integration based on maina672688e94f3ba3503c58fc70871f37c4f198a28:BUILD_TESTING=ON: the uncorrected main translation unit fails at bothHostPollreferences; the corrected translation unit passes. The full integration build andlibstarget then pass.guest_sce_net,guest_sysmodule,guest_socket_read_write,guest_socket_pair, andguest_socket_eventseach pass five times without skips. Reproduction after building:ctest --test-dir build-review -R "^(guest_sce_net|guest_sysmodule|guest_socket_read_write|guest_socket_pair|guest_socket_events)$" --repeat until-fail:5 --parallel 1 --timeout 30 -V.Scope: this validates the exact correction with current integration headers, not a full build of the unchanged PR head. The integration required a separate local
ColorTarget::arraySliceconsolidation. Its broader 868-test suite has one unrelated synchronous registered-workgroup test failure under investigation, so this is not a claim that the entire suite passes. No push or new PR.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T22:08:44Z.
Confirming the Windows build break this fixes, on
mainca4ab0d5d(MinGW GCC 15.2.0):core/libs/prx/libkernel/Socket/src/Socket.cpp:194:39and:212:17fail witherror: 'HostPoll' was not declared in this scope;HostPollis defined only inside the#ifndef _WIN32block (line 66 in that file at that commit) and called fromselecton every platform. Buildinglibkernelwith this PR applied on top ofmainsucceeds.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T22:21:33Z.
Windows validation (Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON):main1a7b96b5fails exactly as described (Socket.cpp:194:39and:212:17:'HostPoll' was not declared in this scope), so no Windows build oflibkernelis possible on currentmain. With121b16fbmerged onto1a7b96b5the full build includinglibssucceeds;guest_select,guest_socket_pair,guest_socket_read_write,guest_poll3/3 with--repeat until-fail:3;ctest -j8 -E "^agc_driver_|^video_out_flip"573/575. The two failures are unrelated to this file and new on this host sincea11c8f7f:agc_write_tracking(write tracking test failed: an unwatched range reads as not stored over) andguest_kernel_stack_protect(FATAL: abort() (SIGABRT)); the earlier Windows failureswindows_exceptions,guest_kernel_sysandguest_filesystemare gone on thismain. This fix unblocks every Windows build, so merging it first would help everyone validating on Windows.