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

Errors while building spin shim on Apple Silicon M1 #106

Open
bindsi opened this issue Jun 24, 2023 · 1 comment
Open

Errors while building spin shim on Apple Silicon M1 #106

bindsi opened this issue Jun 24, 2023 · 1 comment

Comments

@bindsi
Copy link
Contributor

bindsi commented Jun 24, 2023

When I want to build the ../containerd-shim-spin-v1 project by running
cargo build --manifest=./Cargo.toml
on Apple Silicon M1 Macbook I get the following error:

error[E0425]: cannot find function prctlin cratelibc --> /Users/marcelbindseil/.cargo/registry/src/index.crates.io-6f17d22bba15001f/caps-0.5.5/src/ambient.rs:39:15

xCode and rust target 'aarch64-apple-darwin' are installed.

Any idea how to solve it?

@Mossaka
Copy link
Member

Mossaka commented Jun 26, 2023

I don't think that's currently feasible due to this issue: containerd/runwasi#42

However, you can use cross to build statically linked ARM binary. Here is a command that helps to do

cross test --release --manifest-path=containerd-shim-spin-v1/Cargo.toml --target aarch64-unknown-linux-musl

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

2 participants