Unable to build on M1 mac
jjanczur opened this issue · 2 comments
I'm getting error: could not find "Cargo.toml" in "/Users/.../wasmtime-go" or any parent directory
I'm trying to build on my MacBook M1 "v0.34.0" but I tried as well with the most current "v0.38.0" without any luck.
Can anyone help me figure out what I'm doing wrong?
Steps to Reproduce
- Run
git clone --recurse-submodules https://github.com/bytecodealliance/wasmtime-go.git
- To be extra sure submodules are setup:
git submodule update --init
- Check
cargo check
- I'm getting an error - Build
cargo build
orcargo build -p wasmtime-c-api
both give me the same error
Error message
error: could not find "Cargo.toml" in "/Users/.../wasmtime-go" or any parent directory
Expected Results
Should build wasmtime-go library. (I tried to build wasmtime and it worked)
Versions and Environment
go version go1.16.15 darwin/arm64
git version 2.37.1
Macbook M1 silicon
Wasmtime version or commit:
722821f - 0.38.1
Or
4a44c93 - 0.34.0
This repository only holds the code for the Go bindings, to build Wasmtime itself you need to build the wasmtime repository
That is right. I'm sorry for the confusion.
I've already built it.
Thank you very much!