I'm on OSX. I'm installing Salt by following Salt's official guide here and I've ran into a problem. Running 'sudo pip install salt' gives me the following error.
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
I put the entire installation text in this gist. I just want to install salt via pip. Any ideas?
Attempted Solutions used from other overflow questions
- I've tried export CFLAGS=-Qunused-arguments and export CPPFLAGS=-Qunused-arguments in sudo bash
- I've tried running sudo pip install salt with ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"
- Updating xcode from 5.1 to 5.1.1, as I read this might be an xcode problem.
All of these return the same exact error. I don't know what to do. I've been hitting my head against this wall for about 2 hours with no resolve. Can someone help please?
Try putting the environmental variable assignment after sudo:
Or, become root, then do the export:
It appears that the sudo command does not inherit the environmental variables, and they certainly aren't saved across multiple runs with sudo: