From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 25 12:59:08 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 7F641854; Mon, 25 Nov 2013 12:59:08 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 420FB277E; Mon, 25 Nov 2013 12:59:08 +0000 (UTC) Received: from [192.168.2.2] (unknown [77.243.161.229]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 224075C43; Mon, 25 Nov 2013 13:59:03 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_97856E56-D5E1-4275-A25C-4BC90D51E1EA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: Building with gcc? From: Dimitry Andric In-Reply-To: <20131125013122.GE1627@glenbarber.us> Date: Mon, 25 Nov 2013 13:59:03 +0100 Message-Id: <65EE6ADD-78CB-4990-ABED-CCFCC4446C34@FreeBSD.org> References: <20131125013122.GE1627@glenbarber.us> To: Glen Barber X-Mailer: Apple Mail (2.1822) 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 12:59:08 -0000 --Apple-Mail=_97856E56-D5E1-4275-A25C-4BC90D51E1EA Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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 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? -Dimitry --Apple-Mail=_97856E56-D5E1-4275-A25C-4BC90D51E1EA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlKTSZcACgkQsF6jCi4glqNi3ACffg6SxeSeB2VRb19U3xRNYY6g l3kAoM2hyRg2I8WKpmdxzudYiHkIIU1e =1QIn -----END PGP SIGNATURE----- --Apple-Mail=_97856E56-D5E1-4275-A25C-4BC90D51E1EA--