TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

FreeBSD has removed GCC from its base system

287 点作者 gcoleman大约 5 年前

12 条评论

lvh大约 5 年前
Point of order: removed GCC &#x2F;from the base system&#x2F;. Ports still have a range of GCCs and some ports still depend on GCC. The GCC in base was well over a decade old, and it was that particular version for the same reason macOS shipped an ancient version of bash for a decade: it was the last one licensed under GPLv2.<p>This is effectively an administrative change. (Not to downplay the work!)
bcaa7f3a8bbc大约 5 年前
The title is highly misleading. First, it&#x27;s the ancient GCC 4.2.1 from 2007. Next, it&#x27;s removed from the FreeBSD build system, which means it&#x27;s no longer used in the internal development of FreeBSD and you can no longer build FreeBSD with GCC. Meanwhile, GCC is still maintained for userspace and the latest GCC 9 is included in the FreeBSD Port [0], you can install it on your machine for your personal use. Finally, the commit message said &quot;At this time all supported architectures either use in-tree Clang, or rely on external toolchain (i.e., a contemporary GCC version from ports)&quot;, so I assume even with GCC support removed, you can still build FreeBSD, if you insist, with an external copy of modern GCC.<p>Suggested alternative title: FreeBSD has Removed GCC from Build Infrastructure.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;freebsd&#x2F;freebsd-ports&#x2F;blob&#x2F;master&#x2F;Mk&#x2F;bsd.gcc.mk" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;freebsd&#x2F;freebsd-ports&#x2F;blob&#x2F;master&#x2F;Mk&#x2F;bsd....</a>
评论 #22475375 未加载
评论 #22474715 未加载
评论 #22474617 未加载
评论 #22477989 未加载
评论 #22475033 未加载
评论 #22477248 未加载
评论 #22474475 未加载
tyingq大约 5 年前
I don&#x27;t know the whole space well, but there are posts about FreeBSD and IBM today moving to clang.<p>Is there some tipping point where gcc has too few significant end users to stay relevant? I&#x27;d hate to lose the diversity.
评论 #22474304 未加载
评论 #22475346 未加载
评论 #22475024 未加载
评论 #22474324 未加载
评论 #22474433 未加载
评论 #22474567 未加载
评论 #22474570 未加载
评论 #22478259 未加载
评论 #22474824 未加载
评论 #22474589 未加载
ndesaulniers大约 5 年前
I removed GCC from AOSP a month ago.<p><a href="https:&#x2F;&#x2F;android-review.googlesource.com&#x2F;q&#x2F;topic:%22rm_gcc%22+(status:open%20OR%20status:merged)" rel="nofollow">https:&#x2F;&#x2F;android-review.googlesource.com&#x2F;q&#x2F;topic:%22rm_gcc%22...</a>
评论 #22479392 未加载
CalChris大约 5 年前
So FreeBSD was supporting GCC 4.2.1 but not upgrading to newer GCCs over the years. GCC is currently at 9.2.<p>Apparently the reason for this is GCC&#x27;s move to GPL v3. So FreeBSD was forced to remain using GCC 4.2.1, GPL v2.<p>As far as Clang goes, is FreeBSD tracking&#x2F;upgrading to newer Clang versions? I assume the answer is yes but I don&#x27;t know.
评论 #22476752 未加载
评论 #22477497 未加载
评论 #22479335 未加载
jhoechtl大约 5 年前
Can anybody explain the hate&#x2F;aversion towards GCC? As I see it clang used to generae more meaningful error messages thats why many people turned toward clang. But it seems those days are gone.<p>Gcc still produces better=faster machine code. So why the hate? Are there political reasons involved?
评论 #22476461 未加载
评论 #22476722 未加载
评论 #22477024 未加载
tannhaeuser大约 5 年前
Could someone explain the particular pain points of GPLv3 as it relates to use of gcc?
评论 #22476429 未加载
评论 #22474902 未加载
miguelmota大约 5 年前
FreeBSD has removed GCC from base system but GCC is still available as a port
johannkokos大约 5 年前
What about binutils? Is it removed too?
评论 #22476877 未加载
anfilt大约 5 年前
Well from my understanding FreeBSD was using an old version of GCC mainly because licensing reasons. What&#x27;s so annoying about the licensing around GCC is I see a lot cases where the code generation is still better than clang. Although clang matches GCC in most cases.
AdmiralAsshat大约 5 年前
I guess we shouldn&#x27;t be surprised. BSD has no philosophical reason to keep GCC over Clang, and if Clang is delivering better performance for them, obviously they&#x27;re gonna use it.
评论 #22474345 未加载
peter_d_sherman大约 5 年前
In the future, gcc will be remembered (fondly!) as historically significant between the time periods of simple unix-based K&amp;R C compilers of many years ago -- and Clang, of the past few recent years...