From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahjZj-0004Nm-UB for qemu-devel@nongnu.org; Sun, 20 Mar 2016 16:03:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahjZi-0000xQ-So for qemu-devel@nongnu.org; Sun, 20 Mar 2016 16:03:47 -0400 Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]:34532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahjZi-0000xM-OQ for qemu-devel@nongnu.org; Sun, 20 Mar 2016 16:03:46 -0400 Received: by mail-vk0-x229.google.com with SMTP id e185so195154648vkb.1 for ; Sun, 20 Mar 2016 13:03:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <56EEF805.8040008@freebsd.org> References: <56EEF805.8040008@freebsd.org> From: Peter Maydell Date: Sun, 20 Mar 2016 20:03:26 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [FreeBSD] Host build i386 failing to build aarch64 targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sean Bruno Cc: Paolo Bonzini , =?UTF-8?B?QWxleCBCZW5uw6ll?= , QEMU Developers On 20 March 2016 at 19:20, Sean Bruno wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > aarch64 targets are now failing to build on i386 hosts due to missing > __atomic_load_8() calls since this commit: > > https://github.com/qemu/qemu/commit/a0aa44b488b3601415d55041e4619aef5f3a4ba8#diff-c143d686899ae51d7b927d9c682e12fd > > I'm unsure if Linux is disabling aarch64 targets for i386 hosts or if > this commit works "just fine" on Linux hosts right now, as it doesn't > work with clang or gcc. I think it just works on most Linux 32-bit architectures because the compiler support can inline a suitable atomic op (there is one case where it doesn't, which I think is PPC32). In any case, we mustn't use atomics on types larger than the host pointer type, because it's not portable enough. Paolo or Alex, can you have a look at this? thanks -- PMM