-
-
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
build openssl without assembly on arm #57124
Conversation
b5a52ab
to
05098ef
Compare
Hi.
|
@iMichka sure:
That's the error if you don't include I don't know what you mean by an upstream patch, because homebrew explicitly tells openssl to optimize for x86_64 in the other config flags. See the line above my patch, where the flag is |
Oh. Rereading my original comment now, I now see why you asked about an upstream patch! Sorry about the misleading statement, this seems to purely be an issue with the way Homebrew is configuring OpenSSL and hardcoding x86. |
This makes sense. Out of interest, is the output binary still x86_64 compiled? It doesn't really matter just now because Rosetta but is worth noting. |
@Bo98 looks like it's purely arm64 to me:
|
Cool - thanks for checking! I was wondering since |
Could you verify that the other parameters here openssl/openssl#12254 are also passed? |
@SMillerDev I'm having trouble seeing what you mean. At least some of those parameters directly contradict existing Homebrew config. For example, the config you linked enables zlib, while the Homebrew formula already explicitly disables zlib. Which parameters do you think should be added, exactly, and why? |
Since there is some Mojave runner setup issue and fixed by @Bo98, going to cancel the two ongoing builds. (will trigger a new run after clearing the queued PRs) Run log, https://github.com/Homebrew/homebrew-core/actions/runs/152330222 |
I mostly just wanted to make you aware of the information there and if any other flags are needed based on that information you can add them as well. I don't know enough about homebrews openssl choices to pick specific ones for you. |
@SMillerDev got it, thanks! I did see that ticket, and I figure there will likely eventually be an official platform for homebrew to use when building. Until then, I believe this is the only needed flag—I tested this patch on both x86 and arm macs and it produced working native openssl on each. |
Can confirm that this works just fine on ARM. I was able to |
Co-authored-by: Claudia Pellegrino <claui@users.noreply.github.com>
@lionellloh @MikeMcQuaid something is off about the linter complaining about non-existing methods here. |
Rerunning the CI now since it's been fixed. |
Hi @SMillerDev, do you have more information how I may replicate this? |
@lionellloh Not your fault and all addressed now. Was an issue with CI running |
@MikeMcQuaid Is another CI run warranted here? Or shall we rather fast-track this PR? |
Seeing how it's not a revision bump I'm fine with merging |
Merged! No need to run again through CI for something that's going to 1) take ages and 2) not actually test the change. |
Thanks for your contribution @indirect! 🍻 |
This comment was marked as abuse.
This comment was marked as abuse.
We are aware of that. This was accepted to help our maintainers to get things going for ARM native builds. What should have done? Stay stuck for 1 month? This was a stop-gap measure, for an unsupported configuration, so there is no real reason to complain about this. Another thing: I do not really like the tone used here. Please be nice to people and maintainers, and read our code of conduct: https://github.com/Homebrew/.github/blob/HEAD/CODE_OF_CONDUCT.md#code-of-conduct |
@mlindner Firstly: to imply we didn’t know what we’re doing seems pretty harsh, doesn’t it? We don’t appreciate such tone of voice, and I invite you to read and abide by our code of conduct. (Edit: @iMichka beat me to it.) |
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>
)?Hello! Turns out openssl tries to shove in some x86 assembly when building on arm, and needs to be told to stop. I've tested this patch using
--build-from-source
on both x86 and arm64 machines.