From owner-freebsd-arch@FreeBSD.ORG Fri Apr 11 20:27:36 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 EB052E6C for ; Fri, 11 Apr 2014 20:27:35 +0000 (UTC) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B48961985 for ; Fri, 11 Apr 2014 20:27:35 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id h18so1279738igc.14 for ; Fri, 11 Apr 2014 13:27:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=gk2yfztPbnzn9EXHgW8xIpYvVn2/BcCxtrL4Z4C80TA=; b=OU3ejdEsdvaQdPWHxd6Wmgc0d2rhTMYRjaPsjQBiW+9ZVb+uQjevlXNGDTJ/3e76pO HnyWRbuwYVypmenb3d7ABoa7WgXFQhszuASGv+ONAZOyxOLo4ZBePVH6xt+wMN/E/+Pv nI/i1YADP4O4yDaJAJvTLaKDNFGGlZEtmOXTs4DNMBdlXw2DMd7W/jK8L8uLZuH8kXwq wiq+9om6wqWKGpA1oqooZ2eVu6RHVrqLrXTf99BqJYPqVnQ1x9OAIRL4LmL5nDWUQq6K GSnQyZVgbeVbbHBgLxl5tM6MtrPHUgt1OcPuBnPvivx8/UnCBRRVbxSWST+KrwH+bO9v a+/g== X-Gm-Message-State: ALoCoQl+n91PHO+TvdFOrNMHpSFRz72azQiXba5puNfP4aAhK/Lw3RjkvoL2T7GkUmM7Ev6oyszV X-Received: by 10.50.143.34 with SMTP id sb2mr5974561igb.48.1397246528705; Fri, 11 Apr 2014 13:02:08 -0700 (PDT) Received: from [192.168.43.111] ([172.56.9.126]) by mx.google.com with ESMTPSA id j9sm7991000igu.10.2014.04.11.13.02.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 13:02:08 -0700 (PDT) Sender: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Separating out building bootstrap and system compilers From: Warner Losh In-Reply-To: <5348366A.1030001@freebsd.org> Date: Fri, 11 Apr 2014 14:02:06 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <09D78C17-A4F6-4A79-96D4-413B937265F4@bsdimp.com> <5348366A.1030001@freebsd.org> To: Julian Elischer X-Mailer: Apple Mail (2.1874) 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: Fri, 11 Apr 2014 20:27:36 -0000 On Apr 11, 2014, at 12:37 PM, Julian Elischer = wrote: > On 4/9/14, 11:25 AM, Warner Losh wrote: >> I=92d 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=92t right now. >>=20 >> Luckily, I worked up these patches. Here=92s my proposed commit = message. Please comment on the patch >> (which can be found at = http://people.freebsd.org/~imp/patch-queue/bootstrap) >>=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? >=20 > 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. How does make xdev not fit your needs? Warner >>=20 >> Warner >>=20 >> _______________________________________________ >> 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"