Hi, I'm trying the nightly compiler on Linux (Ubuntu) with Luke's basic-cli platform v 0.6, and I'm getting this error:
The platform at /home/albx/.cache/roc/packages/2BfGn4M9uWJNhDVeMghGeXNVDFijMfPsmmVeo6M4QjKX/main.roc
does not support the x64glibc target for exe builds.
Supported targets for exe:
- x64mac
- arm64mac
- x64musl
- arm64musl
- x64win
- arm64win
however, I do have musl and musl-dev installed, so I would expect to be able to compile and run musl-based binaries anyway. Or have I completely misunderstood the way glibc and musl coexist?
thanks!
Hi @albx,
Can you share your compiler version?
roc yourfile.roc --no-cache may permanently fix the issue.
Yeah. I think that platform only every made a static musl release
Avoids dependencies
That said, it should be the default on Linux and just work
Did you explicitly request glibc?
I'm using roc_nightly-linux_x86_64-2026-01-01-21f3731, and I've tried compiling with
roc --target=x64musl main.roc --no-cache
(plus all combinations with and w/o --target and --no-cache). Somehow I'm always getting the does not support the x64glibc target for exe builds error.
I can try to reproduce, can you share your main.roc file @albx?
Hi Anton, I've put it here: https://github.com/albx79/roc-tutorial
but it's just a main with a couple of Stdout.line!, nothing fancy. Perhaps the real test is trying to compile it under Ubuntu 24.04.3
We do test in CI with Ubuntu 24 but I will check it out soon.
I was able to reproduce the issue
Building roc from source did work for me, so in the roc repo:
git clean -fdx
zig build roc
./zig-out/bin/roc main.roc
You will also need to add Ok({}) after your last Stdout when using Luke's zig template platform.
yes I can confirm that it works if I compile zig from sources! thanks!
I found the issue with the nightly too, it should be fixed with tomorrow's nightly
Last updated: Jan 12 2026 at 12:19 UTC