[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] compile failure on macos: "only weak aliases are suppor
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] compile failure on macos: "only weak aliases are supported on darwin" |
Date: |
Fri, 02 Nov 2012 11:39:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
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