Asm portability problems on OS X and Solaris

Werner Koch wk at gnupg.org
Mon Jul 18 20:43:27 CEST 2016


Hi,

I got reports about two portability bug reports for 1.7.2.

The first is on an OS X 10.7.5:

  CFLAGS=-m32 ./configure --disable-asm && make all check
  ...
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src
  -I/usr/local/include -m32 -Wall -MT rijndael-aesni.lo -MD -MP -MF
  .deps/rijndael-aesni.Tpo -c rijndael-aesni.c  -fno-common -DPIC -o
  .libs/rijndael-aesni.o
  rijndael-aesni.c: In function 'do_aesni_ctr_4':
  rijndael-aesni.c:817:3: error: 'asm' operand has impossible constraints
     asm volatile (/* detect if 8-bit carry handling is needed */
     ^

So, --disable-asm is not honored in this case.  A similar problem exists
on OpenIndiana with gcc 4.9:

  crc-intel-pclmul.c: In function 'crc32_less_than_16':
  crc-intel-pclmul.c:747:7: error: 'asm' operand has impossible constraints
         asm volatile ("movd %[crc], %%xmm0\n\t"

using the Solaris compiler we get this error:

  "../src/cipher-proto.h", line 27: warning: useless declaration
  "md.c", line 912: identifier redeclared: _gcry_md_extract
  	current : function(pointer to struct gcry_md_handle {pointer to
  struct gcry_md_context {..} ctx, 
  ... long output ...
  	previous: function(pointer to struct gcry_md_handle {pointer to
  struct gcry_md_context {..} ctx, int bufpos, int bufsize, array[1] of
  unsigned char buf}, int, pointer to void, unsigned int) returning unsigned
  int : "../src/gcrypt-int.h", line 132
  cc: acomp failed for md.c



Salam-Shalom,

   Werner
  

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
 /* Join us at OpenPGP.conf  <https://openpgp-conf.org> */




More information about the Gcrypt-devel mailing list