Stream: beginners

Topic: linux x64glibc vs x64musl


view this post on Zulip albx (Jan 01 2026 at 16:01):

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!

view this post on Zulip Anton (Jan 01 2026 at 16:18):

Hi @albx,
Can you share your compiler version?

view this post on Zulip Anton (Jan 01 2026 at 16:22):

roc yourfile.roc --no-cache may permanently fix the issue.

view this post on Zulip Brendan Hansknecht (Jan 01 2026 at 17:25):

Yeah. I think that platform only every made a static musl release

view this post on Zulip Brendan Hansknecht (Jan 01 2026 at 17:25):

Avoids dependencies

view this post on Zulip Brendan Hansknecht (Jan 01 2026 at 17:25):

That said, it should be the default on Linux and just work

view this post on Zulip Brendan Hansknecht (Jan 01 2026 at 17:26):

Did you explicitly request glibc?

view this post on Zulip albx (Jan 02 2026 at 08:18):

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.

view this post on Zulip Anton (Jan 05 2026 at 09:55):

I can try to reproduce, can you share your main.roc file @albx?

view this post on Zulip albx (Jan 06 2026 at 09:15):

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

view this post on Zulip Anton (Jan 06 2026 at 10:08):

We do test in CI with Ubuntu 24 but I will check it out soon.

view this post on Zulip Anton (Jan 06 2026 at 12:29):

I was able to reproduce the issue

view this post on Zulip Anton (Jan 06 2026 at 12:34):

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

view this post on Zulip Anton (Jan 06 2026 at 12:35):

You will also need to add Ok({}) after your last Stdout when using Luke's zig template platform.

view this post on Zulip albx (Jan 06 2026 at 13:07):

yes I can confirm that it works if I compile zig from sources! thanks!

view this post on Zulip Anton (Jan 06 2026 at 13:11):

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