-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
must-ar not executing successfully while building ring #111
Comments
It did run on x86 linux box, so could just be an M1 issue with Docker. |
Possibly, have not tested much on arm yet. You could try passing |
Getting the same issue, only happens on M1 |
Did anyone find a workaround for this? I have to make builds possible on M1/M2 hardware... |
workaroundThis should be an issue of Docker on Apple Silicon, not this docker image. I solved the issue by using lima. The lima base image should be x86_64 beucase I had the same issue when using arch: "x86_64"
images:
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20240126/ubuntu-22.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:9f8a0d84b81a1d481aafca2337cb9f0c1fdf697239ac488177cf29c97d706c25"
mounts:
- location: "~"
- location: "/tmp/lima"
writable: true |
My workaround was to swap out and upgrade dependencies so as not to rely on ring. Latest releases of rustls use aws-lc-rc instead of ring by default |
Running on Mac M1
Commandline:
docker run -v $PWD:/volume --rm -t clux/muslrust:stable cargo build --release
error: failed to run custom build command for
ring v0.16.20
Caused by:
process didn't exit successfully:
/volume/target/release/build/ring-c0a105218b2127e9/build-script-build
(exit status: 1)The text was updated successfully, but these errors were encountered: