Implementation notes: aarch64, pi4b, crypto_sign/sphincsf192sha256robust

Computer: pi4b
Microarchitecture: aarch64; Cortex-A72 (410fd083)
Architecture: aarch64
CPU ID: 410fd083
SUPERCOP version: 20240716
Operation: crypto_sign
Primitive: sphincsf192sha256robust

Compiler output


hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: In file included from ./sha256avx.h:3:
hash_sha256x8.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c: #error "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c:  ^
hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: In file included from ./sha256avx.h:3:
hash_sha256x8.c: In file included from /usr/lib/llvm-14/lib/clang/14.0.0/include/immintrin.h:17:
hash_sha256x8.c: In file included from /usr/lib/llvm-14/lib/clang/14.0.0/include/x86gprintrin.h:15:
hash_sha256x8.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
hash_sha256x8.c:   __asm__ ("hreset $0" :: "a"(__eax));
hash_sha256x8.c:                           ^
hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: In file included from ./sha256avx.h:3:
hash_sha256x8.c: In file included from /usr/lib/llvm-14/lib/clang/14.0.0/include/immintrin.h:21:
hash_sha256x8.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c: #error "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c:  ^
hash_sha256x8.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/mmintrin.h:54:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
hash_sha256x8.c:     return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
hash_sha256x8.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hash_sha256x8.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/mmintrin.h:133:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
hash_sha256x8.c:     return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
hash_sha256x8.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hash_sha256x8.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/mmintrin.h:163:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
hash_sha256x8.c: ...

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

Compiler output


hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: sha256avx.h:3:10: fatal error: immintrin.h: No such file or directory
hash_sha256x8.c:     3 | #include "immintrin.h"
hash_sha256x8.c:       |          ^~~~~~~~~~~~~
hash_sha256x8.c: compilation terminated.

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

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(hash_sha256.o):.../supercop-data/pi4b/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(sha256.o):.../supercop-data/pi4b/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/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 (Ubuntu_Clang_14.0.0)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(hash_sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/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 (11.4.0)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(hash_sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/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 (11.4.0)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(hash_sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/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 (11.4.0)

Compiler output


try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(hash_sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincsf192sha256robust.a(sha256.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincsf192sha256robust.a(thash_sha256_robust.o):.../supercop-data/pi4b/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincsf192sha256robust/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 (11.4.0)