Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2012 13:51:12 +0200
From:      Joe Gain <joe.gain@gmail.com>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        Thomas Mueller <mueller230@insightbb.com>, David Naylor <naylor.b.david@gmail.com>, Volodymyr Kostyrko <c.kworr@gmail.com>, Matthew Seaman <matthew@freebsd.org>, freebsd-questions@freebsd.org
Subject:   Re: Why Clang?
Message-ID:  <CAO6-GAeYDdcc9apr0Ky8rQQAakgTqybqipCTOm8Fv7Q4vuEFbg@mail.gmail.com>
In-Reply-To: <20448.26026.963013.57533@jerusalem.litteratus.org>
References:  <14.FA.06229.7A140EF4@smtp01.insight.synacor.com> <20448.26026.963013.57533@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 19, 2012 at 1:42 PM, Robert Huff <roberthuff@rcn.com> wrote:
>
> Thomas Mueller writes:
>
>> =A0Now how will I know whether GCC or Clang is the default compiler
>> =A0for building the world and kernel, and for ports?
>
> =A0 =A0 =A0 =A0My understanding is:
>
> =A0 =A0 =A0 =A08.*
> =A0 =A0 =A0 =A0base - gcc
> =A0 =A0 =A0 =A0ports - gcc
>
> =A0 =A0 =A0 =A09.0 (and possibly 9.*)
> =A0 =A0 =A0 =A0base - gcc
> =A0 =A0 =A0 =A0ports - clang (with the caveat some ports need either any =
gcc
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0or a speci=
fic version)
>

I can't confirm this other than to say, that I compile stable 9 base
(kernel + world) using clang
and ports using gcc. I have to compile base using WERROR=3D and
NO_WERROR=3D settings
in make.conf so that the compilation doesn't halt on error messages.
Maybe this is no
longer required.

This is as per wiki, though admittedly, as per wiki a couple of months ago.

I can imagine that the problem will be compiling ports with clang.
Some of the gcc code is not
correct as per specification. There's a list somewhere of currently
compilable ports using clang.


> =A0 =A0 =A0 =A0CURRENT
> =A0 =A0 =A0 =A0base - as of this writing, clang (look for announcement in
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0current@ o=
r hackers@)
> =A0 =A0 =A0 =A0ports - clang, as above though with a shorter list
>
> =A0 =A0 =A0 =A0(Someone please correct me if they have more accurate
> information.)
>
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0Robert Huff
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"



--=20
joe gain

jacob-burckhardt-str. 16
78464 konstanz
germany

+49 (0)7531 60389

(...otherwise in ???)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO6-GAeYDdcc9apr0Ky8rQQAakgTqybqipCTOm8Fv7Q4vuEFbg>