charm icon indicating copy to clipboard operation
charm copied to clipboard

error: constraint 'I' expects an integer constant expression

Open yurivict opened this issue 7 years ago • 1 comments

Getting these errors with clang-40:

In file included from charm/core/crypto/DES/DES.c:32:
In file included from charm/core/crypto/cryptobase/libtom/tomcrypt_des.c:11:
In file included from charm/core/crypto/cryptobase/libtom/tomcrypt.h:67:
charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:269:24: error: constraint 'I' expects an integer constant expression
      :"0" (word),"I" (i));
                       ^
charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:277:24: error: constraint 'I' expects an integer constant expression
      :"0" (word),"I" (i));
                       ^
charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:368:24: error: constraint 'J' expects an integer constant expression
      :"0" (word),"J" (i));
                       ^
charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:376:24: error: constraint 'J' expects an integer constant expression
      :"0" (word),"J" (i));
                       ^
4 errors generated.
error: command 'cc' failed with exit status 1
*** Error code 1

yurivict avatar Feb 19 '18 23:02 yurivict

Backported fix at https://github.com/Homebrew/homebrew-core/pull/3922

dumol avatar Jul 03 '18 12:07 dumol