Installing xml2rfc on OSX

curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
pip install xml2rfc

yields:

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

So try:

curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install xml2rfc

As partially documented here in Ansible Installation -clang: error: unknown argument: ‘-mno-fused-madd’.

Leave a Reply