Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple M1 Support #390

Closed
anistark opened this issue Sep 14, 2021 · 2 comments
Closed

Apple M1 Support #390

anistark opened this issue Sep 14, 2021 · 2 comments

Comments

@anistark
Copy link
Contributor

anistark commented Sep 14, 2021

wasp uses wasmtime go library which doesn't work on M1 right now.

Running go install shows:

# github.com/bytecodealliance/wasmtime-go
ld: library not found for -lwasmtime

Once wasmtime-go supports M1, which in turn is stuck on Github CI support, wasp should work as well.

Alternatively, if anyone has any idea around making it work without github ci support, would be great.

@howjmay
Copy link
Member

howjmay commented Feb 2, 2022

I have opened a small PR(#774) to support compiling on M1 machines. This may temporarily solve the problem

@tuddman
Copy link

tuddman commented Feb 16, 2022

Requirements:

  • Go 1.17
  • Rust stable-aarch64-apple-darwin known to work on 1.58.1
## build wasmtime
git clone https://github.com/bytecodealliance/wasmtime.git
cd wasmtime
git submodule update --init
cargo build -p wasmtime-c-api --release

cd ..

## build wasmtime-go
git clone https://github.com/bytecodealliance/wasmtime-go
cd wasmtime-go
./ci/local.sh ../wasmtime

cd path-to-wasp
go mod edit -replace=github.com/bytecodealliance/wasmtime-go=<wasmtime-go path>
make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants