shellcheck
shellcheck copied to clipboard
Darwin arm64 builds
Refs #2714
Hi, I would like to propose an addition to the build process to add binaries for Apple Silicon CPUs.
I am not familiar with Haskell's toolchain, so I tried to follow the other builds.
As of my branch, the build fails as it can't find the koalaman/scbuilder-darwin-aarch64 docker image: I tried to build it myself but it fails due to ar not being found, see:
#12 74.74 checking for a working context diff... diff -U 1
#12 74.78 checking for a BSD-compatible install... /usr/bin/install -c
#12 74.91 checking for aarch64-apple-darwin18-ar... no
#12 74.91 configure: error: cannot find ar in your PATH, no idea how to make a library
Perhaps someone's open to collaborating on this one?
I believe the osxcross image predates Apple Silicon, so it doesn't have any aarch64 toolchains installed.
@omissis I believe the most used docker images for osxcross currently is maintained by crazymax: https://hub.docker.com/r/crazymax/osxcross/tags
I'd use SDK 12 as that's the last currently supported MacOS version: https://hub.docker.com/layers/crazymax/osxcross/12.3-r0-alpine/images/sha256-c65bf01d00f5a023d16236257fa91b764b18e583cfcc6ec8a17f35cb3571d0bd?context=explore
If you don't want to push this PR to completion that's also fine, I'd be happy to take over from here.
hey @reegnz, I haven't been looking at this one for a while and I am not familiar with the toolchain, so if you feel you can push it, go for it :)
PS: I invited you as a collab to the fork so you can continue on this PR if you'd like
See #2714