Stream: beginners

Topic: Compiler error


view this post on Zulip Matthew Phillips (Dec 01 2023 at 22:05):

I'm getting this when I try to build:

ld: file not found: platform/macos-arm64.o

I have the roc binary as a symlink. could that be why?

view this post on Zulip Brendan Hansknecht (Dec 01 2023 at 22:23):

What is your platform you are building against?

view this post on Zulip Matthew Phillips (Dec 01 2023 at 22:41):

It's the virtual-dom-wip example

view this post on Zulip Matthew Phillips (Dec 01 2023 at 22:41):

I know that example isn't working yet, but this is not the error message I was expecting.

view this post on Zulip Brendan Hansknecht (Dec 01 2023 at 22:47):

Oh, virtual-dom-wip-example targets wasm

view this post on Zulip Brendan Hansknecht (Dec 01 2023 at 22:47):

so probably need --target=wasm32

view this post on Zulip Luke Boswell (Dec 01 2023 at 22:48):

We've not been able to get that to type check. Its been a really good stress test for the compiler and lambda sets in particular. I think this issue is outstanding https://github.com/roc-lang/roc/issues/5749

view this post on Zulip Luke Boswell (Dec 01 2023 at 22:49):

roc build --target=wasm32 examples/virtual-dom-wip/example-client.roc

view this post on Zulip Luke Boswell (Dec 01 2023 at 22:49):

Gives

thread '<unnamed>' panicked at 'no lambda set found for (`21.IdentId(24)`, []): LambdaSet {
    set: [],
    args: [
        InLayout(
            217,
        ),
        InLayout(
            140,
        ),
    ],
    ret: InLayout(
        217,
    ),
    representation: InLayout(VOID),
    full_layout: InLayout(
        264,
    ),
}', crates/compiler/mono/src/layout.rs:1597:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Last updated: Jul 05 2025 at 12:14 UTC