From owner-freebsd-toolchain@FreeBSD.ORG Thu Aug 4 15:20:14 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86B5A1065673; Thu, 4 Aug 2011 15:20:14 +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 448D18FC17; Thu, 4 Aug 2011 15:20:14 +0000 (UTC) Received: from [10.0.0.63] (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p74FDej5005540 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Thu, 4 Aug 2011 09:13:42 -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: <4E3A70BB.4020503@FreeBSD.org> Date: Thu, 4 Aug 2011 09:13:22 -0600 Content-Transfer-Encoding: 7bit Message-Id: <5D36ABDF-49AF-48E1-98AF-E37AEFAE2737@bsdimp.com> References: <4E3A70BB.4020503@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, 04 Aug 2011 09:13:42 -0600 (MDT) Cc: freebsd-toolchain@freebsd.org Subject: Re: [help] rebuild libc failed X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 15:20:14 -0000 On Aug 4, 2011, at 4:13 AM, Dimitry Andric wrote: > On 2011-08-04 10:38, majia gm wrote: >> I'm building the libc code which derived from a current trunk >> mirror/freebsd/head under PCBSD 8.2 which contains FreeBSD 8.2 >> release. >> I'm trying to test the modified libc by using LD_LIBRARY_PATH. But >> failed to build it. >> I change the current direcotry into head/lib/libc and run make. > > You cannot always do this, especially not when going from 8.2 to head, > because you need to build a toolchain first, which includes updated > headers and other components. > > It's probably best to just run "make buildworld", which will take care > of everything. Otherwise, run "make toolchain" first, followed by "make > buildenv". In that build environment, you can just change to the > lib/libc directory and run make. > > NOTE: Do *not* install the updated libc if you are running an old > kernel, or you will most likely hose your system. make buildworld to set things up then you can rebuild just libc by make buildenv cd lib/libc make Warner