Stream: cranelift

Topic: Error when compiling cranelift-codegen 0.110.2


view this post on Zulip edoardo (Oct 18 2024 at 16:03):

Hello, I've been seeing this error for the first time:

error: couldn't read /cargo/registry/src/index.crates.io-6f17d22bba15001f/cranelift-codegen-0.110.2/isle_generated_code/isle_x64.rs: No such file or directory (os error 2)
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/cranelift-codegen-0.110.2/src/isa/x64/lower/isle/generated_code.rs:14:1
   |
   | include!(concat!(env!("ISLE_DIR"), "/isle_x64.rs"));
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)

Any idea what it could be?

view this post on Zulip Chris Fallin (Oct 18 2024 at 16:26):

looks like an issue with the ISLE build step -- is there an isle_x64.rs anywhere in your target/ directory?

view this post on Zulip Chris Fallin (Oct 18 2024 at 16:27):

also: you say "for the first time" -- what variable changed, new version of Rust, new Cranelift version, something else?

view this post on Zulip edoardo (Oct 18 2024 at 17:08):

This is from an action I run on github to build a project: I have a run that compiles correctly and one that stably fails with that error. Nothing changed between the two runs, at least in my code (maybe something changed in gh's runners?)

view this post on Zulip Chris Fallin (Oct 18 2024 at 18:19):

OK, the first thing I would do is try to reproduce locally, and then determine what exactly is new -- e.g. bisect compiler versions

view this post on Zulip Chris Fallin (Oct 18 2024 at 18:19):

A local reproduction will also be necessary to debug this further

view this post on Zulip edoardo (Oct 30 2024 at 10:14):

I was not able to reproduce it locally: what I ended up doing is removing the cache between each cargo build command in CI. However, I got a different one, still related to cranelift-codegen: https://docs.rs/crate/wasmer/5.0.0/builds/1485455

view this post on Zulip Chris Fallin (Oct 30 2024 at 15:20):

This looks like an issue with something outside of Cranelift's codebase: "read-only filesystem"

view this post on Zulip Chris Fallin (Oct 30 2024 at 15:20):

I see this is part of a build of Wasmer; I would suggest going to them for further technical support


Last updated: Nov 22 2024 at 16:03 UTC