1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
TCG: 0.912
risc-v: 0.909
permissions: 0.909
user-level: 0.908
VMM: 0.907
graphic: 0.903
peripherals: 0.902
device: 0.901
ppc: 0.901
register: 0.898
debug: 0.895
assembly: 0.894
mistranslation: 0.893
KVM: 0.893
socket: 0.892
architecture: 0.892
semantic: 0.892
vnc: 0.891
performance: 0.891
network: 0.891
arm: 0.891
kernel: 0.887
virtual: 0.883
PID: 0.880
x86: 0.879
hypervisor: 0.879
files: 0.875
i386: 0.871
boot: 0.871
compiling on armv7 crashes compile qlx.o
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?
On 12 February 2016 at 15:13, Klaftenegger Felix
<email address hidden> 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
i have tried gcc4.9 and gcc4.8. both creating this error
im using debian 8(jessie) and the host is a odroid-xu4 (http://www.hardkernel.com/main/products/prdt_info.php?g_code=G143452239825&tab_idx=2)
spice and spice-platform are build from the last stable the other dependecies are from the debian repo
bigendian: i have mixed older arm versions in my mind your right
if i try to compile with target-list=i386-linux-user it is working so the problem must the target i386-softmmu
Looking through old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?
[Expired for QEMU because there has been no activity for 60 days.]
|