Stream: contributing

Topic: ✔ cargo build failed


view this post on Zulip Ghislain (Dec 02 2022 at 11:12):

I currently fail to build from the source (MacOS 12, M1, with nix, last commit)
It may be related to pull request #4649 (or not :sweat_smile: )

error: failed to run custom build command for `roc_repl_wasm v0.0.1 (/Users/ghigt/code/github/roc-lang/roc/crates/repl_wasm)`

Caused by:
  process didn't exit successfully: `/Users/ghigt/code/github/roc-lang/roc/target/debug/build/roc_repl_wasm-aa996b5e96ae37fe/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=src/repl_platform.c

  --- stderr
  thread 'main' panicked at 'Output {
      status: ExitStatus(
          unix_wait_status(
              256,
          ),
      ),
      stdout: "",
      stderr: "wasm-ld: error: cannot open /Users/ghigt/code/github/roc/target/debug/build/wasi_libc_sys-c1e5e76e7a9bf047/out/zig-cache/o/427ac8533f57f7adcbfa51a85c1af2b7/compiler_rt.o: No such file or directory\nwasm-ld: error: cannot open /Users/ghigt/code/github/roc/target/debug/build/wasi_libc_sys-c1e5e76e7a9bf047/out/wasi-libc.a: No such file or directory\n",
  }', crates/repl_wasm/build.rs:49:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

view this post on Zulip Anton (Dec 02 2022 at 11:16):

Hi @Ghislain, I'll look into it, is this with nix develop and then cargo build --release?

view this post on Zulip Anton (Dec 03 2022 at 12:10):

Does this still happen on the latest main @Ghislain?

view this post on Zulip Ghislain (Dec 03 2022 at 14:11):

Sorry, after a new failure today, I tried a cargo clean and it worked. I should have tried it before.

view this post on Zulip Anton (Dec 03 2022 at 14:22):

No worries, I'm glad it works :)

view this post on Zulip Notification Bot (Dec 03 2022 at 14:22):

Anton has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC