Re: [PATCH v3 0/3] MR11025: libs: Import upstream code from SymCrypt 103.11.0.
I get several errors with LLVM/Clang 16.0.1: $ md5sum wine-11.11.tar.xz b443f980be556567eb7f25be995c9825 wine-11.11.tar.xz $ lld-link --version LLD 16.0.1 $ clang --version clang version 16.0.1 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /pkg/llvm-16.0.1-0/bin $ ./configure --prefix=/dev/shm/pmenzel/local/wine-11.11-0 --with-x --with-gnutls --with-opengl --without-vulkan --with-wayland --enable-win64 --enable-archs=x86_64 --disable-tests `make` results in the errors below: ``` In file included from libs/symcrypt/lib/aes-xmm.c:741: libs/symcrypt/lib/aes-pattern.c:210:13: error: call to undeclared function '_mm_shuffle_epi8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] chain = _mm_shuffle_epi8( chain, BYTE_REVERSE_ORDER ); ^ libs/symcrypt/lib/aes-pattern.c:210:11: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' chain = _mm_shuffle_epi8( chain, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:241:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c0 = _mm_shuffle_epi8( c0, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:242:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c1 = _mm_shuffle_epi8( c1, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:243:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c2 = _mm_shuffle_epi8( c2, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:244:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c3 = _mm_shuffle_epi8( c3, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:245:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c4 = _mm_shuffle_epi8( c4, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:246:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c5 = _mm_shuffle_epi8( c5, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:247:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c6 = _mm_shuffle_epi8( c6, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:248:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c7 = _mm_shuffle_epi8( c7, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:311:16: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c0 = _mm_shuffle_epi8( c0, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:312:16: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c1 = _mm_shuffle_epi8( c1, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:313:16: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c2 = _mm_shuffle_epi8( c2, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:314:16: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c3 = _mm_shuffle_epi8( c3, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:337:16: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c0 = _mm_shuffle_epi8( c0, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:344:11: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' chain = _mm_shuffle_epi8( chain, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from libs/symcrypt/lib/aes-xmm.c:751: libs/symcrypt/lib/aes-pattern.c:210:13: error: call to undeclared function '_mm_shuffle_epi8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] chain = _mm_shuffle_epi8( chain, BYTE_REVERSE_ORDER ); ^ libs/symcrypt/lib/aes-pattern.c:210:11: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' chain = _mm_shuffle_epi8( chain, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libs/symcrypt/lib/aes-pattern.c:241:12: error: assigning to '__m128i' (vector of 2 'long long' values) from incompatible type 'int' c0 = _mm_shuffle_epi8( c0, BYTE_REVERSE_ORDER ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [Makefile:170664: libs/symcrypt/x86_64-windows/lib/aes-xmm.o] Error 1 ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11025#note_143135
participants (1)
-
Paul Menzel (@pmenzel)