-
Notifications
You must be signed in to change notification settings - Fork 159
gdb: Default to _WIN32_WINNT=0x0600 #969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
DNM until zephyrproject-rtos/binutils-gdb#18 is merged. |
ba9ae3b
to
42bacb6
Compare
In conjunction with #974, verified that the GDB executable builds successfully and runs on Windows with no direct MinGW dependencies; also note that it links against the UCRT (
![]() |
Reverting "workaround for issue wih gdb/mingw" and making GCC build with the sdk-build MinGW toolchain seems to have made GCC misbehave for some Xtensa targets, which is a separate issue from what this PR fixes:
Full log: https://github.com/zephyrproject-rtos/sdk-ng/actions/runs/16438257464/job/46465635676 This is likely a file path length issue given that it only happens with the Xtensa toolchains with longer paths ... UPDATE It is indeed a long path issue. The issue is locally reproducible on a Windows 10 22H2 machine; moving the toolchain directory to a shorter path makes the compilation succeed. Based on https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry, enabling system-wide long path support ( |
This commit pulls in the GDB patch that sets `_WIN32_WINNT` to 0x0600 when not explicitly defined in the CFLAGS. Note that, libstdc++, when building with the win32 thread model, only supports std::mutex and std:condition_variable if _WIN32_WINNT >= 0x0600. Signed-off-by: Stephanos Ioannidis <[email protected]>
This reverts commit 5423f49 because the GDB build issue has been fixed. Signed-off-by: Stephanos Ioannidis <[email protected]>
Re: #969 (comment) Created a separate issue tracking this: #979 This will be fixed in a separate follow-up PR. |
42bacb6
to
93c46c3
Compare
This commit pulls in the GDB patch that sets
_WIN32_WINNT
to 0x0600when not explicitly defined in the CFLAGS.
Note that, libstdc++, when building with the win32 thread model, only
supports std::mutex and std:condition_variable if _WIN32_WINNT >=
0x0600.
GDB PR: zephyrproject-rtos/binutils-gdb#18
Tested in https://github.com/zephyrproject-rtos/sdk-ng/actions/runs/16438257464
Fixes #964