From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 25 13:36:58 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2ACD95C4; Mon, 25 Nov 2013 13:36:58 +0000 (UTC) Received: from mail0.glenbarber.us (mail0.glenbarber.us [IPv6:2607:fc50:1:2300:1001:1001:1001:face]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0165D29F3; Mon, 25 Nov 2013 13:36:58 +0000 (UTC) Received: from glenbarber.us (70.15.88.86.res-cmts.sewb.ptd.net [70.15.88.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by mail0.glenbarber.us (Postfix) with ESMTPSA id 1680015372; Mon, 25 Nov 2013 13:36:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 mail0.glenbarber.us 1680015372 Authentication-Results: mail0.glenbarber.us; dkim=none reason="no signature"; dkim-adsp=none Date: Mon, 25 Nov 2013 08:36:54 -0500 From: Glen Barber To: Dimitry Andric Subject: Re: Building with gcc? Message-ID: <20131125133654.GE2310@glenbarber.us> References: <20131125013122.GE1627@glenbarber.us> <65EE6ADD-78CB-4990-ABED-CCFCC4446C34@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RpqchZ26BWispMcB" Content-Disposition: inline In-Reply-To: <65EE6ADD-78CB-4990-ABED-CCFCC4446C34@FreeBSD.org> X-Operating-System: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.22 (2013-10-16) Cc: Matthew Fleming , Brooks Davis , freebsd-hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 13:36:58 -0000 --RpqchZ26BWispMcB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 25, 2013 at 01:59:03PM +0100, Dimitry Andric wrote: > On 25 Nov 2013, at 02:31, Glen Barber 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 scena= rios > >> they're different): > >>=20 > >> WITHOUT_CLANG=3DYES > >> WITH_GCC=3DYES > >> WITH_GNUCXX=3DYES > >>=20 > >> and I started a buildworld. It's currently building clang. > >>=20 > >> Why is it building clang? > >>=20 > >=20 > > You also want WITHOUT_CLANG_IS_CC=3DYES. I have no reasonable explanat= ion > > for why it is different. >=20 > WITHOUT_CLANG and WITHOUT_CLANG_IS_CC were decoupled in r256915 by brooks: >=20 > "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." >=20 > 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? >=20 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 --RpqchZ26BWispMcB Content-Type: application/pgp-signature -----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----- --RpqchZ26BWispMcB--