From owner-freebsd-current@FreeBSD.ORG Mon May 28 19:45:18 2012 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 51C1A1065670 for ; Mon, 28 May 2012 19:45:18 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 070E68FC17 for ; Mon, 28 May 2012 19:45:18 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:4c1c:92fb:538c:83ed] (unknown [IPv6:2001:7b8:3a7:0:4c1c:92fb:538c:83ed]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A5DB15C59; Mon, 28 May 2012 21:45:16 +0200 (CEST) Message-ID: <4FC3D5C9.5090807@FreeBSD.org> Date: Mon, 28 May 2012 21:45:13 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120522 Thunderbird/13.0 MIME-Version: 1.0 To: Sevan / Venture37 References: <4FBE6C22.6080109@gmail.com> <4FBE8A4D.9000607@FreeBSD.org> <4FBE9EFA.5050906@gmail.com> In-Reply-To: <4FBE9EFA.5050906@gmail.com> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Kernel builds failing with lots of "failed to retrieve array bounds" errors X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2012 19:45:18 -0000 On 2012-05-24 22:50, Sevan / Venture37 wrote: > On 24/05/2012 20:21, Dimitry Andric wrote: >> I've seen these too, and it seems clang produces debug info which >> ctfconvert can't handle, for some reason. However, in my case, the >> kernel build doesn't abort at all, it continues and all the object files >> seem to work just fine. > > Updated to r235926 & kernel build completed successfully. Note, in r236149 I have pulled in a change from upstream clang, which should fix the root cause of the "failed to retrieve array bounds" messages. For flexible array members (e.g. arrays at the end of a struct with no specified size), clang didn't produce correct debug information. This confused ctfconvert, causing it to bail out.