Implementation notes: amd64, jasper3, crypto_sign/sphincss256sha256robust

Computer: jasper3
Microarchitecture: amd64; Tremont (906c0)
Architecture: amd64
CPU ID: GenuineIntel-000906c0-20-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_sign
Primitive: sphincss256sha256robust

Compiler output


sha256avx.c: sha256avx.c:11:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c:     tmp0[0] = _mm256_unpacklo_epi32(s[0], s[1]);
sha256avx.c:               ^
sha256avx.c: sha256avx.c:11:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:12:15: error: always_inline function '_mm256_unpackhi_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c:     tmp0[1] = _mm256_unpackhi_epi32(s[0], s[1]);
sha256avx.c:               ^
sha256avx.c: sha256avx.c:12:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:13:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c:     tmp0[2] = _mm256_unpacklo_epi32(s[2], s[3]);
sha256avx.c:               ^
sha256avx.c: sha256avx.c:13:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:14:15: error: always_inline function '_mm256_unpackhi_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c:     tmp0[3] = _mm256_unpackhi_epi32(s[2], s[3]);
sha256avx.c:               ^
sha256avx.c: sha256avx.c:14:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:15:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c:     tmp0[4] = _mm256_unpacklo_epi32(s[4], s[5]);
sha256avx.c:               ^
sha256avx.c: sha256avx.c:15:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:16:15: error: always_inline function '_mm256_unpackhi_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c:     tmp0[5] = _mm256_unpackhi_epi32(s[4], s[5]);
sha256avx.c:               ^
sha256avx.c: sha256avx.c:16:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:17:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: ...

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:avx2clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:avx2clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:avx2clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:avx2clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:avx2clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


sha256avx.c: sha256avx.c: In function 'transpose':
sha256avx.c: sha256avx.c:11:13: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
sha256avx.c:    11 |     tmp0[0] = _mm256_unpacklo_epi32(s[0], s[1]);
sha256avx.c:       |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
sha256avx.c:                  from sha256avx.h:3,
sha256avx.c:                  from sha256avx.c:5:
sha256avx.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:1081:1: error: inlining failed in call to 'always_inline' '_mm256_permute2x128_si256': target specific option mismatch
sha256avx.c:  1081 | _mm256_permute2x128_si256 (__m256i __X, __m256i __Y, const int __M)
sha256avx.c:       | ^~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: sha256avx.c:34:12: note: called from here
sha256avx.c:    34 |     s[7] = _mm256_permute2x128_si256(tmp1[3], tmp1[7], 0x31);
sha256avx.c:       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
sha256avx.c:                  from sha256avx.h:3,
sha256avx.c:                  from sha256avx.c:5:
sha256avx.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:1081:1: error: inlining failed in call to 'always_inline' '_mm256_permute2x128_si256': target specific option mismatch
sha256avx.c:  1081 | _mm256_permute2x128_si256 (__m256i __X, __m256i __Y, const int __M)
sha256avx.c:       | ^~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: sha256avx.c:33:12: note: called from here
sha256avx.c:    33 |     s[6] = _mm256_permute2x128_si256(tmp1[2], tmp1[6], 0x31);
sha256avx.c:       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
sha256avx.c:                  from sha256avx.h:3,
sha256avx.c:                  from sha256avx.c:5:
sha256avx.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:avx2gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:avx2gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:avx2gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:avx2gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(hash_sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256robust.a(sha256.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256robust.a(thash_sha256_robust.o):.../supercop-data/jasper3/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256robust/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)