intel / isa-l_crypto

Other
275 stars 80 forks source link

aarch64 compile failed #80

Closed benqwu closed 2 years ago

benqwu commented 3 years ago

Version of isa-l_crypto is 2.24.0.

[root@localhost isa-l_crypto-2.24.0]# ./autogen.sh libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, build-aux'. libtoolize: linking filebuild-aux/ltmain.sh' libtoolize: Consider adding AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:25: installing 'build-aux/config.guess' configure.ac:25: installing 'build-aux/config.sub' configure.ac:12: installing 'build-aux/install-sh' configure.ac:12: installing 'build-aux/missing' Makefile.am: installing 'build-aux/depcomp' parallel-tests: installing 'build-aux/test-driver'


Initialized build system. For a common configuration please run:

./configure --prefix=/usr --libdir=/usr/lib64

[root@localhost isa-l_crypto-2.24.0]# ./configure --prefix=/usr --libdir=/usr/lib64 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking for style of include used by make... GNU checking for gcc... /opt/rh/devtoolset-7/root/usr/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /opt/rh/devtoolset-7/root/usr/bin/gcc accepts -g... yes checking for /opt/rh/devtoolset-7/root/usr/bin/gcc option to accept ISO C89... none needed checking dependency style of /opt/rh/devtoolset-7/root/usr/bin/gcc... gcc3 checking dependency style of /opt/rh/devtoolset-7/root/usr/bin/gcc... gcc3 checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking for /opt/rh/devtoolset-7/root/usr/bin/gcc option to accept ISO C99... none needed checking for /opt/rh/devtoolset-7/root/usr/bin/gcc option to accept ISO Standard C... (cached) none needed checking how to run the C preprocessor... /opt/rh/devtoolset-7/root/usr/bin/gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking whether make supports nested variables... (cached) yes checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by /opt/rh/devtoolset-7/root/usr/bin/gcc... /opt/rh/devtoolset-7/root/usr/libexec/gcc/aarch64-redhat-linux/7/ld checking if the linker (/opt/rh/devtoolset-7/root/usr/libexec/gcc/aarch64-redhat-linux/7/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /opt/rh/devtoolset-7/root/usr/bin/nm -B checking the name lister (/opt/rh/devtoolset-7/root/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /opt/rh/devtoolset-7/root/usr/libexec/gcc/aarch64-redhat-linux/7/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /opt/rh/devtoolset-7/root/usr/bin/nm -B output from /opt/rh/devtoolset-7/root/usr/bin/gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if /opt/rh/devtoolset-7/root/usr/bin/gcc supports -fno-rtti -fno-exceptions... no checking for /opt/rh/devtoolset-7/root/usr/bin/gcc option to produce PIC... -fPIC -DPIC checking if /opt/rh/devtoolset-7/root/usr/bin/gcc PIC flag -fPIC -DPIC works... yes checking if /opt/rh/devtoolset-7/root/usr/bin/gcc static flag -static works... no checking if /opt/rh/devtoolset-7/root/usr/bin/gcc supports -c -o file.o... yes checking if /opt/rh/devtoolset-7/root/usr/bin/gcc supports -c -o file.o... (cached) yes checking whether the /opt/rh/devtoolset-7/root/usr/bin/gcc linker (/opt/rh/devtoolset-7/root/usr/libexec/gcc/aarch64-redhat-linux/7/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for a sed that does not truncate output... (cached) /usr/bin/sed checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for inline... inline checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for memmove... yes checking for memset... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libisal_crypto.pc config.status: executing depfiles commands config.status: executing libtool commands

    isa-l_crypto 2.24.0
    =====

    prefix:                 /usr
    sysconfdir:             ${prefix}/etc
    libdir:                 /usr/lib64
    includedir:             ${prefix}/include

    compiler:               /opt/rh/devtoolset-7/root/usr/bin/gcc
    cflags:                 -g -O2
    ldflags:                

    debug:                  no

[root@localhost isa-l_crypto-2.24.0]# make Building isa-l_crypto.h make --no-print-directory all-am CC sha1_mb/sha1_ctx_base.lo CC sha1_mb/sha1_ref.lo CPPAS sha1_mb/aarch64/sha1_mb_multibinary.lo CC sha1_mb/aarch64/sha1_ctx_ce.lo CPPAS sha1_mb/aarch64/sha1_mb_x1_ce.lo CPPAS sha1_mb/aarch64/sha1_mb_x2_ce.lo CC sha1_mb/aarch64/sha1_mb_mgr_ce.lo CC sha1_mb/aarch64/sha1_mb_aarch64_dispatcher.lo CC mh_sha1/mh_sha1_block_base.lo CC mh_sha1/mh_sha1_finalize_base.lo CC mh_sha1/mh_sha1_update_base.lo CC mh_sha1/sha1_for_mh_sha1.lo CC mh_sha1/mh_sha1.lo CPPAS mh_sha1/aarch64/mh_sha1_multibinary.lo CC mh_sha1/aarch64/mh_sha1_aarch64_dispatcher.lo CPPAS mh_sha1/aarch64/mh_sha1_block_ce.lo CC mh_sha1/aarch64/mh_sha1_ce.lo CC md5_mb/md5_ctx_base.lo CC md5_mb/aarch64/md5_ctx_aarch64_asimd.lo CC md5_mb/aarch64/md5_mb_aarch64_dispatcher.lo CC md5_mb/aarch64/md5_mb_mgr_aarch64_asimd.lo md5_mb/aarch64/md5_mb_mgr_aarch64_asimd.c: In function 'md5_mb_mgr_do_jobs': md5_mb/aarch64/md5_mb_mgr_aarch64_asimd.c:77:6: warning: unused variable 'lane_idx_array' [-Wunused-variable] int lane_idx_array[MD5_MAX_LANES]; ^~~~~~ md5_mb/aarch64/md5_mb_mgr_aarch64_asimd.c:75:24: warning: unused variable 'lanes' [-Wunused-variable] int lane_idx, len, i, lanes; ^~~~~ CPPAS md5_mb/aarch64/md5_mb_asimd_x4.lo CPPAS md5_mb/aarch64/md5_mb_asimd_x1.lo CPPAS md5_mb/aarch64/md5_mb_multibinary.lo CC sha256_mb/sha256_ctx_base.lo CC sha256_mb/sha256_ref.lo CPPAS sha256_mb/aarch64/sha256_mb_multibinary.lo CC sha256_mb/aarch64/sha256_mb_aarch64_dispatcher.lo CC sha256_mb/aarch64/sha256_ctx_ce.lo CC sha256_mb/aarch64/sha256_mb_mgr_ce.lo CPPAS sha256_mb/aarch64/sha256_mb_x1_ce.lo CPPAS sha256_mb/aarch64/sha256_mb_x2_ce.lo CPPAS sha256_mb/aarch64/sha256_mb_x3_ce.lo CPPAS sha256_mb/aarch64/sha256_mb_x4_ce.lo CC sha512_mb/sha512_ctx_base.lo CPPAS sha512_mb/aarch64/sha512_mb_multibinary.lo CC sha512_mb/aarch64/sha512_mb_aarch64_dispatcher.lo CC sha512_mb/aarch64/sha512_ctx_ce.lo CC sha512_mb/aarch64/sha512_mb_mgr_ce.lo CPPAS sha512_mb/aarch64/sha512_mb_x1_ce.lo sha512_mb/aarch64/sha512_mb_x1_ce.S: Assembler messages: sha512_mb/aarch64/sha512_mb_x1_ce.S:29: Error: unknown architectural extension sha3' sha512_mb/aarch64/sha512_mb_x1_ce.S:169: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg0_v.2d,l0_msg1_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:169: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:169: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg0_v.2d,l0_msg7_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:169: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:170: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg1_v.2d,l0_msg2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:170: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:170: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg1_v.2d,l0_msg0_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:170: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:171: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg2_v.2d,l0_msg3_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:171: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:171: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg2_v.2d,l0_msg1_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:171: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:172: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg3_v.2d,l0_msg4_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:172: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:172: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg3_v.2d,l0_msg2_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:172: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:173: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg4_v.2d,l0_msg5_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:173: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:173: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg4_v.2d,l0_msg3_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:173: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:174: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg5_v.2d,l0_msg6_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:174: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:174: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg5_v.2d,l0_msg4_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:174: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:175: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg6_v.2d,l0_msg7_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:175: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:175: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg6_v.2d,l0_msg5_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:175: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:176: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg7_v.2d,l0_msg0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:176: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:176: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg7_v.2d,l0_msg6_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:176: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:177: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg0_v.2d,l0_msg1_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:177: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:177: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg0_v.2d,l0_msg7_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:177: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:178: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg1_v.2d,l0_msg2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:178: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:178: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg1_v.2d,l0_msg0_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:178: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:179: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg2_v.2d,l0_msg3_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:179: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:179: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg2_v.2d,l0_msg1_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:179: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:180: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg3_v.2d,l0_msg4_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:180: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:180: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg3_v.2d,l0_msg2_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:180: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:181: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg4_v.2d,l0_msg5_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:181: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:181: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg4_v.2d,l0_msg3_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:181: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:182: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg5_v.2d,l0_msg6_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:182: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:182: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg5_v.2d,l0_msg4_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:182: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:183: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg6_v.2d,l0_msg7_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:183: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:183: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg6_v.2d,l0_msg5_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:183: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:184: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg7_v.2d,l0_msg0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:184: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:184: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg7_v.2d,l0_msg6_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:184: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:185: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg0_v.2d,l0_msg1_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:185: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:185: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg0_v.2d,l0_msg7_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:185: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:186: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg1_v.2d,l0_msg2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:186: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:186: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg1_v.2d,l0_msg0_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:186: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:187: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg2_v.2d,l0_msg3_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:187: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:187: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg2_v.2d,l0_msg1_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:187: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:188: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg3_v.2d,l0_msg4_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:188: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:188: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg3_v.2d,l0_msg2_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:188: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:189: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg4_v.2d,l0_msg5_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:189: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:189: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg4_v.2d,l0_msg3_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:189: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:190: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg5_v.2d,l0_msg6_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:190: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:190: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg5_v.2d,l0_msg4_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:190: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:191: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg6_v.2d,l0_msg7_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:191: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:191: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg6_v.2d,l0_msg5_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:191: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:192: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg7_v.2d,l0_msg0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:192: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:192: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg7_v.2d,l0_msg6_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:192: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:193: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg0_v.2d,l0_msg1_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:193: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:193: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg0_v.2d,l0_msg7_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:193: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:194: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg1_v.2d,l0_msg2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:194: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:194: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg1_v.2d,l0_msg0_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:194: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:195: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg2_v.2d,l0_msg3_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:195: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:195: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg2_v.2d,l0_msg1_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:195: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:196: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg3_v.2d,l0_msg4_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:196: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:196: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg3_v.2d,l0_msg2_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:196: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:197: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg4_v.2d,l0_msg5_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:197: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:197: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg4_v.2d,l0_msg3_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:197: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:198: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg5_v.2d,l0_msg6_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:198: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:198: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg5_v.2d,l0_msg4_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:198: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:199: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg6_v.2d,l0_msg7_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:199: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:199: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg6_v.2d,l0_msg5_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:199: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:200: Error: unknown mnemonicsha512su0' -- sha512su0 l0_msg7_v.2d,l0_msg0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:200: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:200: Error: unknown mnemonicsha512su1' -- sha512su1 l0_msg7_v.2d,l0_msg6_v.2d,l0_tmp0_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:200: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:201: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:201: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:202: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:202: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:203: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:203: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:204: Error: unknown mnemonicsha512h' -- sha512h l0_gh_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:204: Error: unknown mnemonicsha512h2' -- sha512h2 l0_gh_q,l0_cd_q,l0_ab_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:205: Error: unknown mnemonicsha512h' -- sha512h l0_ef_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:205: Error: unknown mnemonicsha512h2' -- sha512h2 l0_ef_q,l0_ab_q,l0_gh_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:206: Error: unknown mnemonicsha512h' -- sha512h l0_tmp_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:206: Error: unknown mnemonicsha512h2' -- sha512h2 l0_tmp_q,l0_gh_q,l0_ef_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:207: Error: unknown mnemonicsha512h' -- sha512h l0_cd_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:207: Error: unknown mnemonicsha512h2' -- sha512h2 l0_cd_q,l0_ef_q,l0_tmp_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:208: Error: unknown mnemonicsha512h' -- sha512h l0_ab_q,l0_tmp1_q,l0_tmp2_v.2d' sha512_mb/aarch64/sha512_mb_x1_ce.S:208: Error: unknown mnemonicsha512h2' -- `sha512h2 l0_ab_q,l0_tmp_q,l0_cd_v.2d' make[1]: [sha512_mb/aarch64/sha512_mb_x1_ce.lo] Error 1 make: [all] Error 2

[root@localhost isa-l_crypto-2.24.0]# lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 1 Core(s) per socket: 64 Socket(s): 1 NUMA node(s): 1 Model: 2 BogoMIPS: 100.00 L1d cache: 32K L1i cache: 32K L2 cache: 32768K NUMA node0 CPU(s): 0-63 Flags: fp asimd evtstrm crc32 cpuid

gbtucker commented 3 years ago

If I had to guess from the error messages it looks like an old gcc/gas version that doesn't understand the sha3 instructions.

sha512_mb/aarch64/sha512_mb_x1_ce.S: Assembler messages:
sha512_mb/aarch64/sha512_mb_x1_ce.S:29: Error: unknown architectural extension sha3'
sha512_mb/aarch64/sha512_mb_x1_ce.S:169: Error: unknown mnemonic sha512su0' -- sha512su0 l0_msg0_v.2d,l0_msg1_v.2d'

Can you show the compiler and assembler versions used?

benqwu commented 3 years ago

If I had to guess from the error messages it looks like an old gcc/gas version that doesn't understand the sha3 instructions.

sha512_mb/aarch64/sha512_mb_x1_ce.S: Assembler messages:
sha512_mb/aarch64/sha512_mb_x1_ce.S:29: Error: unknown architectural extension sha3'
sha512_mb/aarch64/sha512_mb_x1_ce.S:169: Error: unknown mnemonic sha512su0' -- sha512su0 l0_msg0_v.2d,l0_msg1_v.2d'

Can you show the compiler and assembler versions used?

Thank you for your reply. The gcc version is: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gbtucker commented 3 years ago

It looks like gcc-8 was the first to have sha2/3 instructions https://gcc.gnu.org/gcc-8/changes.html.

benqwu commented 2 years ago

It looks like gcc-8 was the first to have sha2/3 instructions https://gcc.gnu.org/gcc-8/changes.html.

On the same machine,compiling with v2.22 is OK.

[root@bogon isa-l_crypto-2.22.0]# make
Building isa-l_crypto.h
make --no-print-directory all-am
  CC       sha1_mb/sha1_ctx_base.lo
  CC       sha1_mb/sha1_ref.lo
  CPPAS    sha1_mb/aarch64/sha1_mb_multibinary.lo
  CC       sha1_mb/aarch64/sha1_mb_dispatch_init.lo
  CC       sha1_mb/aarch64/sha1_ctx_ce.lo
  CPPAS    sha1_mb/aarch64/sha1_mb_x1_ce.lo
  CPPAS    sha1_mb/aarch64/sha1_mb_x2_ce.lo
  CC       sha1_mb/aarch64/sha1_mb_mgr_ce.lo
  CC       mh_sha1/mh_sha1_block_base.lo
  CC       mh_sha1/mh_sha1_finalize_base.lo
  CC       mh_sha1/mh_sha1_update_base.lo
  CC       mh_sha1/sha1_for_mh_sha1.lo
  CC       mh_sha1/mh_sha1.lo
  CC       mh_sha1/mh_sha1_base_aliases.lo
  CCLD     libisal_crypto.la
cd . && /bin/sh ./config.status libisal_crypto.pc
config.status: creating libisal_crypto.pc
gbtucker commented 2 years ago

It looks like gcc-8 was the first to have sha2/3 instructions https://gcc.gnu.org/gcc-8/changes.html.

On the same machine,compiling with v2.22 is OK.

This would make sense because the aarch64 sha optimizations were added between v2.22 and v2.23.

gbtucker commented 2 years ago

Fixed by 8319ad33c1