-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
libffi: fix build on Apple Silicon #58092
libffi: fix build on Apple Silicon #58092
Conversation
Yes, it stems from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds and works just fine on Apple Silicon, and produces an arm64 binary as it should.
As you might expect for something with this many formulae depending on it, the test failures are unrelated. |
That issue has affected Debian for a long time, building for ARM and other architectures. |
I think we should consider doing that. I presume it is safe enough to replace any config.guess/config.sub which exists in the buildpath (recursively?). |
Yes. Assuming of course that it's a |
So how can I get ffi to use this libffi installed via home-brew? I think I tried something like
|
Tried this also:
|
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?I've confirmed this builds and
brew test
works as expected. I think the failure was because the missing functions we were seeing are defined in platform-specific ASM, and libffi is improperly detecting the platform.There's a broader set of patches that will be included in a future version, but those are not ready yet. They've been submitted by Apple here: libffi/libffi#565