From owner-freebsd-arch@FreeBSD.ORG Fri Apr 11 18:37:43 2014 Return-Path: Delivered-To: freebsd-arch@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 3AFCAE47 for ; Fri, 11 Apr 2014 18:37:43 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E828E1DBA for ; Fri, 11 Apr 2014 18:37:42 +0000 (UTC) Received: from Julian-MBP3.local (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.8/8.14.8) with ESMTP id s3BIbb8Z004006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 11 Apr 2014 11:37:40 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <5348366A.1030001@freebsd.org> Date: Sat, 12 Apr 2014 02:37:30 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Warner Losh , freebsd-arch Subject: Re: Separating out building bootstrap and system compilers References: <09D78C17-A4F6-4A79-96D4-413B937265F4@bsdimp.com> In-Reply-To: <09D78C17-A4F6-4A79-96D4-413B937265F4@bsdimp.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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: Fri, 11 Apr 2014 18:37:43 -0000 On 4/9/14, 11:25 AM, Warner Losh wrote: > I’d love to be able to say > > make buildworld WITHOUT_GCC=t WITHOUT_CLANG=t > > and get a working system out of it, without compilers. Too bad I can’t right now. > > Luckily, I worked up these patches. Here’s my proposed commit message. Please comment on the patch > (which can be found at http://people.freebsd.org/~imp/patch-queue/bootstrap) > > 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=t and WITHOUT_GCC=t and produces a > built system with neither of these included. > > MK_CROSS_COMPILER will now force MK_CLANG_BOOTSTRAP=no and > MK_GCC_BOOTSTRAP=no. > > 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. > > 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. > > Comments? for added credit add a top level arg that builds and installs all the bootstrap stuff (includes, libs, compilers, other tools) in a given destination.. I happen to need this. (ok, not need but it would be nice) at $JOB. Do it by hand at the moment. > > Warner > > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" > >