Stream: compiler development

Topic: Help with refactor valgrind host


view this post on Zulip Luke Boswell (May 05 2024 at 14:56):

Can I please get some assistance with https://github.com/roc-lang/roc/pull/6714 from someone who is using a linux machine?

I don't have a linux machine to work with (for the next few weeks).

It should only be a few minor tweaks to the rust, and run the tests to confirm it works.

I just don't want to use up too much CI going back and forth with minor changes.

view this post on Zulip Folkert de Vries (May 05 2024 at 15:09):

I fixed the compile errors, but this is printed when I run the tests in that crate

An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: https://github.com/roc-lang/roc/issues/new/choose
thread '<unnamed>' panicked at 'failed to open file "/home/folkertdev/roc/roc/crates/glue/src/../platform/dynhost": No such file or directory (os error 2)', crates/linker/src/lib.rs:555:29
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'Failed to (re)build platform.: Any { .. }', crates/compiler/build/src/program.rs:976:46
zig-platform/host.zig:3:21: error: unable to load 'zig-platform/glue/str.zig': FileNotFound
const str = @import("glue/str.zig");
                    ^~~~~~~~~~~~~~

is that expected?

view this post on Zulip Luke Boswell (May 05 2024 at 15:34):

It should have generated the glue files in that glue/ folder??

view this post on Zulip Luke Boswell (May 05 2024 at 15:42):

Ohk, also needs some changes I've got on my other branch.

view this post on Zulip Luke Boswell (May 05 2024 at 15:43):

It's probably best to wait I think. Thank you for helping me. It will be best to roll in with the other changes, and I can test back home.


Last updated: Jul 06 2025 at 12:14 UTC