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 Build options are: ./configure --target-list=i386-softmmu Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin library directory /usr/local/lib module directory /usr/local/lib/qemu libexec directory /usr/local/libexec include directory /usr/local/include config directory /usr/local/etc local state directory /usr/local/var Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /home/fleixi/git/qemu C compiler cc Host C compiler cc C++ compiler c++ Objective-C compiler cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -g -mcpu=cortex-a15.cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -O2 -pipe -ffast-math -ftree-vectorize -mvectorize-with-neon-quad -fstack-protector --param=ssp-buffer-size=4 QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/libpng12 -I/usr/local/include/spice-server -I/usr/local/include -I/usr/local/include/spice-1 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 LDFLAGS -Wl,--warn-common -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU arm host big endian no target list i386-softmmu tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no pixman system SDL support no GTK support yes GTK GL support no GNUTLS support no GNUTLS hash no libgcrypt no nettle no libtasn1 no VTE support no curses support no virgl support no curl support yes mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS support no VNC support yes VNC SASL support yes VNC JPEG support yes VNC PNG support yes xen support no brlapi support no bluez support yes Documentation no PIE no vde support no netmap support no Linux AIO support no ATTR/XATTR support yes Install blobs yes KVM support yes RDMA support no TCG interpreter no fdt support no preadv support yes fdatasync yes madvise yes posix_madvise yes sigev_thread_id yes uuid support no libcap-ng support no vhost-net support yes vhost-scsi support yes Trace backends log spice support yes (0.12.10/0.12.6) rbd support no xfsctl support no smartcard support no libusb no usb net redir no OpenGL support no libiscsi support no libnfs support no build guest agent yes QGA VSS support no QGA w32 disk info no QGA MSI support no seccomp support no coroutine backend ucontext coroutine pool yes GlusterFS support no Archipelago support no gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough no QOM debugging yes vhdx no lzo support no snappy support no bzip2 support yes NUMA host support no tcmalloc support no jemalloc support no testet with qemu-git branch stable-2.4 and git master Shoulded the configure detecting "bigendian" too? ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1545024 Title: compiling on armv7 crashes compile qlx.o Status in QEMU: New Bug description: 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 Build options are: ./configure --target-list=i386-softmmu Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin library directory /usr/local/lib module directory /usr/local/lib/qemu libexec directory /usr/local/libexec include directory /usr/local/include config directory /usr/local/etc local state directory /usr/local/var Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /home/fleixi/git/qemu C compiler cc Host C compiler cc C++ compiler c++ Objective-C compiler cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -g -mcpu=cortex-a15.cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -O2 -pipe -ffast-math -ftree-vectorize -mvectorize-with-neon-quad -fstack-protector --param=ssp-buffer-size=4 QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/libpng12 -I/usr/local/include/spice-server -I/usr/local/include -I/usr/local/include/spice-1 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 LDFLAGS -Wl,--warn-common -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU arm host big endian no target list i386-softmmu tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no pixman system SDL support no GTK support yes GTK GL support no GNUTLS support no GNUTLS hash no libgcrypt no nettle no libtasn1 no VTE support no curses support no virgl support no curl support yes mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS support no VNC support yes VNC SASL support yes VNC JPEG support yes VNC PNG support yes xen support no brlapi support no bluez support yes Documentation no PIE no vde support no netmap support no Linux AIO support no ATTR/XATTR support yes Install blobs yes KVM support yes RDMA support no TCG interpreter no fdt support no preadv support yes fdatasync yes madvise yes posix_madvise yes sigev_thread_id yes uuid support no libcap-ng support no vhost-net support yes vhost-scsi support yes Trace backends log spice support yes (0.12.10/0.12.6) rbd support no xfsctl support no smartcard support no libusb no usb net redir no OpenGL support no libiscsi support no libnfs support no build guest agent yes QGA VSS support no QGA w32 disk info no QGA MSI support no seccomp support no coroutine backend ucontext coroutine pool yes GlusterFS support no Archipelago support no gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough no QOM debugging yes vhdx no lzo support no snappy support no bzip2 support yes NUMA host support no tcmalloc support no jemalloc support no testet with qemu-git branch stable-2.4 and git master Shoulded the configure detecting "bigendian" too? To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1545024/+subscriptions