Hi, I've updated wasmtime to version 30 in project, but I'm receiving strange compile errors (GH actions build)
Rebuilding D:\a\pulumi-gestalt\pulumi-gestalt\target\llvm-cov-target\debug\build\cranelift-codegen-204d40bafaee4b21\out\isle_x64.rs
Error building ISLE files:
cannot read file \a\pulumi-gestalt\pulumi-gestalt\target\llvm-cov-target\debug\build\cranelift-assembler-x64-9a48a64758bb0fa6\out\assembler-definitions.isle
I was looking at source code to find some clues and I found this: https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/assembler-x64/src/lib.rs#L83-L88. Since Windows paths do contain :
won't it potentially break?
cc @Andrew Brown (I'm surprised our CI on Windows passed? maybe it uses non-absolute paths or the new-style UNC paths without colons on drive letters?)
@Andrzej Ressel thanks for raising this -- seems like a real issue, we'll likely do a point release to fix if so
yeah, this should have been picked up by CI...
but while we figure out the CI I guess I'll push a PR to use ;
on Windows
https://github.com/bytecodealliance/wasmtime/pull/10266
@Andrzej Ressel, I'm actually running cargo build
in PowerShell on Windows and I cannot reproduce the error you found in your CI. I think the PR I submitted is still a good idea, but maybe there is something else at play. Is there a way for you to test if that PR will fix your issue?
To be honest - locally it's also working fine for me. It seems to be something related to Windows configuration on GH runner.
magic
@Andrzej Ressel would you be able to confirm that Wasmtime's now-main
branch works for you? I tried and could not reproduce this behavior either on github actions or locally so I'm pretty stumped by what's going on. In that sense I think a point release would still be good but want to confirm that it's fixing the issue in question here first
Sure, I saw the new release on github. I should just
[dependencies]
wasmtime = { git = "wasmtime repo"}}
?
I will try it later today
yeah and double-check your CI passes with that
(and pray it doesn't reproduce because if it does we're back to the drawing board...)
I somehow reproduced it - you must run it through cmd, not powershell
oh wild! did Andrew's change fix it in the end?
and what command did you end up running to make it fail?
plain cargo test
on
[package]
name = "a"
version = "0.1.0"
edition = "2021"
[dependencies]
wasmtime = "30.0.0"
with empty lib.rs
that's very weird, because I use powershell in Just runner - maybe cmd sets some weird env vars or something. Using "command prompt" from rustrover reproduces this issue in any case
and I believe project has be on different drive than rust
yeah - I have rust and cargo directory on F: drive and it works there - but on C and D it fails
ah, yeah... I can't reproduce locally on a single C:\ drive
so using the fix on main
resolves that?
this also raises my confidence that Andrew's fix is indeed all that's necessary here too
yeah, I think so - I'm looking at my other project and i'm trying to understand why the cmd one strips driver letter
I've replaced version with git on my project in Github and it builds fine
sounds like confirmation to me; I backported the fix to the release-30.0.0
branch here: https://github.com/bytecodealliance/wasmtime/pull/10270
v30.0.1 is now out/tagged so this should be good to go, thanks again Andrzej for helping us identify/fix this!
Last updated: Feb 27 2025 at 23:03 UTC