-
Notifications
You must be signed in to change notification settings - Fork 0
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
Brewing polymake on Apple Silicon / M1 / arm #2
Comments
I don't think it's a perl problem. It might be related to the line above complaining about libcrypto, which may not work in combination with the perl coming from brew. Maybe this is fixed with the version of the Formula in the branch "amd64_big_sur", which additionally installs the brew-version of openssl and tells Net::SSLeay to use this version instead of the system one. So possibly I have no way to test this, and I am also not too confident. There might also be more failures later in the installation. |
It's the same with the patch on the amd64_big_sur branch. [ It's no big deal. I can wait until you get your hands on an M1 or I'll investigate myself later. Thanks. ] |
My bad. Maybe. I got the brew name of macs with M1 wrong. Its "arm64_big_sur" and not "amd64_big_sur". I fixed the name, so you may try again. Still no guarantee that this will work and/or fix all problems. |
OK, the error is still the same. I'm also not sure if it picked up openssl@1.1 because there is still the same message: |
I checked the formula on intel macs: openssl is already a prerquisite of python@3.9, which is one of ninja, and this is a prerequisite of polymake. So openssl is always installed for polymake, and prior to compiling the perl modules. On intel with Big Sur the Makefile for Net::SSLeay also picks up this version of libcrypto.dylib even without setting OPENSSL_PREFIX. So it uses this openssl for all versions of mac os. On the other hand, if I force Net::SSLeay to use the system version it ends with the exact same error on my intel as on your M1. As the correct openssl is not even picked up on your machine if OPENSSL_PREFIX is set for Net::SSLeay I assume that something went wrong with the installation of openssl. I can't check, but convincing Net::SLLeay to use the brew version should fix the error. You may check the folder /usr/local/opt/openssl on your machine, or try to configure and build the module Net::SSLeay independently. Maybe this gives a hint. |
The formula now does work also for arm processors. Checked on MacOS 14. |
Naively trying to build the polymake formula on an M1 Mac Mini with only arm Homebrew results in this:
It does not really look like an architecture issue, but I don't know perl well enough to judge that actually.
The text was updated successfully, but these errors were encountered: