Skip to content

Upgrade MinGW Toolchain #830

@stephanosio

Description

@stephanosio

The MinGW toolchain that is available as part of Debian 10, which is the base image for the sdk-build Docker image, is too outdated (MinGW 6.0.0 with GCC 8.3.0) to support Windows LLVM build.

Update the sdk-build Docker image to include a more up-to-date MinGW-w64 toolchain.

Notes

  • It will be necessary to build the full MinGW-w64 toolchain from source since there is no adequate binary distribution available for Debian 10.
  • Use mingw-w64 package from Ubuntu 24.10 as a reference.
  • GCC will need to be built for both win32 and posix thread models.
    • Keep building Windows GNU toolchain with win32 thread model since we do not need pthread and we do not want to include pthread DLL in the Windows GNU toolchain distribution.
    • LLVM uses std::thread, which depends on pthread, and therefore require the posix thread model. Yes, we will need to include the pthread DLL.
  • Build MinGW-w64 with UCRT as the "default MSVCRT."

Resources

Metadata

Metadata

Assignees

Labels

platform: WindowsIssues related to Zephyr SDK on Windows hosts

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions