On 12 February 2016 at 15:13, Klaftenegger Felix <1545...@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