Following: https://github.com/bytecodealliance/wasmtime/tree/main/crates/c-api
The cmake --build target/c-api
line is giving me:
error: Package `cranelift-codegen v0.118.0 (/home/x/Desktop/wasmtime/cranelift/codegen)` does not have feature `pulley-interpreter`. It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.
gmake[2]: *** [CMakeFiles/wasmtime-crate.dir/build.make:86: wasmtime-crate-prefix/src/wasmtime-crate-stamp/wasmtime-crate-build] Error 101
gmake[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/wasmtime-crate.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
From what I have read, pulley is used for unsupported cranelift platforms. Except that I should be using aarch64 (double checked using rustc --print cfg
)
Am I doing something wrong?
Did you execute
cmake -S crates/c-api -B target/c-api --install-prefix "$(pwd)/artifacts"
prior to cmake --build target/c-api
? If so what version of rustc are you using and can you gist the full error? If not can you share your intial cmake
configuration line?
I did execute the first command yes. Rustc 1.63.0. Full result: https://pastes.dev/OyIXAcEORb
I think you'll need a more recent version of rustc, our minimial supported verison of rust is more in the 1.8x range
In theory you should have gotten an error saying you're on an old rustc but I'm not sure why you didn't get that
Last updated: Feb 28 2025 at 02:27 UTC