Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2013 08:36:54 -0500
From:      Glen Barber <gjb@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Matthew Fleming <mdf@FreeBSD.org>, Brooks Davis <brooks@FreeBSD.org>, freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Building with gcc?
Message-ID:  <20131125133654.GE2310@glenbarber.us>
In-Reply-To: <65EE6ADD-78CB-4990-ABED-CCFCC4446C34@FreeBSD.org>
References:  <CAMBSHm-k%2B6md05aEJXLnGbbyg-WScseqLfjrpRutC4TFk7ir5Q@mail.gmail.com> <20131125013122.GE1627@glenbarber.us> <65EE6ADD-78CB-4990-ABED-CCFCC4446C34@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Mon, Nov 25, 2013 at 01:59:03PM +0100, Dimitry Andric wrote:
> On 25 Nov 2013, at 02:31, Glen Barber <gjb@freebsd.org> wrote:
> > On Sun, Nov 24, 2013 at 05:28:05PM -0800, Matthew Fleming wrote:
> >> I'm trying to test a change to gcc, and I'd like to do a full
> >> buildworld/buildkernel using the gcc compiler.  So I added this to my
> >> /etc/src.conf (and make.conf, since I can't remember under which scenarios
> >> they're different):
> >> 
> >> WITHOUT_CLANG=YES
> >> WITH_GCC=YES
> >> WITH_GNUCXX=YES
> >> 
> >> and I started a buildworld.  It's currently building clang.
> >> 
> >> Why is it building clang?
> >> 
> > 
> > You also want WITHOUT_CLANG_IS_CC=YES.  I have no reasonable explanation
> > for why it is different.
> 
> WITHOUT_CLANG and WITHOUT_CLANG_IS_CC were decoupled in r256915 by brooks:
> 
> "Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC.  This allows
> bootstrapping a copy of clang without building clang for the base system
> which is useful for nanobsd and similar setups.  It's still probably
> wrong to conflate what is installed as /usr/bin/cc with the selection
> of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another
> day."
> 
> I would still say that WITHOUT_CLANG implies that you cannot have clang
> as cc, so maybe it would be better to error out in this case?
> 

Yes, that is what I meant by not having a reasonable explanation why.
If WITHOUT_CLANG is set, WITHOUT_CLANG_IS_CC should (as it was before)
be implied.

Glen


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBCAAGBQJSk1J2AAoJELls3eqvi17Qi2UP/36esaOAq1yflWTcR6vndMCk
nJkJBZMFuw6kPEfYVJ919JfBhy3jWa2LhNlck46sjsa1CZzGMiSENvs2F3nj2Qyq
XtAOPS/HLhwJV6YjtaZ0J8jLR2X1QP73Q9ddN5UqBu+UB6oHy5RBWB0fYs/j1RRq
GLn/c+u5MlCmhjPGaOaub6UuQ8bV1p3xBECOkPPO+ydbJ6aK9O04V7dhkaH7NvRN
eulVacT4N8jj8H9G8Fx1jz4WG5tZ4fFvFZET+/HfPRo/D4I0FCMABaaTbliMuIQ1
LK2+hD2nMBNtQPQKWbl4YWs88hQst+ry+M/WyHHqZHwk8/mXJUcIRKlG4/ahLeiD
PVXsIBRUIWl0NNVBnw4yRgw20mHX60xnZVIvIdG+9xKQ6XE7svqvTEe+pfbtvWft
ET3ZAfntCosFrXTJvzngyh5qToT3zosXlh7aCvxv1Zl4ChDT3SCngmYjOEapmyBX
7RpftYbOzyXDJPXFgbSxCjQaOB7BOXTYHx4ng2qBLtcXEaAkaN6P7WhKLt5EKhjm
nZcSBFd3/5zMrEcTgV98ORkMAH9WQUKwTxx1ZIjofktNgqOXtL6XeHn5vrKaOyTY
YuLkb3BMT3grt46qvrlLVv0sctCDHOFvzgIDHk2eYgEsA1W4BG3J3+XPI/dmTjU8
Sa95OhHEiIKmDfd95vbq
=weGh
-----END PGP SIGNATURE-----
help

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