Posts

Showing posts from April, 2014

Pillow compile error clang: -Wno-error=unused-command-line-argument-hard-error-in-future fix

Image
I have had a problem with compiling Pillow recently. the error was with Pillow/Pil compilation.
pillowinstallerrorclang:error:unknownargument:'-mno-fused-madd'[-Wunused-command-line-argument-hard-error-in-future] Apple updated command line tools. So the cc command was updated too.
$gcc--versionConfiguredwith:--prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1AppleLLVMversion5.1(clang-503.0.38)(basedonLLVM3.4svn)Target:x86_64-apple-darwin13.1.0Threadmodel:posix The bug is in GCC. It is quite serious because those flags support will be dropped in future. Fortunately there is a worakround for now:
exportARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" It works for Pillow 2.4.0 and I can compile it with Apple LLVM 5.1 (That is current now), as of Xcode 5.1.
Hope my findings will help someone.