GCC 5 compiling libgcrypt/cipher/rijndael-aesni.c

Jussi Kivilinna jussi.kivilinna at iki.fi
Tue Oct 13 07:50:08 CEST 2015


Hello,

On 13.10.2015 06:26, NIIBE Yutaka wrote:
> Hello,
> 
> With master branch, I encountered failure of building
> libgcrypt/cipher/rijndael-aesni.c for i686.

This happens with gcc-4.9 too. That assembly block is trying to use too many register constraints for SysV/i386. I pushed fix for this to libgcrypt/master.

-Jussi

> 
> $ gcc --version
> gcc (Debian 5.2.1-17) 5.2.1 20150911
> 
> =====================================
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../libgcrypt/cipher -I..  -I../src -I../../libgcrypt/src   -g -O2
> -fvisibility=hidden -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wformat -Wno-format-y2k -Wformat-security -W -Wextra -Wbad-function-cast
> -Wwrite-strings -Wdeclaration-after-statement -Wno-missing-field-initializers -Wno-sign-compare -Wpointer-arith -MT rijndael-aesni.lo -MD -MP
> -MF .deps/rijndael-aesni.Tpo -c -o rijndael-aesni.lo ../../libgcrypt/cipher/rijndael-aesni.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../libgcrypt/cipher -I.. -I../src -I../../libgcrypt/src -g -O2 -fvisibility=hidden -Wall
> -Wcast-align -Wshadow -Wstrict-prototypes -Wformat -Wno-format-y2k -Wformat-security -W -Wextra -Wbad-function-cast -Wwrite-strings
> -Wdeclaration-after-statement -Wno-missing-field-initializers -Wno-sign-compare -Wpointer-arith -MT rijndael-aesni.lo -MD -MP -MF
> .deps/rijndael-aesni.Tpo -c ../../libgcrypt/cipher/rijndael-aesni.c  -fPIC -DPIC -o .libs/rijndael-aesni.o
> ../../libgcrypt/cipher/rijndael-aesni.c: In function '_gcry_aes_aesni_ctr_enc':
> ../../libgcrypt/cipher/rijndael-aesni.c:817:3: error: 'asm' operand has impossible constraints
>    asm volatile (/* detect if 8-bit carry handling is needed */
>    ^
> Makefile:639: recipe for target 'rijndael-aesni.lo' failed
> make[2]: *** [rijndael-aesni.lo] Error 1
> =====================================
> --
> 
> _______________________________________________
> Gcrypt-devel mailing list
> Gcrypt-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20151013/f9172622/attachment.sig>


More information about the Gcrypt-devel mailing list