qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] compile failure on macos: "only weak aliases are supported on darwin"
Date: Fri, 02 Nov 2012 11:39:13 +0100	[thread overview]
Message-ID: <5093A2D1.1050204@redhat.com> (raw)
In-Reply-To: <CAFEAcA9Psi-YUZfZU=_3SaXpi7Aw6YGQqJi5M8SJgzcVM8E8DA@mail.gmail.com>

Il 02/11/2012 10:54, Peter Maydell ha scritto:
> Building on MacOS with clang has broken:
> 
> qmp.c:474:1: error: only weak aliases are supported on darwin
> QEMU_WEAK_ALIAS(arch_query_cpu_definitions, default_arch_query_cpu_definitions);
> ^
> ./compiler.h:54:54: note: expanded from macro 'QEMU_WEAK_ALIAS'
>         typeof(oldname) newname __attribute__((weak, alias (#oldname)))
>                                                      ^
> 1 error generated.
> 
> 
> Looks like commit 67d223be is the culprit (and QEMU_WEAK_ALIAS
> isn't actually generated weak aliases?)

It's a bad error message.  It should be "only weakref aliases are
supported on Darwin", apparently.

It can be fixed, I'm testing a patch but it will have to wait for after
KVM Forum.

BTW, since I read disagreeing reports on this, can you check if Darwin
has sem_timedwait?

Paolo

  reply	other threads:[~2012-11-02 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02  9:54 [Qemu-devel] compile failure on macos: "only weak aliases are supported on darwin" Peter Maydell
2012-11-02 10:39 ` Paolo Bonzini [this message]
2012-11-02 10:41   ` Peter Maydell

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=5093A2D1.1050204@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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).