From: Sean Bruno <sbruno@freebsd.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [FreeBSD] Host build i386 failing to build aarch64 targets
Date: Wed, 6 Apr 2016 09:11:25 -0700 [thread overview]
Message-ID: <5705352D.7070603@freebsd.org> (raw)
In-Reply-To: <56EEF805.8040008@freebsd.org>
-----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 <stdio.h> #include <sys/types.h> #include
> <machine/atomic.h>
>
> #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!
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-----
next prev parent reply other threads:[~2016-04-06 16:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-20 19:20 [Qemu-devel] [FreeBSD] Host build i386 failing to build aarch64 targets Sean Bruno
2016-03-20 20:03 ` Peter Maydell
2016-03-21 9:11 ` Alex Bennée
2016-03-21 14:52 ` Sean Bruno
2016-03-21 15:36 ` Alex Bennée
2016-03-21 15:56 ` Paolo Bonzini
2016-03-22 16:10 ` Sean Bruno
2016-03-22 16:22 ` Alex Bennée
2016-03-28 17:00 ` Sean Bruno
2016-03-31 16:57 ` Sean Bruno
2016-03-21 9:06 ` Paolo Bonzini
2016-03-21 9:35 ` Peter Maydell
2016-03-21 11:23 ` Paolo Bonzini
2016-03-21 11:49 ` Alex Bennée
2016-04-06 16:11 ` Sean Bruno [this message]
2016-04-06 18:51 ` Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5705352D.7070603@freebsd.org \
--to=sbruno@freebsd.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).