-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fails to build on Apple Silicon M2 #342
Comments
I'm sorry about this. Because we bind to the AWS-LC (libcrypto) library, we must generate Rust bindings for its API. For Linux (x86, x86-64, aarch64) and Mac (x86-64), these bindings are pre-generated. However, other platforms need to enable our "bindgen" feature so that the binding are created at build-time. One possible work-around is to take a direct dependency on |
I'm having trouble reproducing this on an M2 Mac. I am curious whether you might be cross-compiling to a different platform? Is your default toolchain
|
Another helpful data point might be your XCode active developer directory.
|
Since I'm not installing
I already have LLVM and Clang installed via Macports, they appear to be fine (and live in
$ rustup toolchain list
stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin
$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
$ xcode-select --version
xcode-select version 2405.
$ clang -v
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ |
Failed to build it too, but with a different log:
|
It looks like your log matches the one reported separately in #348 |
@justsmth is it possible to add macos aarch64 to the list of pre-generated targets? A lot of developers are using Apple M1/2/3 computers, and the number of affected people (who will have to build from scratch) will only be increasing. Thanks! |
Yes! :-) This is something we've started working. I hope to have something ready to PR for it soon. |
Closing issue. For latest discussion of issue see: rust-lang/rust-bindgen#2401 |
Problem:
It happens during build of https://github.com/rustls/rustls.git which tries to build dependencies
aws-lc-rs -> aws-lc-sys
.The issue has been reported here and recommended to bring up in this repo, because it appears to be this crate's problem.
Steps to reproduce are shown there.
Relevant details
AWS-LC for Rust versions or commit: v1.6 (as far as I can tell)
System information: for linux, below info can be collected by running
uname -srvmp
Build log:
The text was updated successfully, but these errors were encountered: