From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgZa5-0000Op-SA for qemu-devel@nongnu.org; Fri, 10 Apr 2015 10:06:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgZa2-0000fO-OF for qemu-devel@nongnu.org; Fri, 10 Apr 2015 10:06:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgZa2-0000f8-IZ for qemu-devel@nongnu.org; Fri, 10 Apr 2015 10:06:46 -0400 Message-ID: <5527D8F4.5050800@redhat.com> Date: Fri, 10 Apr 2015 10:06:44 -0400 From: John Snow MIME-Version: 1.0 References: <1428615372-615-1-git-send-email-jsnow@redhat.com> <20150410122123.GN23555@stefanha-thinkpad.redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] configure: improve multiarch support for pkgconfig List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Stefan Hajnoczi Cc: Paolo Bonzini , QEMU Developers On 04/10/2015 08:55 AM, Peter Maydell wrote: > On 10 April 2015 at 13:21, Stefan Hajnoczi wrote: >> On Thu, Apr 09, 2015 at 05:36:12PM -0400, John Snow wrote: >>> This will improve the multi-arch compilation for hosts using gcc. >>> configurations using clang won't see an improvement, but also won't >>> see a regression. >> >> The commit description does not explain what this patch "improves". >> Please add this explanation (or something equivalent) when merging: >> >> 32-bit compilation on 64-bit hosts is broken because pkgconfig isn't >> multi-arch aware and selects the 64-bit glibconfig.h header file. That >> file assumes the LP64 data model so guint64 is defined as unsigned long. >> This does not work for 32-bit builds where sizeof(unsigned long) == 4 >> bytes. > > Is this actually a fix for multiarch (which is the Debian/Ubuntu > approach where everything is split into /lib/i386-linux-gnu and > /lib/x86_64-linux-gnu and so on) or for the RedHat setup with /lib > and /lib64? (I forget the name of the latter, maybe multilib?) > > -- PMM > It should apply to both, AFAIK. (Testing welcome ...!) I wasn't very confident with the fix (I've been sitting on it for a while ...), but there's some good feedback, so I'll respin. Thanks everyone. --js