charm
charm copied to clipboard
error: constraint 'I' expects an integer constant expression
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
Backported fix at https://github.com/Homebrew/homebrew-core/pull/3922