使用MacOS Big Sur 11.2.3在MacMini M1上构建OpenSSL 1.0.2t失败

使用MacOS Big Sur 11.2.3在MacMini M1上构建OpenSSL 1.0.2t失败,openssl,clang,macos-big-sur,apple-m1,Openssl,Clang,Macos Big Sur,Apple M1,我正试图从头开始构建OpenSSL 1.0.2t(我的项目需要这个版本,但苹果M1 CPU上的MacOS Big Sur 11.2.3不支持这个版本) 我的生成失败,出现unknow指令消息。 谁能解释一下我该怎么修 另外,目前我无法升级到受支持的OpenSSL 1.1.1 以下是生成日志: make all making all in crypto... cc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -

我正试图从头开始构建OpenSSL 1.0.2t(我的项目需要这个版本,但苹果M1 CPU上的MacOS Big Sur 11.2.3不支持这个版本) 我的生成失败,出现
unknow指令
消息。 谁能解释一下我该怎么修

另外,目前我无法升级到受支持的OpenSSL 1.1.1

以下是生成日志:

make all
making all in crypto...
cc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch arm64 -O3 -DL_ENDIAN -Wall -v -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -c -I/opt/homebrew/opt/libpq/include  -c -o arm64cpuid.o arm64cpuid.S
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: aarch64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple arm64-apple-macosx11.0.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name arm64cpuid.S -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=non-leaf -fno-strict-return -masm-verbose -munwind-tables -target-sdk-version=11.1 -target-cpu vortex -target-feature +v8.3a -target-feature +fp-armv8 -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +fullfp16 -target-feature +ras -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-arguments-and-returns -dwarf-column-info -debugger-tuning=lldb -target-linker-version 609.8 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I . -I .. -I ../include -D OPENSSL_THREADS -D _REENTRANT -D DSO_DLFCN -D HAVE_DLFCN_H -D L_ENDIAN -D SHA1_ASM -D SHA256_ASM -D SHA512_ASM -I /opt/homebrew/opt/libpq/include -I/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -internal-externc-isystem /Library/Developer/CommandLineTools/usr/include -O3 -Wall -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -fdebug-compilation-dir /Users/mobiled2/Projects/OpenSSL/source/crypto -ferror-limit 19 -fmessage-length 318 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fobjc-runtime=macosx-11.0.0 -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /var/folders/yh/d68xsh4x28z1t545mknzlsy00000gn/T/arm64cpuid-f4b3a2.s -x assembler-with-cpp arm64cpuid.S
clang -cc1 version 12.0.0 (clang-1200.0.32.29) default target arm64-apple-darwin20.3.0
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 .
 ..
 ../include
 /opt/homebrew/opt/libpq/include
 /usr/local/include
 /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
 /Library/Developer/CommandLineTools/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
End of search list.
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple arm64-apple-macosx11.0.0 -filetype obj -main-file-name arm64cpuid.S -target-cpu vortex -target-feature +v8.3a -target-feature +fp-armv8 -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +fullfp16 -target-feature +ras -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +sha2 -target-feature +aes -I . -I .. -I ../include -I /opt/homebrew/opt/libpq/include -fdebug-compilation-dir /Users/mobiled2/Projects/OpenSSL/source/crypto -dwarf-debug-producer "Apple clang version 12.0.0 (clang-1200.0.32.29)" -I . -I .. -I ../include -I /opt/homebrew/opt/libpq/include -dwarf-version=4 -mrelocation-model pic -o arm64cpuid.o /var/folders/yh/d68xsh4x28z1t545mknzlsy00000gn/T/arm64cpuid-f4b3a2.s
arm64cpuid.S:8:1: error: unknown directive
.type _armv7_neon_probe,%function
^
arm64cpuid.S:12:1: error: unknown directive
.size _armv7_neon_probe,.-_armv7_neon_probe
^
arm64cpuid.S:15:1: error: unknown directive
.type _armv7_tick,%function
^
arm64cpuid.S:19:1: error: unknown directive
.size _armv7_tick,.-_armv7_tick
^
arm64cpuid.S:22:1: error: unknown directive
.type _armv8_aes_probe,%function
^
arm64cpuid.S:26:1: error: unknown directive
.size _armv8_aes_probe,.-_armv8_aes_probe
^
arm64cpuid.S:29:1: error: unknown directive
.type _armv8_sha1_probe,%function
^
arm64cpuid.S:33:1: error: unknown directive
.size _armv8_sha1_probe,.-_armv8_sha1_probe
^
arm64cpuid.S:36:1: error: unknown directive
.type _armv8_sha256_probe,%function
^
arm64cpuid.S:40:1: error: unknown directive
.size _armv8_sha256_probe,.-_armv8_sha256_probe
^
arm64cpuid.S:42:1: error: unknown directive
.type _armv8_pmull_probe,%function
^
arm64cpuid.S:46:1: error: unknown directive
.size _armv8_pmull_probe,.-_armv8_pmull_probe
^
make[1]: *** [arm64cpuid.o] Error 1
make: *** [build_crypto] Error 1
mobiled2@mac-mini source %
makeall
使所有在加密。。。
cc-I.-I-I../include-DOPENSSL_THREADS-D_REENTRANT-DDSO_DLFCN-DHAVE_DLFCN_H-arch arm64-O3-DL_ENDIAN-Wall-v-DSHA1_ASM-DSHA256_ASM-DSHA512_ASM-c-I/opt/homebrew/opt/libpq/include-c-o arm64cpuid.o arm64cpuid.S
Apple clang版本12.0.0(clang-1200.0.32.29)
目标:AARC64-apple-darwin20.3.0
线程模型:posix
InstalledDir:/Library/Developer/CommandLineTools/usr/bin
“/Library/Developer/CommandLineTools/usr/bin/clang”-cc1-三重arm64-apple-macosx11.0.0-Wdeprecated objc isa用法-Werror=不推荐的objc isa用法-Werror=隐式函数声明-E-禁用自由-禁用llvm验证器-丢弃值名称-主文件名arm64cpuid.S-mrelocation模型pic-pic级别2-mthread模型posix-mframe指针=非叶-fno严格返回-masm详细-munwind表-目标sdk版本=11.1-目标cpu漩涡-目标功能+v8.3a-目标功能+fp-armv8-目标功能+neon-目标功能+crc-目标功能+crypto-目标功能+fullfp16-目标功能+ras-目标功能+lse-目标功能+rdm-目标功能+rcpc-目标功能+zcm-目标功能+zcz-目标功能+sha2-target-feature+aes-target-abi-darwinpcs-fallow-half-arguments和returns-dwarf-column-info-debugger tuning=lldb-target-linker version 609.8-v-resource dir/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0-isysroot/Library/Developer/CommandLineTools/sdk/MacOSX.sdk-I-我-I../include-D OPENSSL\u THREADS-D可重入-D DSO\u DLFCN-D HAVE\u H-D L\u ENDIAN-D SHA1\u ASM-D SHA256\u ASM-D SHA512\u ASM-I/opt/homebrew/opt/libpq/include-I/usr/local/include-internal isystem/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include-internal isystem/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include-内部外部isystem/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include-内部外部isystem/Library/Developer/CommandLineTools/usr/include-O3-Wall-Wno重新排序初始列表-Wno隐式整数浮点转换-Wno-c99-指示符-Wno最终数据或非最终类-Wno额外半stmt-Wno误导性缩进-Wno引用包含在框架标题中-Wno隐式故障-Wno枚举枚举转换-Wno枚举浮点转换-fdebug编译目录/Users/mobiled2/Projects/OpenSSL/source/crypto-ferror limit 19-fmessage length 318-stack protector 1-fstack check-mdarwin stkchk强链接-fblock-fencode扩展块签名-使用atexit注册全局DTR-fgnuc版本=4.2.1-fobjc运行时=macosx-11.0.0-fmax类型对齐=16-FDDiagnostics显示选项-fcolor诊断-矢量化循环-矢量化slp-o/var/folders/yh/D68XSH28Z1T545MKNZLY0000GN/T/arm64cpuid-f4b3a2.s-使用cpp arm64cpuid.s的x汇编程序
clang-cc1版本12.0.0(clang-1200.0.32.29)默认目标为arm64-apple-darwin20.3.0
忽略不存在的目录“/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include”
忽略不存在的目录“/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/Frameworks”
#包括“…”搜索从这里开始:
#包括搜索从这里开始:
.
..
../包括
/opt/homebrew/opt/libpq/include
/usr/本地/包括
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
/库/Developer/CommandLineTools/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks(框架目录)
搜索列表结束。
“/Library/Developer/CommandLineTools/usr/bin/clang”-cc1as-三重arm64-apple-macosx11.0.0-文件类型obj-主文件名arm64cpuid.S-目标cpu漩涡-目标功能+v8.3a-目标功能+fp-armv8-目标功能+neon-目标功能+crc-目标功能+加密-目标功能+fullfp16-目标功能+ras-目标功能+lse-目标功能+rdm-目标功能+rcpc-目标功能+zcm-目标特征+zcz-目标特征+sha2-目标特征+aes-I-我-I../include-I/opt/homebrew/opt/libpq/include-fdebug编译目录/Users/mobiled2/Projects/OpenSSL/source/crypto-dwarf调试制作人“Apple clang版本12.0.0(clang-1200.0.32.29)”-I-我-I../include-I/opt/homebrew/opt/libpq/include-dwarf version=4-mrelocation model pic-o arm64cpuid.o/var/folders/yh/d68xsh4x28z1t54mknzlsy0000gn/T/arm64cpuid-f4b3a2.s
arm64cpuid.S:8:1:错误:未知指令
.type\u armv7\u霓虹灯探头,%function
^
arm64cpuid.S:12:1:错误:未知指令
.尺寸\u armv7\u霓虹灯探头,.-\u armv7\u霓虹灯探头
^
arm64cpuid.S:15:1:错误:未知指令
.type\u armv7\u勾选%function
^
arm64cpuid.S:19:1:错误:未知指令
.尺寸_armv7_刻度,.-_armv7_刻度
^
arm64cpuid.S:22:1:错误:未知指令
.type\u armv8\u aes\u探测器%function
^
arm64cpuid.S:26:1:错误:未知指令
.size\u armv8\u aes\u探头,.-\u armv8\u aes\u探头
^
arm64cpuid.S:29:1:错误:未知指令
.类型_armv8_sha1_探头,%function
^
arm64cpuid.S:33:1:错误:未知指令
.尺寸_armv8_sha1_探头,.-_armv8_sha1_探头
^
arm64cpuid.S:36:1:错误:未知指令
.类型_armv8_sha256_探头,%function
^
arm64cpuid.S:40:1:错误:未知指令
.尺寸_armv8_sha256_探头,.-_armv8_sha256_探头
^
arm64cpuid.S:42:1:错误:未知指令
.类型_armv8_pmull_探头,%function
^
arm64cpuid.S:46:1:错误:未知指令
.尺寸_armv8_pmull_探头,.-_armv8_pmull_探头
^
生成[1]:***[arm64cpuid.o]错误1
make:**[build_crypto]错误1
mobiled2@mac-最小来源%