openssl: Build of libcrypto.a linux-armv4 fails with -march=armv8-a
OpenSSL 3.1.0 build issue
Since 37f1828d8701662c40cc98172001a533fe49764c builds failing on linux-armv4 (if userland is arm32 / not aarch64)
A quick fix is to configure with no-sm4 on ARM 32-bit userland builds.
${LDCMD:-/var/media/DATA/home-rudi/LibreELEC.kernel11/build.LibreELEC-iMX8.arm-12.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc} -pthread -Wa,--noexecstack -march=armv8-a+crc -mtune=cortex-a53 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mfloat-abi=hard -mfpu=neon-fp-armv8 -Wall -pipe -O2 -fomit-frame-pointer -DNDEBUG -march=armv8-a+crc -mtune=cortex-a53 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mfloat-abi=hard -mfpu=neon-fp-armv8 -Wall -pipe -O2 -fomit-frame-pointer -fuse-ld=gold -Wl,--as-needed -fuse-ld=gold -Wl,--as-needed \
-o test/cmp_protect_test \
test/cmp_protect_test-bin-cmp_protect_test.o \
test/helpers/cmp_protect_test-bin-cmp_testlib.o \
test/libtestutil.a libcrypto.a -ldl -pthread -latomic
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
collect2: error: ld returned 1 exit status
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:22732: test/bn_internal_test] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:22484: test/asn1_dsa_internal_test] Error 1
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:22454: test/algorithmid_test] Error 1
make[1]: *** [Makefile:24035: test/cmactest] Error 1
make[1]: *** [Makefile:24051: test/cmp_asn_test] Error 1
make[1]: *** [Makefile:24136: test/cmp_hdr_test] Error 1
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:24077: test/cmp_client_test] Error 1
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:22195: fuzz/cmp-test] Error 1
make[1]: *** [Makefile:22514: test/asn1_internal_test] Error 1
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:22319: fuzz/punycode-test] Error 1
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:23946: test/chacha_internal_test] Error 1
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
collect2: error: ld returned 1 exit status
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_gcm_hw.o):cipher_sm4_gcm_hw.c:function sm4_gcm_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_ecb_encrypt'
make[1]: *** [Makefile:24186: test/cmp_protect_test] Error 1
libcrypto.a(libdefault-lib-cipher_sm4_hw.o):cipher_sm4_hw.c:function cipher_hw_sm4_initkey: error: undefined reference to 'sm4_v8_cbc_encrypt'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_encrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_set_decrypt_key'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ctr32_encrypt_blocks'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_decrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_ecb_encrypt'
libcrypto.a(libcrypto-lib-e_sm4.o):e_sm4.c:function sm4_init_key: error: undefined reference to 'sm4_v8_cbc_encrypt'
make[1]: *** [Makefile:24111: test/cmp_ctx_test] Error 1
make[1]: *** [Makefile:24161: test/cmp_msg_test] Error 1
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:23961: test/cipher_overhead_test] Error 1
make[1]: Leaving directory '/var/media/DATA/home-rudi/LibreELEC.kernel11/build.LibreELEC-iMX8.arm-12.0-devel/build/openssl-3.1.0/.armv8a-libreelec-linux-gnueabihf'
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- SM4 check should be for __aarch64__, not __ARM_MAX_ARCH__ >= 8 (And then __arm__ and __arm tests are redundant) Fixes #20604 Change-Id: I4308e75b7fbf3be7b46490c3ea4125e2d91b00b8 — committed to tom-cosgrove-arm/openssl by tom-cosgrove-arm a year ago
- SM4 check should be for __aarch64__, not __ARM_MAX_ARCH__ >= 8 (And then __arm__ and __arm tests are redundant) Fixes #20604 for 3.1 branch — committed to tom-cosgrove-arm/openssl by tom-cosgrove-arm a year ago
- SM4 check should be for __aarch64__, not __ARM_MAX_ARCH__ >= 8 (And then __arm__ and __arm tests are redundant) Fixes #20604 for 3.1 branch Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by:... — committed to openssl/openssl by tom-cosgrove-arm a year ago
Thanks for the extra detail - I am now able to reproduce, and will raise a patch to fix (needs to be reviewed internally first)
Tested successfully with 3.1 (both arm32 and aarch64 builds on ARMv8 cross-compiled)
Failed build (with sm4)