From owner-freebsd-toolchain@FreeBSD.ORG Thu Aug 4 09:04:12 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 8B2D4106564A for ; Thu, 4 Aug 2011 09:04:12 +0000 (UTC) (envelope-from gmmajia@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 272028FC12 for ; Thu, 4 Aug 2011 09:04:11 +0000 (UTC) Received: by fxe4 with SMTP id 4so2495339fxe.13 for ; Thu, 04 Aug 2011 02:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=87mdi2q/n/6gLWO0xbLqlXr2jLcBNbeynSPTMdIFOqc=; b=ir+I1/CkmWn+WYqd7to1sR6n9ia3bcud8H+rKJR8WHAZNzVch8yrpJkzkiNvMZbZm4 OtiWZ97InlsVFs5Fd8JrupwLEsPB86VEeOQTLR5nxasZW/hvBB96NET2az+ga1tPWDGA lSiQ0eIuxUDrZtNcjQelOX2CXxj0aKjT26Jdc= MIME-Version: 1.0 Received: by 10.204.14.139 with SMTP id g11mr165714bka.274.1312447135976; Thu, 04 Aug 2011 01:38:55 -0700 (PDT) Received: by 10.204.38.142 with HTTP; Thu, 4 Aug 2011 01:38:55 -0700 (PDT) Date: Thu, 4 Aug 2011 16:38:55 +0800 Message-ID: From: majia gm To: freebsd-toolchain@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [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 09:04:12 -0000 Hi, everyone. 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. I get the following error. Warning: Object directory not changed from original /usr/home/forandom/work/soc2011/xxp-head/lib/libc cc -O2 -pipe -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/include -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../include -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/i386 -DNLS -D__DBINTERFACE_PRIVATE -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../contrib/tzcode/stdtime -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/stdtime -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c: In function '__getosreldate': /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58: error: 'AT_OSRELDATE' undeclared (first use in this function) /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58: error: (Each undeclared identifier is reported only once /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58: error: for each function it appears in.) *** Error code 1 Stop in /usr/home/forandom/work/soc2011/xxp-head/lib/libc. It seems there's little difference between head and this release. AT_OSRELDATE is defined in head/sys/i386/include/elf.h. But in the release 8.2, elf.h doesn't have this definition. How can let it to use the include files in head rather than the system include files? Thanks. 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. From owner-freebsd-toolchain@FreeBSD.ORG Thu Aug 4 15:09:59 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 79D3E106564A for ; Thu, 4 Aug 2011 15:09:59 +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 1818D8FC13 for ; Thu, 4 Aug 2011 15:09:59 +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 p74F85WY005444 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Thu, 4 Aug 2011 09:08:10 -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: Date: Thu, 4 Aug 2011 09:07:50 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: majia gm 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:08:10 -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:09:59 -0000 You need to use buildworld or one of its sub-targets. Warner On Aug 4, 2011, at 2:38 AM, majia gm wrote: > Hi, everyone. >=20 > 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. I get > the following error. >=20 > Warning: Object directory not changed from original > /usr/home/forandom/work/soc2011/xxp-head/lib/libc > cc -O2 -pipe = -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/include > -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../include > -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/i386 -DNLS > -D__DBINTERFACE_PRIVATE > = -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../contrib/gdtoa > -DINET6 -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc > -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/resolv > -D_ACL_PRIVATE -DPOSIX_MISTAKE > = -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../contrib/tzcode/s= tdtime > -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/stdtime > -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/locale > -DBROKEN_DES -DPORTMAP -DDES_BUILTIN > -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/rpc -DYP > -DNS_CACHING -DSYMBOL_VERSIONING -std=3Dgnu99 -fstack-protector > -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized > -Wno-pointer-sign -c > /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c > = /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c: > In function '__getosreldate': > = /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58:= > error: 'AT_OSRELDATE' undeclared (first use in this function) > = /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58:= > error: (Each undeclared identifier is reported only once > = /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58:= > error: for each function it appears in.) > *** Error code 1 > Stop in /usr/home/forandom/work/soc2011/xxp-head/lib/libc. >=20 > It seems there's little difference between head and this release. > AT_OSRELDATE is defined in head/sys/i386/include/elf.h. But in the > release 8.2, elf.h doesn't have this definition. > How can let it to use the include files in head rather than the system > include files? >=20 > Thanks. > _______________________________________________ > freebsd-toolchain@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain > To unsubscribe, send any mail to = "freebsd-toolchain-unsubscribe@freebsd.org" >=20 >=20 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