sjinks / php-stribog

GOST R 34.11-2012 (Stribog) Hash Function implementation for PHP.
MIT License
18 stars 11 forks source link

Failed to compile on Apple M1 (aarch64) #15

Closed bashkarev closed 2 years ago

bashkarev commented 3 years ago
log ```bash phpize Configuring for: PHP Api Version: 20200930 Zend Module Api No: 20200930 Zend Extension Api No: 420200930 configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead build/php.m4:2072: PHP_CONFIG_NICE is expanded from... configure.ac:18: the top level configure.ac:161: warning: The macro `AC_LANG_C' is obsolete. configure.ac:161: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from... build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: The macro `AC_LANG_C' is obsolete. configure.ac:161: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... build/libtool.m4:561: _LT_AC_LOCK is expanded from... build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from... build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from... build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:161: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... build/libtool.m4:561: _LT_AC_LOCK is expanded from... build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from... build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from... build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from... build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from... build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from... build/libtool.m4:2728: _LT_AC_LANG_C_CONFIG is expanded from... build/libtool.m4:2727: AC_LIBTOOL_LANG_C_CONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile' build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile' build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete. configure.ac:161: You should run autoupdate. ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from... build/libtool.m4:2810: _LT_AC_LANG_CXX_CONFIG is expanded from... build/libtool.m4:2809: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from... build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from... build/libtool.m4:2810: _LT_AC_LANG_CXX_CONFIG is expanded from... build/libtool.m4:2809: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from... build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from... build/libtool.m4:2810: _LT_AC_LANG_CXX_CONFIG is expanded from... build/libtool.m4:2809: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from... build/libtool.m4:1918: _LT_AC_TAGCONFIG is expanded from... build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from... build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from... build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from... configure.ac:161: the top level ./configure checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for pkg-config... no checking for cc... cc 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 the compiler supports GNU C... yes checking whether cc accepts -g... yes checking for cc option to enable C11 features... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... arm-apple-darwin21.1.0 checking host system type... arm-apple-darwin21.1.0 checking target system type... arm-apple-darwin21.1.0 checking for PHP prefix... /opt/homebrew/Cellar/php/8.0.12 checking for PHP includes... -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib checking for PHP extension directory... /opt/homebrew/Cellar/php/8.0.12/pecl/20200930 checking for PHP installed headers prefix... /opt/homebrew/Cellar/php/8.0.12/include/php checking if debug is enabled... no checking if zts is enabled... no checking for gawk... no checking for nawk... no checking for awk... awk checking if awk is broken... no checking whether to enable GOST R 34.11-2012 Hash Function... yes, shared checking whether byte ordering is bigendian... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for cpuid.h... no checking for a sed that does not truncate output... /usr/bin/sed checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for dlfcn.h... yes checking the maximum length of command line arguments... 786432 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking for dsymutil... dsymutil checking for nmedit... nmedit checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fno-common checking if cc PIC flag -fno-common works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin21.1.0 dyld 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... no creating libtool appending configuration tag "CXX" to libtool configure: patching config.h.in configure: creating ./config.status config.status: creating config.h make /bin/sh /tmp/php-stribog/libtool --mode=compile cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/stribog.c -o stribog.lo mkdir .libs cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/stribog.c -fno-common -DPIC -o .libs/stribog.o In file included from /tmp/php-stribog/stribog.c:10: ./gost3411-2012.h:16:10: warning: 'ALIGN' macro redefined [-Wmacro-redefined] # define ALIGN(x) __attribute__((__aligned__(x))) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/param.h:61:9: note: previous definition is here #define ALIGN(p) __DARWIN_ALIGN(p) ^ 1 warning generated. /bin/sh /tmp/php-stribog/libtool --mode=compile cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/tables.c -o tables.lo cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/tables.c -fno-common -DPIC -o .libs/tables.o /bin/sh /tmp/php-stribog/libtool --mode=compile cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/gost3411-2012.c -o gost3411-2012.lo cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/gost3411-2012.c -fno-common -DPIC -o .libs/gost3411-2012.o /bin/sh /tmp/php-stribog/libtool --mode=compile cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/gost3411-2012-ref.c -o gost3411-2012-ref.lo cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/gost3411-2012-ref.c -fno-common -DPIC -o .libs/gost3411-2012-ref.o /bin/sh /tmp/php-stribog/libtool --mode=compile cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/gost3411-2012-mmx.c -o gost3411-2012-mmx.lo cc -I. -I/tmp/php-stribog -I/tmp/php-stribog/include -I/tmp/php-stribog/main -I/tmp/php-stribog -I/opt/homebrew/Cellar/php/8.0.12/include/php -I/opt/homebrew/Cellar/php/8.0.12/include/php/main -I/opt/homebrew/Cellar/php/8.0.12/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.12/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext -I/opt/homebrew/Cellar/php/8.0.12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-stribog/gost3411-2012-mmx.c -fno-common -DPIC -o .libs/gost3411-2012-mmx.o In file included from /tmp/php-stribog/gost3411-2012-mmx.c:8: /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_vec_init_v2si(__i, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:129:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:159:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:189:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:216:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:239:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:260:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:287:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:310:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:331:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:352:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:373:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:394:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:416:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:439:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:461:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_paddusb((__v8qi)__m1, (__v8qi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:483:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_paddusw((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:504:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_psubb((__v8qi)__m1, (__v8qi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include/mmintrin.h:525:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size return (__m64)__builtin_ia32_psubw((__v4hi)__m1, (__v4hi)__m2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [gost3411-2012-mmx.lo] Error 1 ```
sjinks commented 2 years ago

Please try the latest master.

I don't have an M1, but I was able to build and test the extension for the ARM architecture.

bashkarev commented 2 years ago
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   65
---------------------------------------------------------------------

Number of tests :    5                 5
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Tests passed    :    5 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

thanks