From owner-freebsd-current@FreeBSD.ORG Tue Aug 17 14:29:01 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFFB61065673 for ; Tue, 17 Aug 2010 14:29:01 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 82D328FC2D for ; Tue, 17 Aug 2010 14:29:01 +0000 (UTC) Received: by vws7 with SMTP id 7so5527626vws.13 for ; Tue, 17 Aug 2010 07:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Qbva9HeXdktDBaLDmljRmILCQFG6bQim2quOg1bOyoQ=; b=vRC18Llrr/Y6uBQ5m8LKWCcwxdSl7Ox7uhPf12Htge02V5feyPamBBaPlUE3M66gpT LiIS9WhxisRQxZ4WqcMToHdb/7C5A0RxxBhU+riXTwl/nnuuvKpMrF8ApJkFMCX7+jtK zN+n9e1FwSoKuubqzEKek+a2LhHzWS6dOLK7A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KoxeYwi0mldJhAbdWzVsKNf3vDC/bZ7SfH/jAP2AoZqo++2iI4qG1CWfCX2AsOj9UZ OwHQ/fXwdsQ45qgCNl6S7RWRQs+Cc+CkVi8p+ZdHA8pwjiVowOVrI1eTmmnuJ6Er096W JlEXv2J0VlksV6ObqZ6OX8EBohVU+t8Kzlk44= MIME-Version: 1.0 Received: by 10.220.99.21 with SMTP id s21mr4044472vcn.222.1282055340308; Tue, 17 Aug 2010 07:29:00 -0700 (PDT) Received: by 10.220.193.132 with HTTP; Tue, 17 Aug 2010 07:28:59 -0700 (PDT) In-Reply-To: <4C6A92E0.4050104@andric.com> References: <4C6A7357.8000606@andric.com> <19F5467B-6432-4531-BF04-62D8EB4F3093@gid.co.uk> <4C6A92E0.4050104@andric.com> Date: Tue, 17 Aug 2010 16:28:59 +0200 Message-ID: From: Daniel Nebdal To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: Building world with clang X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Aug 2010 14:29:02 -0000 On Tue, Aug 17, 2010 at 3:47 PM, Dimitry Andric wrote: > On 2010-08-17 15:03, Daniel Nebdal wrote: >>>> However, a disadvantage is that the built-in search paths of the >>>> bootstrap compiler are not entirely disabled by using the -isysroot, -= B >>>> and -L flags, > ... >> For clarification, did you (Dimitry, that is) mean >> a) The paths are still there so they could resurface if some Makefile >> doesn't specify those flags , or >> b) they sometimes come into play even when using the appropriate flags? > > Any sub-makefiles would not have to specify those flags explicitly, > since they were added to ${CC} and ${CXX}. > > But what I meant is that even if you specify those flags, the compiler > still searches for headers and libraries in the base system. =A0So if som= e > header is removed from /usr/src, for example, but is still available in > /usr/include, it can be erroneously picked up during buildworld. > Mmh, I just read through the in-detail description you gave in another mail. It's a bit surprising that there isn't a simple and reliable way to disable/replace all hardcoded paths, but I guess it doesn't come up that often. As a third possibility, hacking a real -drop-all-builtin-paths flag into the local copies of both compilers could work (essentially being a cleanup of your alternative 1), though there's still the issues with -B. All in all, I agree that your alternative 2 sounds better. --=20 Daniel Nebdal