We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey, I compiling the simple-extension example on a MacBookAir with arm M1 chip and failed because of the architecture. The error stack finishes with:
simple-extension
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anybody have an idea how to compile on apples silicon?
Best regards
The text was updated successfully, but these errors were encountered:
The discussion in PyO3/pyo3#1800 may give you clues?
Sorry, something went wrong.
Yes thanks!
TLDR: Create a file .cargo/config.toml in the project (or $HOME/.cargo/config.toml) folder with the following settings:
.cargo/config.toml
$HOME/.cargo/config.toml
[target.aarch64-apple-darwin] rustflags = [ "-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup", ]
Then build as usual:
cargo build
Tested with rustc version is rustc 1.59.0-nightly (efec54529 2021-12-04)
rustc
rustc 1.59.0-nightly (efec54529 2021-12-04)
No branches or pull requests
Hey, I compiling the
simple-extension
example on a MacBookAir with arm M1 chip and failed because of the architecture. The error stack finishes with:Does anybody have an idea how to compile on apples silicon?
Best regards
The text was updated successfully, but these errors were encountered: