qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Bug 1545024 <1545024@bugs.launchpad.net>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Bug 1545024] [NEW] compiling on armv7 crashes compile qlx.o
Date: Fri, 12 Feb 2016 15:27:59 +0000	[thread overview]
Message-ID: <CAFEAcA8kqFWgfbqYx8-8AtyM--wC5junJ19wa+Go3XbqeorVgQ@mail.gmail.com> (raw)
In-Reply-To: <20160212151339.32708.72568.malonedeb@gac.canonical.com>

On 12 February 2016 at 15:13, Klaftenegger Felix
<1545024@bugs.launchpad.net> wrote:
> Public bug reported:
>
> If i try to compile qemu on armv7 cpu i get this error:
>
>   LINK  qemu-nbd
>   CC    qemu-img.o
>   LINK  qemu-img
>   LINK  qemu-io
>   LINK  qemu-bridge-helper
>   CC    qmp-marshal.o
>   CC    hw/display/qxl.o
> {standard input}: Assembler messages:
> {standard input}:1704: Error: bad instruction `lock'
> {standard input}:1704: Error: bad instruction `addl $0,0(%rsp)'
> {standard input}:1864: Error: bad instruction `lock'
> {standard input}:1864: Error: bad instruction `addl $0,0(%rsp)'
> {standard input}:5239: Error: bad instruction `lock'
> {standard input}:5239: Error: bad instruction `addl $0,0(%rsp)'
> {standard input}:5731: Error: bad instruction `lock'
> {standard input}:5731: Error: bad instruction `addl $0,0(%rsp)'
> {standard input}:11923: Error: bad instruction `lock'
> {standard input}:11923: Error: bad instruction `addl $0,0(%rsp)'
> {standard input}:13960: Error: bad instruction `lock'
> {standard input}:13960: Error: bad instruction `addl $0,0(%rsp)'
> {standard input}:14349: Error: bad instruction `lock'
> {standard input}:14349: Error: bad instruction `addl $0,0(%rsp)'
> /home/fleixi/git/qemu/rules.mak:57: recipe for target 'hw/display/qxl.o' failed
> make: *** [hw/display/qxl.o] Error 1

Looks like we're picking up the x86 implementations of the atomic.h
smp_mb() somehow. That's odd because it shouldn't happen unless
something has managed to #define __i386__ somehow.

What host platform (OS, hardware) are you building on? What version is your
compiler?

> Shoulded the configure detecting "bigendian" too?

Why should it? ARM is little endian.

thanks
-- PMM

  reply	other threads:[~2016-02-12 15:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-12 15:13 [Qemu-devel] [Bug 1545024] [NEW] compiling on armv7 crashes compile qlx.o Klaftenegger Felix
2016-02-12 15:27 ` Peter Maydell [this message]
2016-02-12 16:05 ` [Qemu-devel] [Bug 1545024] " Klaftenegger Felix
2016-02-12 17:04 ` Klaftenegger Felix
2019-02-05  7:23 ` Thomas Huth
2019-04-07  4:17 ` Launchpad Bug Tracker
2019-04-07  4:17   ` Launchpad Bug Tracker

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=CAFEAcA8kqFWgfbqYx8-8AtyM--wC5junJ19wa+Go3XbqeorVgQ@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=1545024@bugs.launchpad.net \
    --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).