From owner-freebsd-current@FreeBSD.ORG Thu Jul 21 17:28:39 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E752A106566B; Thu, 21 Jul 2011 17:28:39 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A2CC38FC08; Thu, 21 Jul 2011 17:28:39 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p6LHMS3S029739 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Thu, 21 Jul 2011 11:22:31 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <4E2831CD.6040800@FreeBSD.org> Date: Thu, 21 Jul 2011 11:22:08 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <96FD57E5-947D-41F6-B529-E06855A395EC@bsdimp.com> References: <20110721070825.GA80840@freebsd.org> <4E27EEF6.6060401@FreeBSD.org> <20110721134508.GA39498@freebsd.org> <4E2831CD.6040800@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Thu, 21 Jul 2011 11:22:31 -0600 (MDT) Cc: Alexander Best , freebsd-current@FreeBSD.ORG Subject: Re: buildworld failing in lib/libc/db/btree 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: Thu, 21 Jul 2011 17:28:40 -0000 On Jul 21, 2011, at 8:03 AM, Dimitry Andric wrote: > On 2011-07-21 15:45, Alexander Best wrote: > ... >>> If you are including any path, e.g. CC=3D/usr/bin/clang, buildworld = will >>> not work. Remove the path and try again. >>=20 >> THANKS! >>=20 >> ...exactly that was the problem. :) after changing CC/CXX so it = doesn't contain >> a full path, buildworld succeeded! >=20 > The problem here was that buildworld builds a bootstrap compiler under > /usr/obj, but if you specify ${CC} with an absolute path, it fails to > use it! (The bootstrap compiler has its search paths adjusted, so it > only looks under /usr/obj for include files, libraries and so on.) >=20 > This is actually a problem that needs solving, but it won't happen for > 9.0, unfortunately... Yes. And we can't solve it by banning all CC settings with / in them, = since it is perfectly legitimate to build the whole tree with a = different compiler that lives outside the tree... Warner