From owner-freebsd-toolchain@FreeBSD.ORG Sun Aug 7 14:38:53 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 712181065679 for ; Sun, 7 Aug 2011 14:38:53 +0000 (UTC) (envelope-from gmmajia@gmail.com) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id 0C0FD8FC13 for ; Sun, 7 Aug 2011 14:38:52 +0000 (UTC) Received: by eye4 with SMTP id 4so2434349eye.31 for ; Sun, 07 Aug 2011 07:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PsRRdR1+zcDeGeQQbLWARXxPKTdVQBusz1zduReaUxA=; b=vJwcV/MJKosCilAIrIZFdszEeSq9bcJU30FOybGGqoVpcHuNHeQxv8rPv96uy/MFYB hw+VhqfuGm1xjmcUConkSla/IgVz9IGWoM15YGkkNnQZXLXaNfRYZb8E/FF9aVWiraTu +tNKOMxntEgqAt+chf1GxEsR4IKh0KW+Rs4MI= MIME-Version: 1.0 Received: by 10.14.14.35 with SMTP id c35mr1144421eec.228.1312727931764; Sun, 07 Aug 2011 07:38:51 -0700 (PDT) Received: by 10.14.188.139 with HTTP; Sun, 7 Aug 2011 07:38:51 -0700 (PDT) In-Reply-To: <4E3A70BB.4020503@FreeBSD.org> References: <4E3A70BB.4020503@FreeBSD.org> Date: Sun, 7 Aug 2011 22:38:51 +0800 Message-ID: From: majia gm To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Sun, 07 Aug 2011 14:38:53 -0000 2011/8/4 Dimitry Andric : > 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. =A0Otherwise, run "make toolchain" first, followed by "mak= e > buildenv". =A0In 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. > Thanks guys. "make toolchain" works for me.