From owner-freebsd-current@FreeBSD.ORG Thu Jul 21 07:29:15 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 0EF7A106566B for ; Thu, 21 Jul 2011 07:29:15 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id E938D8FC08 for ; Thu, 21 Jul 2011 07:29:14 +0000 (UTC) Received: from delta.delphij.net (c-76-102-50-245.hsd1.ca.comcast.net [76.102.50.245]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id B965296D5; Thu, 21 Jul 2011 00:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1311233354; bh=FVI5gxFKp30JmpKiPGhAuIG78d+ED1vZJOVH/MqvC7A=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ps992OiJ05E+6qroh7tLVEqvnq9YY3X8vmhARuEVjeO9xP32sBUEHs0XfyZOlneQd 4xHFmXIfNqD5pWvjbVJ63S1IMldU8Fps4hl8f+vHNxDfpsnFgKLTqHnQHVCwZLHS7d xp2Lv2nvIma4Iivl8utvAKCagufKxtoZuqnAsyF8= Message-ID: <4E27D54A.6090506@delphij.net> Date: Thu, 21 Jul 2011 00:29:14 -0700 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <20110721070825.GA80840@freebsd.org> <4E27D281.6010507@delphij.net> <20110721072636.GA85496@freebsd.org> In-Reply-To: <20110721072636.GA85496@freebsd.org> OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: buildworld failing in lib/libc/db/btree X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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 07:29:15 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 07/21/11 00:26, Alexander Best wrote: > On Thu Jul 21 11, Xin LI wrote: On 07/21/11 00:08, Alexander Best > wrote: >>>> hi there, >>>> >>>> for some reason buildworld always fails in lib/libc/db/btree >>>> :( >>>> >>>> clang: >>>> >>>> /usr/bin/clang -O2 -pipe -fno-strict-aliasing >>>> -fno-omit-frame-pointer -march=core2 >>>> -I/usr/git-freebsd-head/lib/libc/include >>>> -I/usr/git-freebsd-head/lib/libc/../../include >>>> -I/usr/git-freebsd-head/lib/libc/amd64 -DNLS >>>> -D__DBINTERFACE_PRIVATE -I/usr/git-freebsd-head/lib/libc/. >>>> /usr/git-freebsd-head/lib/libc/db/btree/bt_split.c:486:2: >>>> warning: implicit declaration of function '__PAST_END' is >>>> invalid in C99 [-Wimplicit-function-declaration] >>>> __PAST_END(h->linp, 1) = h->upper -= NRINTERNAL; > > This is quite weird, __PAST_END is defined in sys/param.h... > > And it compiled just fine here, what's your hosting system? > >> amd64. param.h might be the problem: > >> otaku% grep PAST_END /usr/git-freebsd-head/sys/sys/param.h #define >> __PAST_END(array, offset) (((typeof(*(array)) *)(array))[offset]) >> otaku% grep PAST_END /usr/include/sys/param.h > >> ...maybe copying /usr/git-freebsd-head/sys/sys/param.h to >> /usr/include/sys manually will solve the issue? Likely, but, sys/param.h is MI, and, if you're buildworld'ing from an older world from a cleaned checkout source, it sounds like a bug to me... Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBCAAGBQJOJ9VJAAoJEATO+BI/yjfB1MMH/RwsPaRQ0bi6PEbZXv67DcjQ wbAxgKrgFUdSYWuLy5IRgc99aAKmiQ3g4C3AVDHNRpe1/2g3oO5rvAVCTAVCaN5L Ndk0FaHVRC498OjJfvEqqWnXMOxV8XmPlOuMoECK0J9TpXtpIP4laZHpvjmSf/7j m6kCxEwQE0gO47F2tWj3Rf1NbOee9o9BTy8Q8rSw0hooH0VeMUGrfFQLxVIb/0GO 0rwCyjFcegLWL7xefya2a91fP7pYVuvqX/sgUqwjuvwspHoZWTBeT75X+DlwaIYV yuFjaZj5EjtR6mdGkdEq0IHlG3HbtgLnDqsICNk57nTNvrPctA6wOMueA/zhHB8= =6MJ8 -----END PGP SIGNATURE-----