黑芝麻平台交叉编译 openssl
黑芝麻平台交叉编译 openssl
前置条件
编译环境:黑芝麻 Linux23 Docker 开发环境,已经默认配置了交叉编译环境。
源码下载
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
tar -xzvf openssl-1.1.1k.tar.gz
cd openssl-1.1.1k
配置
准备目标文件安装目录:
mkdir _INSTALL
查看帮助手册:
root@028337952dd7:/home/misc/openssl-1.1.1k# ./Configure
Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-egd] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--config=FILE] os/compiler[:flags]
pick os/compiler from:
BS2000-OSD BSD-generic32 BSD-generic64 BSD-ia64 BSD-sparc64 BSD-sparcv8
BSD-x86 BSD-x86-elf BSD-x86_64 Cygwin Cygwin-i386 Cygwin-i486 Cygwin-i586
Cygwin-i686 Cygwin-x86 Cygwin-x86_64 DJGPP MPE/iX-gcc UEFI UWIN VC-CE VC-WIN32
VC-WIN32-ARM VC-WIN32-ONECORE VC-WIN64-ARM VC-WIN64A VC-WIN64A-ONECORE
VC-WIN64A-masm VC-WIN64I aix-cc aix-gcc aix64-cc aix64-gcc android-arm
android-arm64 android-armeabi android-mips android-mips64 android-x86
android-x86_64 android64 android64-aarch64 android64-mips64 android64-x86_64
bsdi-elf-gcc cc darwin-i386-cc darwin-ppc-cc darwin64-arm64-cc darwin64-ppc-cc
darwin64-x86_64-cc gcc haiku-x86 haiku-x86_64 hpux-ia64-cc hpux-ia64-gcc
hpux-parisc-cc hpux-parisc-gcc hpux-parisc1_1-cc hpux-parisc1_1-gcc
hpux64-ia64-cc hpux64-ia64-gcc hpux64-parisc2-cc hpux64-parisc2-gcc hurd-x86
ios-cross ios-xcrun ios64-cross ios64-xcrun iossimulator-xcrun iphoneos-cross
irix-mips3-cc irix-mips3-gcc irix64-mips4-cc irix64-mips4-gcc linux-aarch64
linux-alpha-gcc linux-aout linux-arm64ilp32 linux-armv4 linux-c64xplus
linux-elf linux-generic32 linux-generic64 linux-ia64 linux-mips32 linux-mips64
linux-ppc linux-ppc64 linux-ppc64le linux-sparcv8 linux-sparcv9 linux-x32
linux-x86 linux-x86-clang linux-x86_64 linux-x86_64-clang linux32-s390x
linux64-mips64 linux64-s390x linux64-sparcv9 mingw mingw64 nextstep
nextstep3.3 sco5-cc sco5-gcc solaris-sparcv7-cc solaris-sparcv7-gcc
solaris-sparcv8-cc solaris-sparcv8-gcc solaris-sparcv9-cc solaris-sparcv9-gcc
solaris-x86-gcc solaris64-sparcv9-cc solaris64-sparcv9-gcc solaris64-x86_64-cc
solaris64-x86_64-gcc tru64-alpha-cc tru64-alpha-gcc uClinux-dist
uClinux-dist64 unixware-2.0 unixware-2.1 unixware-7 unixware-7-gcc vms-alpha
vms-alpha-p32 vms-alpha-p64 vms-ia64 vms-ia64-p32 vms-ia64-p64 vos-gcc
vxworks-mips vxworks-ppc405 vxworks-ppc60x vxworks-ppc750 vxworks-ppc750-debug
vxworks-ppc860 vxworks-ppcgen vxworks-simlinux
NOTE: If in doubt, on Unix-ish systems use './config'.
上面提示如果编译 Unix-ish x86 平台目标文件,直接使用 ./config
更多详细说明参考:INSTALL 文件。
我们的需求是:编译黑芝麻嵌入式平台 aarh64 目标文件,安装到当前目录下的 _INSTALL
目录
root@028337952dd7:/home/misc/openssl-1.1.1k# ./Configure linux-aarch64 --prefix=/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build
Configuring OpenSSL version 1.1.1k (0x101010bfL) for linux-aarch64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile
**********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** and include the output from the following command: ***
*** ***
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL file first) ***
*** ***
**********************************************************************
root@028337952dd7:/home/misc/openssl-1.1.1k#
注意如上语句中:Configuring OpenSSL version 1.1.1k (0x101010bfL) for linux-aarch64
目标平台很重要,如果指定错误可能导致编译失败。
踩坑记录 1 - 编译器指定异常
按照上述配置完成之后,编译失败:
root@028337952dd7:/home/misc/openssl-1.1.1k# make -j
/opt/bstos/linux-23/sysroots/x86_64-bstsdk-linux/usr/bin/perl.real "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
/opt/bstos/linux-23/sysroots/x86_64-bstsdk-linux/usr/bin/perl.real "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
/opt/bstos/linux-23/sysroots/x86_64-bstsdk-linux/usr/bin/perl.real "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _all
make[1]: Entering directory '/home/misc/openssl-1.1.1k'
make[1]: Leaving directory '/home/misc/openssl-1.1.1k'
make[1]: Entering directory '/home/misc/openssl-1.1.1k'
aarch64-bst-linux-aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -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="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c
aarch64-bst-linux-aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -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="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/apps.o apps/apps.c
aarch64-bst-linux-aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -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="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/bf_prefix.o apps/bf_prefix.c
aarch64-bst-linux-aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -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="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/opt.o apps/opt.c
/bin/sh: 1: aarch64-bst-linux-aarch64-bst-linux-gcc: not found
/bin/sh: 1: Makefile:700: recipe for target 'apps/app_rand.o' failed
/bin/sh: 1: aarch64-bst-linux-aarch64-bst-linux-gcc: not foundaarch64-bst-linux-aarch64-bst-linux-gcc: not foundmake[1]: *** [apps/app_rand.o] Error 127
make[1]: *** Waiting for unfinished jobs....
Makefile:704: recipe for target 'apps/bf_prefix.o' failed
make[1]: *** [apps/bf_prefix.o] Error 127
/bin/sh: 1: aarch64-bst-linux-aarch64-bst-linux-gcc: not found
Makefile:702: recipe for target 'apps/apps.o' failed
make[1]: *** [apps/apps.o] Error 127
Makefile:706: recipe for target 'apps/opt.o' failed
make[1]: *** [apps/opt.o] Error 127
make[1]: Leaving directory '/home/misc/openssl-1.1.1k'
Makefile:172: recipe for target 'all' failed
make: *** [all] Error 2
关键错误信息:
not foundaarch64-bst-linux-aarch64-bst-linux-gcc
查看 Makefile 有如下内容:
CROSS_COMPILE=aarch64-bst-linux-
CC=$(CROSS_COMPILE)aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux
CXX=$(CROSS_COMPILE)aarch64-bst-linux-g++ --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux
所以看出问题所在了,这里手动修改 Makefile 直接将 CROSS_COMPILE 不要赋值即可 CROSS_COMPILE=
重新编译通过。
make -j
make install
踩坑记录 2 - 平台配置失败
举一个失败的例子,使用 config 命令配置 linux-x86_64
:
root@028337952dd7:/home/misc/openssl-1.1.1k# ./config --prefix=/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build
Operating system: x86_64-whatever-linux2
Configuring OpenSSL version 1.1.1k (0x101010bfL) for linux-x86_64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile
**********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** and include the output from the following command: ***
*** ***
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL file first) ***
*** ***
**********************************************************************
由于配置的平台是 x86_64 增加了 -m64 编译选项,但是交叉编译器不支持导致编译失败:
root@028337952dd7:/home/misc/openssl-1.1.1k# make -j
/opt/bstos/linux-23/sysroots/x86_64-bstsdk-linux/usr/bin/perl.real "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
/opt/bstos/linux-23/sysroots/x86_64-bstsdk-linux/usr/bin/perl.real "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
/opt/bstos/linux-23/sysroots/x86_64-bstsdk-linux/usr/bin/perl.real "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _all
make[1]: Entering directory '/home/misc/openssl-1.1.1k'
make[1]: Leaving directory '/home/misc/openssl-1.1.1k'
make[1]: Entering directory '/home/misc/openssl-1.1.1k'
aarch64-bst-linux-aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c
aarch64-bst-linux-aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/apps.o apps/apps.c
aarch64-bst-linux-aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/bf_prefix.o apps/bf_prefix.c
/bin/sh: 1: aarch64-bst-linux-aarch64-bst-linux-gcc: not found
Makefile:700: recipe for target 'apps/app_rand.o' failed
make[1]: *** [apps/app_rand.o] Error 127
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: aarch64-bst-linux-aarch64-bst-linux-gcc: not found
Makefile:702: recipe for target 'apps/apps.o' failed
make[1]: *** [apps/apps.o] Error 127
/bin/sh: 1: aarch64-bst-linux-aarch64-bst-linux-gcc: not found
Makefile:704: recipe for target 'apps/bf_prefix.o' failed
make[1]: *** [apps/bf_prefix.o] Error 127
make[1]: Leaving directory '/home/misc/openssl-1.1.1k'
Makefile:172: recipe for target 'all' failed
make: *** [all] Error 2
root@028337952dd7:/home/misc/openssl-1.1.1k# vim Makefile
root@028337952dd7:/home/misc/openssl-1.1.1k# make -j
make depend && make _all
make[1]: Entering directory '/home/misc/openssl-1.1.1k'
make[1]: Leaving directory '/home/misc/openssl-1.1.1k'
make[1]: Entering directory '/home/misc/openssl-1.1.1k'
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/apps.o apps/apps.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/bf_prefix.o apps/bf_prefix.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/opt.o apps/opt.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/s_cb.o apps/s_cb.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o apps/s_socket.o apps/s_socket.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o crypto/aes/aes_cbc.o crypto/aes/aes_cbc.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o crypto/aes/aes_cfb.o crypto/aes/aes_cfb.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o crypto/aes/aes_core.o crypto/aes/aes_core.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o crypto/aes/aes_ecb.o crypto/aes/aes_ecb.c
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o crypto/aes/aes_ige.o crypto/aes/aes_ige.c
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
aarch64-bst-linux-gcc --sysroot=/opt/bstos/linux-23/sysroots/aarch64-bst-linux -I. -Iinclude -fPIC -pthread -m64 -O2 -pipe -g -feliminate-unused-debug-types -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/ssl\"" -DENGINESDIR="\"/home/misc/openssl-1.1.1k_bst/openssl-1.1.1k/build/lib/engines-1.1\"" -DNDEBUG -c -o crypto/aes/aes_misc.o crypto/aes/aes_misc.c
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
Makefile:700: recipe for target 'apps/app_rand.o' failed
make[1]: *** [apps/app_rand.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:702: recipe for target 'apps/apps.o' failed
make[1]: *** [apps/apps.o] Error 1
Makefile:704: recipe for target 'apps/bf_prefix.o' failed
make[1]: *** [apps/bf_prefix.o] Error 1
Makefile:706: recipe for target 'apps/opt.o' failed
make[1]: *** [apps/opt.o] Error 1
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
Makefile:708: recipe for target 'apps/s_cb.o' failed
make[1]: *** [apps/s_cb.o] Error 1
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
Makefile:724: recipe for target 'crypto/aes/aes_cfb.o' failed
make[1]: *** [crypto/aes/aes_cfb.o] Error 1
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
Makefile:710: recipe for target 'apps/s_socket.o' failed
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
make[1]: *** [apps/s_socket.o] Error 1
Makefile:722: recipe for target 'crypto/aes/aes_cbc.o' failed
make[1]: *** [crypto/aes/aes_cbc.o] Error 1
Makefile:726: recipe for target 'crypto/aes/aes_core.o' failed
make[1]: *** [crypto/aes/aes_core.o] Error 1
Makefile:730: recipe for target 'crypto/aes/aes_ige.o' failed
make[1]: *** [crypto/aes/aes_ige.o] Error 1
Makefile:728: recipe for target 'crypto/aes/aes_ecb.o' failed
make[1]: *** [crypto/aes/aes_ecb.o] Error 1
aarch64-bst-linux-gcc: error: unrecognized command line option '-m64'
Makefile:732: recipe for target 'crypto/aes/aes_misc.o' failed
make[1]: *** [crypto/aes/aes_misc.o] Error 1
make[1]: Leaving directory '/home/misc/openssl-1.1.1k'
Makefile:172: recipe for target 'all' failed
make: *** [all] Error 2