clang: error: unknown argument: '-mno-fused-madd'
2014-04-03 19:41
387 查看
环境os10.9.2 xcode5.1
1. pip install reportlab一直报错:
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /private/tmp/pip_build_root/reportlab/src/rl_addons/rl_accel/_rl_accel.c -o build/temp.macosx-10.9-intel-2.7/private/tmp/pip_build_root/reportlab/src/rl_addons/rl_accel/_rl_accel.o
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
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/reportlab/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-e7bQve-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/reportlab
Storing debug log for failure in /Users/haohuiyan/Library/Logs/pip.log
2. 咨询了一下说是换32位的python,换了之后还是这个问题
3. 找到这个http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa/22315129#22315129
4. 我的解决方案是:
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
sudo -E pip install reportlab
收获:就是管他三七二十一,当时是准备把贴子里面的方案全部试一遍,大不了重新装系统
1. pip install reportlab一直报错:
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /private/tmp/pip_build_root/reportlab/src/rl_addons/rl_accel/_rl_accel.c -o build/temp.macosx-10.9-intel-2.7/private/tmp/pip_build_root/reportlab/src/rl_addons/rl_accel/_rl_accel.o
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
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/reportlab/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-e7bQve-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/reportlab
Storing debug log for failure in /Users/haohuiyan/Library/Logs/pip.log
2. 咨询了一下说是换32位的python,换了之后还是这个问题
3. 找到这个http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa/22315129#22315129
4. 我的解决方案是:
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
sudo -E pip install reportlab
收获:就是管他三七二十一,当时是准备把贴子里面的方案全部试一遍,大不了重新装系统
相关文章推荐
- clang: error: unknown argument: '-mno-fused-madd
- mac 安装 python库时报错clang: error: unknown argument: '-mno-fused-madd'
- python lib 安装遇到报错clang: error: unknown argument: '-mno-fused-madd'
- iOS开展-clang: error: unknown argument: '-websockets'解决方案
- mac下安装Crypto问题解决 clang: error: unknown argument: '-mno-fused-madd'
- iOS开发-clang: error: unknown argument: '-websockets'解决办法
- Error: unknown argument: '-websockets' No such file or directory
- intellij idea加载go开发插件源码时报错Error:ant: Cannot run 'patch-version' target: JDK '<unknown>' not found
- 【OC易错】Xcode5.0新建OS X下的cmd工程后出现编译错误clang: error: invalid version number in '-mmacosx-version-min=
- usr/bin/mysqladmin: refresh failed; error: 'Unknown error'
- Mysql数据库从本地导出、服务器上导入时报:ERROR 2005 (HY000): Unknown MySQL server host 'mysql' 的一种解决方案
- ERROR: Unknown option '--no-crunch'问题。
- eclipse进行android,运行就提示ERROR: Unknown command 'crunch'
- swift error:Extra argument 'error' in call
- MySQL:unknown variable 'master-host=masterIP' [ERROR] Aborting
- ERROR 1286 (42000): Unknown table engine 'InnoDB'
- NDK编译c包含C++头文件 error: unknown type name 'class' 的解决方法
- error C2018: unknown character '0xa1'
- mysql 5.7 版本,密码无法登陆,更改密码时出现ERROR 1054 (42S22): Unknown column 'password' in 'fie
- ERROR: Unknown command 'crunch' 的解决方法