Implementation notes: amd64, raptor, crypto_encrypt/mceliece

Computer: raptor
Microarchitecture: amd64; Raptor Cove (b06a2)
Architecture: amd64
CPU ID: GenuineIntel-000b06a2-40-bfebfbff
SUPERCOP version: 20231107
Operation: crypto_encrypt
Primitive: mceliece

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
misc.c: misc.c:6:44: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
misc.c: __inline int u8rnd() { char c; randombytes(&c,1); return 255 & (int) c; }
misc.c: ^~
misc.c: /home/djb/supercop-20230530/supercop-data/raptor/amd64/include/randombytes.h:8:40: note: passing argument to parameter here
misc.c: extern void randombytes(unsigned char *,unsigned long long);
misc.c: ^
misc.c: 1 warning generated.
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x1000): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x0): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x1120): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x120): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x0): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x1000): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `gop_supr':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `crypto_encrypt_mceliece_ref_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o):keypair.c:(.text+0x...): more undefined references to `u8rnd' follow
try.c: clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x1000): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x0): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x140): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x1140): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x20): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x1020): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `gop_supr':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `crypto_encrypt_mceliece_ref_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o):keypair.c:(.text+0x...): more undefined references to `u8rnd' follow
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x1000): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x0): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x1140): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x140): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x20): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x1020): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `gop_supr':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `crypto_encrypt_mceliece_ref_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o):keypair.c:(.text+0x...): more undefined references to `u8rnd' follow
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x1000): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x0): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x1140): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x140): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x20): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x1020): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `gop_supr':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `crypto_encrypt_mceliece_ref_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x1000): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(poly.o):(.bss+0x0): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x140): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(decrypt.o):(.bss+0x1140): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x20): multiple definition of `gf_exp'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x0): first defined here
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(gf.o):(.bss+0x1020): multiple definition of `gf_log'; libcrypto_encrypt_mceliece.a(keypair.o):(.bss+0x1000): first defined here
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `gop_supr':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(keypair.o): in function `crypto_encrypt_mceliece_ref_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `u8rnd'
try.c: /usr/bin/ld: libcrypto_encrypt_mceliece.a(misc.o):misc.c:(.text+0x...): more undefined references to `u8rnd' follow
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref