Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4394902
  • 博文数量: 1214
  • 博客积分: 13195
  • 博客等级: 上将
  • 技术积分: 9105
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-19 14:41
个人简介

C++,python,热爱算法和机器学习

文章分类

全部博文(1214)

文章存档

2021年(13)

2020年(49)

2019年(14)

2018年(27)

2017年(69)

2016年(100)

2015年(106)

2014年(240)

2013年(5)

2012年(193)

2011年(155)

2010年(93)

2009年(62)

2008年(51)

2007年(37)

分类: IT业界

2014-03-30 20:39:57

文章来源:

Apple updated the Xcode command line tools today, which upgraded clang to
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn) and enabled a feature in clang that causes unknown compiler flags to hard error rather than warn. The error is accompanied by an amusing/frustrating note:

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 

Apparently the future is here.

This is a serious problem because several common gcc flags are not supported under clang (most notably-mno-fused-madd).

For now you can work around the issue using

export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" 

but be aware that this will stop working in a future clang.

阅读(2059) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~