From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahiu3-0003zx-HQ for qemu-devel@nongnu.org; Sun, 20 Mar 2016 15:20:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahiu0-00089b-B0 for qemu-devel@nongnu.org; Sun, 20 Mar 2016 15:20:43 -0400 Received: from ignoranthack.me ([199.102.79.106]:59251 helo=mail.ignoranthack.me) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahitz-000898-R6 for qemu-devel@nongnu.org; Sun, 20 Mar 2016 15:20:40 -0400 Received: from [192.168.200.206] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id CBE1B1928E4 for ; Sun, 20 Mar 2016 19:20:37 +0000 (UTC) From: Sean Bruno Message-ID: <56EEF805.8040008@freebsd.org> Date: Sun, 20 Mar 2016 12:20:37 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [FreeBSD] Host build i386 failing to build aarch64 targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers -----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/a0aa44b488b3601415d55041e4619aef5f3a4= ba8#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. More or less, the code in question ends up looking like this bit of test code: #include #include #include #define atomic_read(ptr) \ ({ \ typeof(*ptr) _val; \ __atomic_load(ptr, &_val, __ATOMIC_RELAXED); \ _val; \ }) int main () { int foo; int64_t foo64; atomic_read(&foo); atomic_read(&foo64); return(0); } This test code will manifest the same issue as the aarch64 target building on FreeBSD i386 with the error: undefined reference to `__atomic_load_8' -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJW7vgAXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kZsoH+gOHnQEZp967VbHTGFz+loK1 VnwdJC+fxTt/Una2awaztF5mOWcHPQ/yEtZUmsoBOKlynNxHAFEKQHTqA/0H+78g J1Xyi28cXFZDB4Seuk2tBgpky1rq9xMTHkh3W79Dcn/g1Kpmf4ha06rZYcSITilK pTOAHCKYTI5X8LW33NibY3avo/p4NSvbm7DTiLGtzR8xiGrtKKTF5UBQ0If3xvnp VG4aCm9dt9G/KmYvGQAaZqXc3mV5hfVr1cxG++5zprH8CKHBck9uc8pm0o70qUb5 /uhwaQTMiJbRd642/vwUjZuXa4dZCeb3WLHHIz6pNO6HhBBxtXiSFHYTZ4fqdxI=3D =3Dt6x6 -----END PGP SIGNATURE-----