<div dir="ltr"><div><div><div>It looks like the latest XCode cannot build pixman:<br><br>$ clang --version<br>Apple LLVM version 7.0.0 (clang-700.0.72)<br>Target: x86_64-apple-darwin14.5.0<br>Thread model: posix<br><br>pixman-mmx.c:100:20: error: constraint 'K' expects an integer constant expression<br>        : "y" (__A), "K" (__N)<br>                          ^~~<br>Reported here:<br><a href="https://github.com/Homebrew/homebrew/issues/41056">https://github.com/Homebrew/homebrew/issues/41056</a><br><br></div>It looks like the test performed in <a href="http://configure.ac">configure.ac</a> does not match the code with sufficient accuracy.<br>In particular, the constant is hardcoded in the <a href="http://configure.ac">configure.ac</a> test, while in the code it is only available after inlining.<br><br></div>The attached hack gets the code to compile on modern clang, but I believe first of all we should improve the <a href="http://configure.ac">configure.ac</a> detection code so that pixman can actually build both on old and on new clang versions (possibly with mmx disabled, if the asm constraints we need are not implemented).<br><br></div>Andrea<br></div>