From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ansXi-0005PP-2j for qemu-devel@nongnu.org; Wed, 06 Apr 2016 14:51:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ansXd-0003Kl-Gh for qemu-devel@nongnu.org; Wed, 06 Apr 2016 14:51:06 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:38225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ansXd-0003KP-3e for qemu-devel@nongnu.org; Wed, 06 Apr 2016 14:51:01 -0400 Received: by mail-wm0-x234.google.com with SMTP id u206so57894415wme.1 for ; Wed, 06 Apr 2016 11:51:00 -0700 (PDT) References: <56EEF805.8040008@freebsd.org> <5705352D.7070603@freebsd.org> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <5705352D.7070603@freebsd.org> Date: Wed, 06 Apr 2016 19:51:01 +0100 Message-ID: <87inzubmga.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: qemu-devel@nongnu.org Sean Bruno writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > > > On 03/20/16 12:20, Sean Bruno wrote: >> 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/a0aa44b488b3601415d55041e4619aef5f > 3a4ba8#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' >> >> > > > This seems to be fixed with the latest commits. Thanks! Sorry I thought I'd CC'd you. The patch needed re-spinning to get picked up by Peter. Glad it is working for you now ;-) > > sean > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQF8BAEBCgBmBQJXBTUqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w > ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx > MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kAoYH/3Ai7IdpyxyIiRtgYDWJQcg8 > GLmbu1NL5Xrh0af5DU933kCqkDlKK8qKYs89DzHMfay8TIyZFkqKF5pYy66JJAQ2 > qAB9eGTL567q3QPk9iYkRLju4Y4exmBL1ZSW1fUpPKjjjBlLR7VrHjEA/Ze0zYsM > +MvRJcHSf8tNawr8WfOzVgFPf8pc2K0Ix8/VZCFEdf4FcATHj2nYXTmzQmTQuWSo > tqDWe02TIov0BSBaA4uG6n02F4KWglGBE+bdsuTiwxxAjkcmHLgg28h7Wupkmatj > 5zarlSLIhvv7j3KAS/r8aKtQ04ydXybTo0HnPLJ9JV/xz3bAbvvKDYLMZijpm0M= > =OSgq > -----END PGP SIGNATURE----- -- Alex Bennée