From owner-freebsd-toolchain@FreeBSD.ORG Thu Aug 4 10:13:15 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 ED8FA106566C for ; Thu, 4 Aug 2011 10:13:15 +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 B1C4C8FC08 for ; Thu, 4 Aug 2011 10:13:15 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:c16a:57d6:49b1:e445] (unknown [IPv6:2001:7b8:3a7:0:c16a:57d6:49b1:e445]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id CF7345C37; Thu, 4 Aug 2011 12:13:14 +0200 (CEST) Message-ID: <4E3A70BB.4020503@FreeBSD.org> Date: Thu, 04 Aug 2011 12:13:15 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: majia gm References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 10:13:16 -0000 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.