Have anyone tried to compile Roc under MSYS2 on Windows (MSYS2)? I was able to install Rust compiler /w cargo ecosystem that allows me to produce native PE32+ libraries
$ pacman -S mingw-w64-ucrt-x86_64-rust
resolving dependencies...
looking for conflicting packages...
Packages (1) mingw-w64-ucrt-x86_64-rust-1.78.0-1
Total Installed Size: 392.64 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [###################################################################] 100%
(1/1) checking package integrity [###################################################################] 100%
(1/1) loading package files [###################################################################] 100%
(1/1) checking for file conflicts [###################################################################] 100%
(1/1) checking available disk space [###################################################################] 100%
:: Processing package changes...
(1/1) installing mingw-w64-ucrt-x86_64-rust [###################################################################] 100%
$ cat main.rs
fn main() {
println!("Hello, world!");
}
$ rustc main.rs
$ file main.exe
main.exe: PE32+ executable (console) x86-64, for MS Windows, 20 sections
Have anyone tried to compile Roc under MSYS2 on Windows
I don't think so
I am very interested to know how you go with this though. I've been using Roc on windows but just building from source. There are a bunch of issues, but we just need more contributors with Windows machines and experience to really sort them out
compilation went fine up until about 80%, and then failed on missing zig compiler ... so now I'm trying to bring zig into MSYS2 - the latest status is: it does not compile from the source, because does not understand the target named : x86_64-msys ...
I will be investigating and try to compile Roc under MSYS2, but it might take time - I will keep you posted
Last updated: Jun 16 2026 at 16:19 UTC