From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUEej-0004MS-RD for qemu-devel@nongnu.org; Fri, 02 Nov 2012 06:39:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUEei-0002sl-Qv for qemu-devel@nongnu.org; Fri, 02 Nov 2012 06:39:17 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:57530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUEei-0002sc-KL for qemu-devel@nongnu.org; Fri, 02 Nov 2012 06:39:16 -0400 Received: by mail-ee0-f45.google.com with SMTP id b47so1810986eek.4 for ; Fri, 02 Nov 2012 03:39:15 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5093A2D1.1050204@redhat.com> Date: Fri, 02 Nov 2012 11:39:13 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] compile failure on macos: "only weak aliases are supported on darwin" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel 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