免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3272 | 回复: 10
打印 上一主题 下一主题

[FreeBSD] 2012 年 40 週關注亮點 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-10-09 08:37 |只看该作者 |倒序浏览
FreeBSD port 團隊,計劃於 2012 年 11 月 4 日改變使用 Clang 為 Ports預設編譯器。
到時候 Clang 和 gcc 主客身份將會倒轉,而 /usr/ports/Mk/bsd.gcc.mk 也開始作準備
部署來適應這個歷史性的轉變。若 ports 未能通過 Clang 編譯則需要指明用

USE_GCC=any 或 USE_GCC=4.x 來避規用將來預設的 Clang

距離 FreeBSD 全面把 Base 和 Port 預設轉變使用 LLVM/Clang 的歷史時刻越來越近。

Changes since revision 1.69: +23 -4 lines

SVN rev 305504 on 2012-10-07 19:33:19Z by linimon

Introduce the new semantic USE_GCC=any, which can be set in any port
Makefile.  For systems where CC is gcc, this has no effect.  For systems
where CC is clang, this forces the use of the base GCC suite.  (Some
forward compatibility is also covered in the patch.)

Confirmed to have no ill-effects via multiple runs with gcc as CC:

  http://pointyhat-west.isc.freebs ... 556.pointyhat-west/

and clang as CC:

  http://pointyhat-west.isc.freebs ... 436.pointyhat-west/

This change is necessary (but insufficient) for the upcoming switch to
clang as CC for the tier-1 architectures.

Finally, accept FORCE_BASE_CC_FOR_TESTING as an override for USE_GCC,
for those who wish to help debug ports with clang.  It is an absolute
override; it overrides not only the value "any" but also any value such
as "4.4+".

Reviewed by:        brooks, gerald
Approved by:        maintainer (gerald)

评分

参与人数 1可用积分 +3 收起 理由
ulovko + 3 感谢分享 ^_^

查看全部评分

论坛徽章:
0
2 [报告]
发表于 2012-10-09 08:42 |只看该作者
先进CURRENT版本,大家去当小白鼠,估计会在FB-11-RELEASE才会正式发布。

论坛徽章:
0
3 [报告]
发表于 2012-10-09 08:58 |只看该作者
macafee 发表于 2012-10-09 08:42
先进CURRENT版本,大家去当小白鼠,估计会在FB-11-RELEASE才会正式发布。


11 月 4 日,i386 和 amd64 的 10-CURRENT, 9-STABLE 會"先"轉為 LLVM/Clang。未知 9.1-RELEASE 的 i386/amd64 會不會受影響。

论坛徽章:
0
4 [报告]
发表于 2012-10-09 09:01 |只看该作者
FB-9.1-RELEASE和FB-10-RELEASE应该都不会采用。

论坛徽章:
0
5 [报告]
发表于 2012-10-09 09:12 |只看该作者
本帖最后由 zeissoctopus 于 2012-10-09 09:16 编辑
macafee 发表于 2012-10-09 09:01
FB-9.1-RELEASE和FB-10-RELEASE应该都不会采用。


請理解 FreeBSD Tier 1 架構 (即 i386 和 amd64) 在 11 月 4 日 "先"轉用 Clang
其他 Tier 2 / Tier 3 架構仍是用 gcc。

如果閣下是用 i386/amd64 的 FreeBSD 10-CURRENT, 9-STABLE,這個轉變
就會在 11 月 4 日之後發生。

FreeBSD 9.1-RELEASE 不知何時出,所以不確定到時候的 i386/amd64 的 CC 會
使用 Clang/gcc (強調只涉及 i386/amd64 版本)


請看原文
For the past several years we've been working towards migrating from
GCC to Clang/LLVM as our default compiler.  We intend to ship FreeBSD
10.0 with Clang as the default compiler on i386 and amd64 platforms.  To
this end, we will make WITH_CLANG_IS_CC the default on i386 and amd64
platforms on November 4th.

What does the mean to you?

* When you build world after the default is changed /usr/bin/cc, cpp, and
   c++ will be links to clang.

* This means the initial phase of buildworld and "old style" kernel
   compilation will use clang instead of gcc.  This is known to work.

* It also means that ports will build with clang by default.  A major
   of ports work, but a significant number are broken or blocked by
   broken ports. For more information see:
     http://wiki.freebsd.org/PortsAndClang


论坛徽章:
0
6 [报告]
发表于 2012-10-09 11:19 |只看该作者
目前就算引入也仅能编译自身系统,要想让上万的PORTS也享受这玩意,同时彻底干掉GCC,能在FB-11-RELEASE实现已经是飞跃了。

论坛徽章:
89
水瓶座
日期:2014-04-01 08:53:31天蝎座
日期:2014-04-01 08:53:53天秤座
日期:2014-04-01 08:54:02射手座
日期:2014-04-01 08:54:15子鼠
日期:2014-04-01 08:55:35辰龙
日期:2014-04-01 08:56:36未羊
日期:2014-04-01 08:56:27戌狗
日期:2014-04-01 08:56:13亥猪
日期:2014-04-01 08:56:02亥猪
日期:2014-04-08 08:38:58程序设计版块每日发帖之星
日期:2016-01-05 06:20:00程序设计版块每日发帖之星
日期:2016-01-07 06:20:00
7 [报告]
发表于 2012-10-09 12:04 |只看该作者
回复 6# macafee

这个主要需要clang项目的努力。

论坛徽章:
0
8 [报告]
发表于 2012-10-09 12:37 |只看该作者
你现在就可以用。只要设置一下。

论坛徽章:
2
亥猪
日期:2014-03-19 16:36:35午马
日期:2014-11-23 23:48:46
9 [报告]
发表于 2012-10-09 17:59 |只看该作者
一些软件使用了gcc的特性造成的吧。如果替换C++可能适配起来更麻烦。

论坛徽章:
0
10 [报告]
发表于 2012-10-09 20:59 |只看该作者
gvim 发表于 2012-10-09 17:59
一些软件使用了gcc的特性造成的吧。如果替换C++可能适配起来更麻烦。

美国人制作的软件和网站,一般都遵循标准。所以兼容性就很厉害。
中国人水平差异。会用到一些特性。所以中国人做的软件,有时换个语言都运行错误。
中国的网站不兼容IE9的比比皆是。老外的网站则很少出现这种兼容问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP