From owner-freebsd-current@FreeBSD.ORG Tue Jun 10 16:01:25 2014 Return-Path: Delivered-To: current@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 1BDBF2C0 for ; Tue, 10 Jun 2014 16:01:25 +0000 (UTC) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id D473D2580 for ; Tue, 10 Jun 2014 16:01:23 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id AB3857300A; Tue, 10 Jun 2014 18:04:25 +0200 (CEST) Date: Tue, 10 Jun 2014 18:04:25 +0200 From: Luigi Rizzo To: current@freebsd.org Subject: how to i get both clang and gcc4.2.1 in buildworld ? Message-ID: <20140610160425.GA60259@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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:01:25 -0000 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. cheers luigi