openssl: macOS 13.2.1 M2 processor brew install openssl error
I’m trying to install openssl@1.1 via brew, and it’s failing during the make step.
OS
- macOS Venture 13.2.1
- Apple M2 Max
Darwin mbp 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64
Brew
Homebrew 4.0.3-140-gba8fd26
Homebrew/homebrew-core (git revision 955021b2c36; last commit 2023-02-24)
Homebrew/homebrew-cask (git revision 080a0c1e1c; last commit 2023-02-24)
Issue when running brew install openssl@1.1 or any formulae that depends on openssl@1.1 such as openjdk or gradle:
==> Fetching openssl@1.1
Warning: Building openssl@1.1 from source as the bottle needs:
- HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is /Users/someuser/homebrew/Cellar)
- HOMEBREW_PREFIX: /opt/homebrew (yours is /Users/someuser/homebrew)
==> Downloading https://www.openssl.org/source/openssl-1.1.1t.tar.gz
Already downloaded: /Users/someuser/Library/Caches/Homebrew/downloads/ec3feb171aa63b32c30a6e7423e78f743f92d1ef984b66b0ea548d08220c0ce6--openssl-1.1.1t.tar.gz
==> perl ./Configure --prefix=/Users/someuser/homebrew/Cellar/openssl@1.1/1.1.1t --openssldir=/Users/someuser/homebrew/etc/openssl@1.1 no-ssl3 no-ssl3-method no-zlib darwin64-arm64-cc enable-ec_nistp_64_gcc_128
==> make
Last 15 lines from /Users/someuser/Library/Logs/Homebrew/openssl@1.1/02.make:
clang -I. -Iinclude -fPIC -arch arm64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/someuser/homebrew/etc/openssl@1.1\"" -DENGINESDIR="\"/Users/someuser/homebrew/Cellar/openssl@1.1/1.1.1t/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG -MMD -MF crypto/rsa/rsa_pk1.d.tmp -MT crypto/rsa/rsa_pk1.o -c -o crypto/rsa/rsa_pk1.o crypto/rsa/rsa_pk1.c
clang -I. -Iinclude -fPIC -arch arm64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/someuser/homebrew/etc/openssl@1.1\"" -DENGINESDIR="\"/Users/someuser/homebrew/Cellar/openssl@1.1/1.1.1t/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG -MMD -MF crypto/rsa/rsa_pmeth.d.tmp -MT crypto/rsa/rsa_pmeth.o -c -o crypto/rsa/rsa_pmeth.o crypto/rsa/rsa_pmeth.c
clang -I. -Iinclude -fPIC -arch arm64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/someuser/homebrew/etc/openssl@1.1\"" -DENGINESDIR="\"/Users/someuser/homebrew/Cellar/openssl@1.1/1.1.1t/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG -MMD -MF crypto/rsa/rsa_prn.d.tmp -MT crypto/rsa/rsa_prn.o -c -o crypto/rsa/rsa_prn.o crypto/rsa/rsa_prn.c
clang -I. -Iinclude -fPIC -arch arm64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/someuser/homebrew/etc/openssl@1.1\"" -DENGINESDIR="\"/Users/someuser/homebrew/Cellar/openssl@1.1/1.1.1t/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG -MMD -MF crypto/rsa/rsa_pss.d.tmp -MT crypto/rsa/rsa_pss.o -c -o crypto/rsa/rsa_pss.o crypto/rsa/rsa_pss.c
clang -I. -Iinclude -fPIC -arch arm64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/someuser/homebrew/etc/openssl@1.1\"" -DENGINESDIR="\"/Users/someuser/homebrew/Cellar/openssl@1.1/1.1.1t/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG -MMD -MF crypto/rsa/rsa_saos.d.tmp -MT crypto/rsa/rsa_saos.o -c -o crypto/rsa/rsa_saos.o crypto/rsa/rsa_saos.c
make[1]: *** [crypto/rsa/rsa_none.o] Killed: 9
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [crypto/rsa/rsa_pmeth.o] Killed: 9
make[1]: *** [crypto/rsa/rsa_lib.o] Killed: 9
make[1]: *** Deleting file `crypto/rsa/rsa_lib.o'
make[1]: *** [crypto/rsa/rsa_pss.o] Killed: 9
make[1]: *** [crypto/rsa/rsa_pk1.o] Killed: 9
make[1]: *** Deleting file `crypto/rsa/rsa_pk1.o'
/bin/sh: line 1: 66575 Killed: 9 cmp crypto/rsa/rsa_gen.d.tmp crypto/rsa/rsa_gen.d > /dev/null 2> /dev/null
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!
These open issues may also help:
openssl@1.1: make keg_only on Linux https://github.com/Homebrew/homebrew-core/pull/119967
Thanks for any help in advance!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (7 by maintainers)
I had similiar issue with my MacBook Pro M1 recently. Try this:
curl -Lo openssl@1.0.rb https://raw.githubusercontent.com/rbenv/homebrew-tap/e472b7861b49cc082d1db0f66f265368da107589/Formula/openssl%401.0.rb#sign to the linesystem "make", "test"(comment out)brew install --formula --build-from-source ./openssl@1.0.rbexport PATH="/opt/homebrew/Cellar/openssl@1.0/1.0.2u/bin:$PATH"to.zshrcsource ~/.zshrcand check if path/version is correctwhich openssl,openssl version@tom-cosgrove-arm for some reason I want install openssl 1.0 on my intel mac mini ventura 13.3.1,but always no luck Could you help me, thank you `jack6@jack6s-Mac-mini ~ % brew install openssl@1.0 ==> Downloading https://formulae.brew.sh/api/formula.jws.json -=O=- # # # #
Error: Formulae found in multiple taps: * sidneys/homebrew/openssl@1.0 * rbenv/tap/openssl@1.0
Please use the fully-qualified name (e.g. sidneys/homebrew/openssl@1.0) to refer to the formula. jack6@jack6s-Mac-mini ~ % brew install rbenv/tap/openssl@1.0 ==> Fetching rbenv/tap/openssl@1.0 ==> Downloading https://www.openssl.org/source/openssl-1.0.2t.tar.gz Already downloaded: /Users/jack6/Library/Caches/Homebrew/downloads/5d2da6a9ed1a20ef9d1b1418d79aa674cf5577b70ca1ce436fdaadfa04f0429c–openssl-1.0.2t.tar.gz ==> Installing openssl@1.0 from rbenv/tap ==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.0/1.0.2t --openssldir=/usr/local/etc/openssl no-ssl2 no-ssl3 no- ==> make depend ==> make ==> make test Last 15 lines from /Users/jack6/Library/Logs/Homebrew/openssl@1.0/04.make: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704585241580:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 140704585241580:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 140704585241580:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: make[1]: *** [test_ec] Error 1 make: *** [tests] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/rbenv/homebrew-tap/issues
These open issues may also help:
brew install rbenv/tap/openssl@1.0not working anymore https://github.com/rbenv/homebrew-tap/issues/1 jack6@jack6s-Mac-mini ~ % `This was an issue with the user setup process on a company-provided Mac. I’m now able to install
openssl.Looking again, it seems from
Last 15 lines from /Users/someuser/Library/Logs/Homebrew/openssl@1.1/02.make:that the build logs are in/Users/someuser/Library/Logs/Homebrew/openssl@1.1/, so if you could attach them here we can look for errors (or possible "permission denied"s)Hi, I see you’ve closed this now, but if you are still having problems, it would be helpful to look for any “error” lines from the Homebrew build logs and include them here