bytecodealliance / lucet

Lucet, the Sandboxing WebAssembly Compiler.
Apache License 2.0
4.06k stars 164 forks source link

cargo cannot resolve dependency #597

Closed goldkehlchen closed 3 years ago

goldkehlchen commented 3 years ago

Unfortunately cargo install lucetc fails immediately:

Updating crates.io index
Installing lucetc v0.6.1
error: failed to compile `lucetc v0.6.1`, intermediate artifacts can be found at `/tmp/cargo-installg4Nr8d`

Caused by:
  failed to select a version for the requirement `wabt = "^0.9.2"`
  candidate versions found which didn't match: 0.10.0, 0.9.1, 0.9.0, ...
  location searched: crates.io index
  required by package `lucetc v0.6.1`
jedisct1 commented 3 years ago

If you recently updated the main repository, you should update the submodules as well:

git submodule update --init
jedisct1 commented 3 years ago

Scratch that. If you used cargo install, the issue is rather that we forgot to update some packages on crates.io, oops!

Thanks for reporting this. It will be fixed as soon as possible.

Meanwhile the easiest way to install Lucet is to clone this repository and use make install.

jedisct1 commented 3 years ago

Update: wabt 0.9.2, that lucetc depends on, was yanked by its author.

In the current development version of lucet, that dependency was changed back to version 0.9.1. So, compiling directly from this directory should work as expected.