From owner-freebsd-arch@FreeBSD.ORG Wed Apr 9 16:11:03 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC4DF7DE for ; Wed, 9 Apr 2014 16:11:03 +0000 (UTC) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B235B1BF2 for ; Wed, 9 Apr 2014 16:11:02 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.7/8.14.7) with ESMTP id s39GAxPo016200; Wed, 9 Apr 2014 11:10:59 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.7/8.14.7/Submit) id s39GAx3q016199; Wed, 9 Apr 2014 11:10:59 -0500 (CDT) (envelope-from brooks) Date: Wed, 9 Apr 2014 11:10:59 -0500 From: Brooks Davis To: Warner Losh Subject: Re: Separating out building bootstrap and system compilers Message-ID: <20140409161059.GA14501@lor.one-eyed-alien.net> References: <09D78C17-A4F6-4A79-96D4-413B937265F4@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <09D78C17-A4F6-4A79-96D4-413B937265F4@bsdimp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arch X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2014 16:11:03 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 08, 2014 at 09:25:15PM -0600, Warner Losh wrote: > I?d love to be able to say >=20 > make buildworld WITHOUT_GCC=3Dt WITHOUT_CLANG=3Dt >=20 > and get a working system out of it, without compilers. Too bad I can?t ri= ght now. >=20 > Luckily, I worked up these patches. Here?s my proposed commit message. Pl= ease comment on the patch > (which can be found at http://people.freebsd.org/~imp/patch-queue/bootstr= ap) >=20 > Separate out enabling building clang and/or gcc for the system and > building clang and/or gcc as the bootstrap compiler. Normally, the > default compiler is used. WITH_CLANG_BOOTSTRAP and/or > WITH_GCC_BOOTSTRAP will enable building these compilers as part > bootstrap phase. WITH/WITHOUT_CLANG_IS_CC controls which compiler is > used by default for the bootstrap phase, as well as which compiler is > installed as cc. buildworld now successfully completes building the > cross compiler with WITHOUT_CLANG=3Dt and WITHOUT_GCC=3Dt and produces a > built system with neither of these included. >=20 > MK_CROSS_COMPILER will now force MK_CLANG_BOOTSTRAP=3Dno and > MK_GCC_BOOTSTRAP=3Dno. >=20 > BOOTSTRAP_COMPILER was considered, but rejected, since pc98 needs both > clang and gcc to bootstrap still. It should be revisisted in the > future if this requirement goes away. Values should be gcc, clang or > none. >=20 > Chances are good that MK_BINUTILS is a good candidate for similar > treatment. We likely need to fold Xxx causing things to magically not > happen into this scheme as well, but that may be a larger, more disruptive > change. >=20 > Comments? Looks good to me. Thanks for taking the next step in disentangling these variables. -- Brooks --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iKYEARECAGYFAlNFcRNfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDY1NUQ1MTlDMjZBNzgyRTcyNTI5OUJGMDVE OEU4QkU5RjIzODFBRDQACgkQXY6L6fI4GtRs/wCgooYMLB1WsRu9mE9IcG4D5p7H qrUAoI4xtag7j2wl6pR38/oYOzNG11Ki =+SWV -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X--