pip install ansible 실행시 다음의 에러가 발생했다.  


 clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]


clang: note: this will be a hard error (cannot be downgraded to a warning) in the future


error: command 'cc' failed with exit status 1



나는 xcode 5.1.1 을 사용하고 있다.


확인해보니. xcode 5.1부터 unknown argument는 c 컴파일에서 에러가 나도록 바뀌었다. 


https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/Introduction/Introduction.html



Xcode 5.1 Release Notes

Compiler

  • The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified.

    Projects using invalid compiler options will need to be changed to remove those options. To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning:

    -Wno-error=unused-command-line-argument-hard-error-in-future

    To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning. For example, you can install a Python native extension with:

    $ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install ExtensionName

    Similarly, you can install a Ruby Gem with:

    $ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GemName (16214764)



문서에 있는 대로 하니 설치가 된다. (directory, file permission 이슈는 알아서 해결해야 할 듯..)


  $ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install ansible




Posted by 김용환 '김용환'

댓글을 달아 주세요