gcc15 compile 6.6.y kernel failed #12971
Replies: 7 comments 3 replies
-
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging |
Beta Was this translation helpful? Give feedback.
-
WslLogs-2025-05-23_10-58-21.zip |
Beta Was this translation helpful? Give feedback.
-
Diagnostic information
|
Beta Was this translation helpful? Give feedback.
-
@yihaodong1 why are you trying to build the Linux kernel using |
Beta Was this translation helpful? Give feedback.
-
I am using Arch ditro, and its gcc is gcc15 now. And I want to add the build flag, but did not find the suitable place😂 |
Beta Was this translation helpful? Give feedback.
-
use gcc-13, and make -CC=gcc-13 |
Beta Was this translation helpful? Give feedback.
-
For reference, the upstream mainline "fix" for this is this commit: torvalds/linux@b3bee1e Or on the 6.6.y branch, gregkh/linux@bc133e4 is part of 6.6.93. This isn't exactly a "fix" because GCC 15 compatibility wasn't a thing back in 2023, but adding an explicit |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
the error is below
I assume that this is because gcc15 use -std=c23 as default, and I use command "make -n -j$(nproc) KCONFIG_CONFIG=Microsoft/config-wsl | sed 's/;/\n/g' | grep gcc |grep -v "std" | less" to find the compile command use default std, and its output is below
Beta Was this translation helpful? Give feedback.
All reactions