From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 30 15:45:44 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A97110656A9; Wed, 30 Mar 2011 15:45:44 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2D7E08FC17; Wed, 30 Mar 2011 15:45:44 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:b89e:221f:6736:25e3] (unknown [IPv6:2001:7b8:3a7:0:b89e:221f:6736:25e3]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7E19A5C59; Wed, 30 Mar 2011 17:45:43 +0200 (CEST) Message-ID: <4D935026.7010105@FreeBSD.org> Date: Wed, 30 Mar 2011 17:45:42 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16pre) Gecko/20110319 Lanikai/3.1.10pre MIME-Version: 1.0 To: Nathan Whitehorn References: <4D934AF4.9080503@FreeBSD.org> <4D934BB7.9080201@freebsd.org> In-Reply-To: <4D934BB7.9080201@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Include file search path X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 15:45:44 -0000 On 2011-03-30 17:26, Nathan Whitehorn wrote: ... >> During the bootstrap stage, a copy of gcc (or clang) is built, that has >> all default search paths for headers, libraries, etc, set relative to >> ${WORLDTMP}, usually /usr/obj/usr/src/tmp. ... > Since you need to build two compilers anyway (one for the current > system, to build the new one, and one to live in the new one, linked > against new libraries), I don't see that it's such a nasty hack. The building itself is not a problem, of course, and it is even required if you want to update anything in the toolchain itself. However, we have added some custom #ifdef FREEBSD_NATIVE parts to support this feature, so you cannot use stock gcc source to build such a temporary compiler. This can be problematic if we ever want to be able to use toolchains outside of the source tree.