From owner-svn-src-head@FreeBSD.ORG Thu Apr 7 21:58:30 2011 Return-Path: Delivered-To: svn-src-head@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58A3910656D8; Thu, 7 Apr 2011 21:58:30 +0000 (UTC) (envelope-from uqs@FreeBSD.ORG) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by mx1.freebsd.org (Postfix) with ESMTP id E1E6C8FC1C; Thu, 7 Apr 2011 21:58:29 +0000 (UTC) Received: from localhost (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by acme.spoerlein.net (8.14.4/8.14.4) with ESMTP id p37LwMrr034912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Apr 2011 23:58:22 +0200 (CEST) (envelope-from uqs@FreeBSD.ORG) Date: Thu, 7 Apr 2011 23:58:21 +0200 From: Ulrich Spoerlein To: Alexander Best Message-ID: <20110407215821.GW85668@acme.spoerlein.net> Mail-Followup-To: Ulrich Spoerlein , Alexander Best , Warner Losh , Juli Mallett , svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG References: <201104062008.p36K8NR0015687@svn.freebsd.org> <20110406210416.GA62173@freebsd.org> <20110406214133.GA66860@freebsd.org> <20110407073114.GA15050@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110407073114.GA15050@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Juli Mallett , svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG, Warner Losh Subject: Re: svn commit: r220401 - in head: . share/mk tools/build/mk tools/build/options X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2011 21:58:30 -0000 On Thu, 07.04.2011 at 07:31:14 +0000, Alexander Best wrote: > On Wed Apr 6 11, Warner Losh wrote: > > On Apr 6, 2011, at 3:41 PM, Alexander Best wrote: > > > On Wed Apr 6 11, Juli Mallett wrote: > > >> On Wed, Apr 6, 2011 at 14:04, Alexander Best wrote: > > >>> On Wed Apr 6 11, Ulrich Spoerlein wrote: > > >>>> Author: uqs > > >>>> Date: Wed Apr 6 20:08:23 2011 > > >>>> New Revision: 220401 > > >>>> URL: http://svn.freebsd.org/changeset/base/220401 > > >>>> > > >>>> Log: > > >>>> Complete WITHOUT_CXX support. It implies WITHOUT_GROFF and > > >>>> WITHOUT_CLANG. > > >>> > > >>> is there no way to build clang/llvm without CXX support? > > >> > > >> Clang and LLVM are written in C++. Even if their support for > > >> compiling C++ could be disabled, you'd still need a C++ cross-compiler > > >> to build them, which ought to be disabled by WITHOUT_CXX, right? > > > > > > good point. is it even possible to build a world *with* C++ support, if the > > > installed world *doesn't* have C++ support? is the C++ part of gcc written in > > > C? if that's the case it's possible. > > > > Yes. We don't need c++ to bootstrap g++ or anything else in the base system. Once we build the compilers, we can build the c++ that's in the tree. While technically true, that c++ (the binary) is not needed, our g++ requires gperf(1) to build, which is written in C++. So we need gperf + C compiler to bootstrap. How the gperf binary comes into existence on the host system is someone else's problem :) > however that means that FreeBSD can never get rid of gcc. so clang can never > become the main and only base compiler. Not quite true, right now the host system (whatever that is) needs a working C compiler plus a whole lot of other stuff. With clang the host system needs a C++ compiler + lots of other stuff. I haven't tested any other compilers, but gcc and/or clang might also build with the Sun compilers, for example. Cheers, Uli