microsoft / microsoft/WSL

WSL kernel does not build with gcc 15

Open
#13,511 8 comments 0 reactions 1 assignee Claimed by @chessturo View on GitHub
kernel
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

irrelevant

### WSL Version

irrelevant

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

6.6.87.2-microsoft-standard-WSL2

### Distro Version

archlinux

### Other Software

_No response_

### Repro Steps

Compile linux kernel according to steps described in WSL2-Linux-Kernel using gcc 15.

### Expected Behavior

The kernel should compile with gcc 15.

### Actual Behavior

The kernel fails to compile due to kernel's incompatibility with c23(which gcc 15 defaults to)'s `bool` type as well as `true`, `false` identifiers.

### Diagnostic Logs

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.