首页 > 代码库 > MAC OSX 中解决编译“'cc' failed with exit status 1”错误 和clang: error: unknown argument 错误

MAC OSX 中解决编译“'cc' failed with exit status 1”错误 和clang: error: unknown argument 错误

错误例子:

error: command ‘cc‘ failed with exit status 1
clang: error: unknown argument: ‘-multiply_definedsuppress‘ [-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

解决方案:

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install zerorpc


http://stackoverflow.com/questions/22697440/cc-failed-with-exit-status-1-error-when-install-python-library

http://bruteforce.gr/bypassing-clang-error-unknown-argument.html

http://kaspermunck.github.io/2014/03/fixing-clang-error/

http://glynjackson.org/weblog/entry/clang-error.html