From owner-freebsd-current@FreeBSD.ORG Tue Jun 10 16:06:03 2014 Return-Path: Delivered-To: current@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 49E827CD for ; Tue, 10 Jun 2014 16:06:03 +0000 (UTC) Received: from aussmtpmrkps320.us.dell.com (aussmtpmrkps320.us.dell.com [143.166.224.254]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "ausxipmktps31.us.dell.com", Issuer "Dell Inc. Enterprise Issuing CA1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E636E25D4 for ; Tue, 10 Jun 2014 16:06:01 +0000 (UTC) X-Loopcount0: from 64.238.244.148 X-IronPort-AV: E=Sophos;i="4.98,1009,1392184800"; d="scan'208,217";a="141704320" Message-ID: <53972CE1.8040205@vangyzen.net> Date: Tue, 10 Jun 2014 11:05:53 -0500 From: Eric van Gyzen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Luigi Rizzo , Subject: Re: how to i get both clang and gcc4.2.1 in buildworld ? References: <20140610160425.GA60259@onelab2.iet.unipi.it> In-Reply-To: <20140610160425.GA60259@onelab2.iet.unipi.it> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2014 16:06:03 -0000 On 06/10/2014 11:04, Luigi Rizzo wrote: > As the subject says... > i upgraded to stable/10 without special options, clang is the > default compiler but the gcc4.2.1 whose sources are in the tree > is not compiled. > > Is there any way to get both gcc and clang compiled during a buildworld ? > Or any port that brings in the gcc 4.2.1 (and not one of the more > modern ones ?) > > For those curious, the reason i am asking is the following, > and it might well be unrelated to gcc: > > i used to build picobsd with gcc, and part of picobsd's boostrap > is a "make toolchain". When i hosted this on stable/9 with gcc > i could cross build picobsd using basically any source tree. > > Now, however, hosting the build on stable/10 with clang, > the "make toolchain" on a stable/9 tree fails and i need to > do a full "make buildworld" to bootstrap. > > I don't know what fails exactly, but i see a ton of warnings > and possibly errors in the 'make toolchain' phase that i > thought might be due to a compiler/source mismatch. > Maybe not. In any case, I'd still like to have gcc. $ cat /etc/src.conf WITH_GCC=yes WITH_GNUCXX=yes Eric