I’ve also been unable to build Rack from source on my M1 Mac (both in x86 and arm modes). I have the same errors that OP was getting. I’ve tried suggestions here and in other threads, but I can’t get it to work. I’ve posted about it too, but didn’t get a solution.
- In x86 mode,
make dep
fails just like in this post. The suggestion to remove="$(DEP_PATH)"
from the curl--with-ssl
flag does makemake dep
succeed, but thenmake
will fail with the same error:
ld: Undefined symbols:
_EVP_PKEY_get_id, referenced from:
_ossl_connect_common in libcurl.a[143](libcurl_la-openssl.o)
_cert_stuff in libcurl.a[143](libcurl_la-openssl.o)
- I have gone through and the instructions here to have both an x86 and arm version of brew setup.
- Building in arm mode also fails for me, with a different error:
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - broken
CMake Error at /usr/local/Cellar/cmake/3.27.7/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
[...]
error: unknown target CPU 'armv8-a+fp+simd'
It seems @synthi wasn’t able to build for x86 but others have. What am I missing?