qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
	Stefan Hajnoczi <stefanha@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] configure: improve multiarch support for pkgconfig
Date: Fri, 10 Apr 2015 10:06:44 -0400	[thread overview]
Message-ID: <5527D8F4.5050800@redhat.com> (raw)
In-Reply-To: <CAFEAcA8ozQvHbXq44Lk5vB6P6WmiFJxBR55Ff0anXHnEy3gRzw@mail.gmail.com>



On 04/10/2015 08:55 AM, Peter Maydell wrote:
> On 10 April 2015 at 13:21, Stefan Hajnoczi <stefanha@redhat.com> 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

  reply	other threads:[~2015-04-10 14:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 21:36 [Qemu-devel] [PATCH] configure: improve multiarch support for pkgconfig John Snow
2015-04-10 12:06 ` Paolo Bonzini
2015-04-10 12:21 ` Stefan Hajnoczi
2015-04-10 12:55   ` Peter Maydell
2015-04-10 14:06     ` John Snow [this message]
2015-04-10 13:59   ` Gerd Hoffmann
2015-04-10 14:15     ` John Snow
2015-04-10 14:24       ` Gerd Hoffmann
2015-04-10 12:24 ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5527D8F4.5050800@redhat.com \
    --to=jsnow@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).