The build scripts make use of overlayfs and require root privileges, so AN EXCLUSIVE WSL 2 DISTRO is required.
See Microsoft Learn.
- Download Ubuntu 24.04 WSL rootfs tarball from Ubuntu CD Images.
- Import it into WSL, for example:
wsl --import mingw-lite-buildenv C:\wsl\mingw-lite-buildenv Downloads\noble-wsl-amd64.wsl
- Restart Windows Terminal. “mingw-lite-buildenv” now appears in the dropdown list.
- Launch the exclusive distro (launch “Terminal”, select “mingw-lite-buildenv” from the dropdown list).
- Install required packages:
apt update apt install --no-install-recommends -y \ autoconf automake build-essential cmake flex gettext libtool llvm ninja-build texinfo \ 7zip ca-certificates curl file gawk libarchive-tools python3 python3-libarchive-c python3-packaging zstd
Cloning to Windows filesystem is recommended. For example with Windows Git Bash:
git clone https://github.com/redpanda-cpp/mingw-lite.git /d/mingw-lite --config core.autocrlf=false --config core.symlinks=truecore.autocrlf must be disabled, and core.symlinks must be enabled. To convert an existing repo, run:
# save workspace
git add *
git stash
# do convertion
git config core.autocrlf false
git config core.symlinks true
git reset --hard
# restore workspace
git stash pop