libgcrypt-1.7 fails self-test for all 'basic' with 'Checksum error' (log attached)
Somchai Smythe
buraphalinuxserver at gmail.com
Wed Apr 27 03:42:39 CEST 2016
Note: If replying to mailing list please cc me since I'm not subscribed.
+ LINGUAS='en th'
+ CC='gcc -std=gnu11'
+ CFLAGS='-O3 -m64 -march=x86-64 -mtune=generic -pipe'
+ ./configure --prefix=/usr --mandir=/usr/man --infodir=/usr/info
--sysconfdir=/etc --disable-static --with-pic
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc -std=gnu11
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 we are using the GNU C compiler... yes
checking whether gcc -std=gnu11 accepts -g... yes
checking for gcc -std=gnu11 option to accept ISO C89... none needed
checking whether gcc -std=gnu11 understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc -std=gnu11... gcc3
checking how to run the C preprocessor... gcc -std=gnu11 -E
checking dependency style of gcc -std=gnu11... gcc3
checking for library containing strerror... none required
checking for gawk... (cached) gawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cc for build... gcc -std=gnu11
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu11... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to
toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu11 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu11 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu11 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu11 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu11 static flag -static works... yes
checking if gcc -std=gnu11 supports -c -o file.o... yes
checking if gcc -std=gnu11 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu11 linker (/usr/bin/ld -m elf_x86_64)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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
checking for windres... no
checking whether byte ordering is bigendian... no
checking size of unsigned short... 2
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... 8
checking size of void *... 8
checking for uintptr_t... yes
checking for UINT64_C... yes
checking size of uint64_t... 8
checking which symmetric ciphers to include... arcfour blowfish cast5
des aes twofish serpent rfc2268 seed camellia idea salsa20 gost28147
chacha20
checking which public-key ciphers to include... dsa elgamal rsa ecc
checking which message digests to include... crc gostr3411-94 md4 md5
rmd160 sha1 sha256 sha512 sha3 tiger whirlpool stribog
checking which key derivation functions to include... s2k pkdf2 scrypt
checking which random module to use... default
checking whether use of /dev/random is requested... yes
checking whether the experimental random daemon is requested... no
checking whether MPI assembler modules are requested... yes
checking whether memory guard is requested... no
checking whether to run large data tests... no
checking whether use of capabilities is requested... no
checking whether a HMAC binary check is requested... no
checking whether padlock support is requested... yes
checking whether AESNI support is requested... yes
checking whether PCLMUL support is requested... yes
checking whether DRNG support is requested... yes
checking whether AVX support is requested... yes
checking whether AVX2 support is requested... yes
checking whether NEON support is requested... yes
checking whether a -O flag munging is requested... yes
checking whether to enable AMD64 as(1) feature detection... yes
checking for gpg-error-config... /usr/bin/gpg-error-config
checking for GPG Error - version >= 1.13... yes (1.21)
checking for pthread_create in -lpthread... yes
checking for library containing setsockopt... none required
checking for library containing setsockopt... (cached) none required
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking return type of signal handlers... void
checking whether sys_siglist is declared... yes
checking for pid_t... yes
checking for byte typedef... no
checking for ushort typedef... yes
checking for ulong typedef... yes
checking for u16 typedef... no
checking for u32 typedef... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for socklen_t... yes
checking for __builtin_bswap32... yes
checking for __builtin_bswap64... yes
checking for __builtin_ctz... yes
checking whether the variable length arrays are supported... yes
checking whether the visibility attribute is supported... yes
checking for broken visibility attribute... no
checking for broken alias attribute... no
checking if gcc supports -fvisibility=hidden... yes
checking whether the GCC style aligned attribute is supported... yes
checking whether the GCC style packed attribute is supported... yes
checking whether 'asm' assembler keyword is supported... yes
checking whether '__asm__' assembler keyword is supported... yes
checking whether inline assembly memory barrier is supported... yes
checking whether GCC assembler is compatible for ARM assembly
implementations... no
checking for _ prefix in compiled symbols... no
checking architecture and mpi assembler functions... x86
checking whether compiler supports 'ms_abi' function attribute... yes
checking whether compiler supports 'sysv_abi' function attribute... yes
checking whether default calling convention is 'ms_abi'... no
checking whether default calling convention is 'sysv_abi'... yes
checking whether GCC inline assembler supports SSSE3 instructions... yes
checking whether GCC inline assembler supports PCLMUL instructions... yes
checking whether GCC inline assembler supports AVX instructions... yes
checking whether GCC inline assembler supports AVX2 instructions... yes
checking whether GCC inline assembler supports BMI2 instructions... yes
checking whether GCC assembler handles division correctly... yes
checking whether GCC assembler is compatible for amd64 assembly
implementations... yes
checking whether GCC assembler is compatible for Intel syntax assembly
implementations... yes
checking whether compiler is configured for ARMv6 or newer architecture... n/a
checking whether GCC inline assembler supports NEON instructions... n/a
checking for vprintf... yes
checking for _doprnt... no
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strtoul... yes
checking for memmove... yes
checking for stricmp... no
checking for atexit... yes
checking for raise... yes
checking for strerror... yes
checking for rand... yes
checking for mmap... yes
checking for getpagesize... yes
checking for sysconf... yes
checking for waitpid... yes
checking for wait4... yes
checking for gettimeofday... yes
checking for getrusage... yes
checking for gethrtime... no
checking for clock_gettime... yes
checking for syslog... yes
checking for fcntl... yes
checking for ftruncate... yes
checking for flockfile... yes
checking for mlock... yes
checking for sysconf... (cached) yes
checking for getpagesize... (cached) yes
checking whether mlock is broken... no
checking for getpid... yes
checking for clock... yes
checking for random device... yes
checking whether non excutable stack support is requested... yes
checking whether assembler supports --noexecstack option... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating compat/Makefile
config.status: creating mpi/Makefile
config.status: creating cipher/Makefile
config.status: creating random/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/gcrypt.h
config.status: creating src/libgcrypt-config
config.status: creating src/versioninfo.rc
config.status: creating tests/Makefile
config.status: creating tests/hashtest-256g
config.status: creating config.h
config.status: linking mpi/amd64/mpih-add1.S to mpi/mpih-add1-asm.S
config.status: linking mpi/amd64/mpih-sub1.S to mpi/mpih-sub1-asm.S
config.status: linking mpi/amd64/mpih-mul1.S to mpi/mpih-mul1-asm.S
config.status: linking mpi/amd64/mpih-mul2.S to mpi/mpih-mul2-asm.S
config.status: linking mpi/amd64/mpih-mul3.S to mpi/mpih-mul3-asm.S
config.status: linking mpi/amd64/mpih-lshift.S to mpi/mpih-lshift-asm.S
config.status: linking mpi/amd64/mpih-rshift.S to mpi/mpih-rshift-asm.S
config.status: linking mpi/generic/mpi-asm-defs.h to mpi/mpi-asm-defs.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing gcrypt-conf commands
Libgcrypt v1.7.0 has been configured as follows:
Platform: GNU/Linux (x86_64-unknown-linux-gnu)
Hardware detection module: hwf-x86
Enabled cipher algorithms: arcfour blowfish cast5 des aes twofish
serpent rfc2268 seed camellia idea salsa20
gost28147 chacha20
Enabled digest algorithms: crc gostr3411-94 md4 md5 rmd160 sha1
sha256 sha512 sha3 tiger whirlpool stribog
Enabled kdf algorithms: s2k pkdf2 scrypt
Enabled pubkey algorithms: dsa elgamal rsa ecc
Random number generator: default
Using linux capabilities: no
Try using Padlock crypto: yes
Try using AES-NI crypto: yes
Try using Intel PCLMUL: yes
Try using DRNG (RDRAND): yes
Try using Intel AVX: yes
Try using Intel AVX2: yes
Try using ARM NEON: n/a
Then a normal build with a few warnings.
Then make check fails like this:
+ make check
Making check in compat
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/compat'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/compat'
Making check in mpi
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/mpi'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/mpi'
Making check in cipher
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/cipher'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/cipher'
Making check in random
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/random'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/random'
Making check in src
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/src'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/src'
Making check in doc
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/doc'
make check-am
make[2]: Entering directory '/home/tmp/libgcrypt-1.7.0/doc'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/home/tmp/libgcrypt-1.7.0/doc'
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/doc'
Making check in tests
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/tests'
make check-TESTS
make[2]: Entering directory '/home/tmp/libgcrypt-1.7.0/tests'
version:1.7.0:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:
rnd-mod:linux:
cpu-arch:x86:
mpi-asm:amd64/mpih-add1.S:amd64/mpih-sub1.S:amd64/mpih-mul1.S:amd64/mpih-mul2.S:amd64/mpih-mul3.S:amd64/mpih-lshift.S:amd64/mpih-rshift.S:
hwflist:intel-cpu:intel-fast-shld:intel-bmi2:intel-ssse3:intel-sse4.1:intel-pclmul:intel-aesni:intel-rdrand:intel-avx:intel-avx2:
fips-mode:n:n:
rng-type:standard:1:
PASS: version
PASS: mpitests
PASS: t-sexp
PASS: t-convert
PASS: t-mpi-bit
PASS: t-mpi-point
PASS: curves
PASS: t-lock
PASS: prime
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
FAIL: basic
and the rest passes.
I tried on a home-built system (LFS derived) and got the failure, so
tried again on an up-to-date Ubuntu 16.04 system and got identical
results (the failure). I'm on an adm64 platform if it matters.
Full 'make check' output from Ubuntu 16.04 system attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log
Type: application/octet-stream
Size: 44282 bytes
Desc: not available
URL: </pipermail/attachments/20160427/46a71aaf/attachment-0001.obj>
More information about the Gcrypt-devel
mailing list