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
|
graphic: 0.968
other: 0.966
semantic: 0.963
assembly: 0.959
network: 0.955
socket: 0.954
instruction: 0.953
device: 0.946
boot: 0.945
vnc: 0.944
mistranslation: 0.935
KVM: 0.932
undefined reference to `trace_qemu_anon_ram_alloc'
The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29) fails to compile:
...
LINK qemu-ga
libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
collect2: error: ld returned 1 exit status
make: *** [qemu-ga] Error 1
This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
'./configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <email address hidden> wrote:
> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
> fails to compile:
>
> ...
> LINK qemu-ga
> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
> oslib-posix.c:(.text+0x154): undefined reference to `trace_qemu_anon_ram_alloc'
> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
> oslib-posix.c:(.text+0x1e7): undefined reference to `trace_qemu_anon_ram_free'
> collect2: error: ld returned 1 exit status
> make: *** [qemu-ga] Error 1
>
> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
Please try:
make distclean && ./configure --enable-linux-aio --enable-kvm
--enable-vhost-net && make
Stefan
> On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <email address hidden>
> wrote:
>> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
>> fails to compile:
>>
>> ...
>> LINK qemu-ga
>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
>> oslib-posix.c:(.text+0x154): undefined reference to
>> `trace_qemu_anon_ram_alloc'
>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
>> oslib-posix.c:(.text+0x1e7): undefined reference to
>> `trace_qemu_anon_ram_free'
>> collect2: error: ld returned 1 exit status
>> make: *** [qemu-ga] Error 1
>>
>> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
>> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
>
> Please try:
> make distclean && ./configure --enable-linux-aio --enable-kvm
> --enable-vhost-net && make
I tried that before I raised the bug. However I tried it again to be sure,
and yes I still get the same error.
>
> Stefan
Regards,
-Nigel
On Mon, May 27, 2013 at 09:04:26PM -0000, Nigel Horne wrote:
> > On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <email address hidden>
> > wrote:
> >> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
> >> fails to compile:
> >>
> >> ...
> >> LINK qemu-ga
> >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
> >> oslib-posix.c:(.text+0x154): undefined reference to
> >> `trace_qemu_anon_ram_alloc'
> >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
> >> oslib-posix.c:(.text+0x1e7): undefined reference to
> >> `trace_qemu_anon_ram_free'
> >> collect2: error: ld returned 1 exit status
> >> make: *** [qemu-ga] Error 1
> >>
> >> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
> >> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
> >
> > Please try:
> > make distclean && ./configure --enable-linux-aio --enable-kvm
> > --enable-vhost-net && make
>
> I tried that before I raised the bug. However I tried it again to be sure,
> and yes I still get the same error.
Please post the output of "git status". I wonder if there are stale
files because the build works fine here.
Stefan
>>> On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <email address hidden>
>>> wrote:
>>>> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
>>>> fails to compile:
>>>>
>>>> ...
>>>> LINK qemu-ga
>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
>>>> oslib-posix.c:(.text+0x154): undefined reference to
>>>> `trace_qemu_anon_ram_alloc'
>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
>>>> oslib-posix.c:(.text+0x1e7): undefined reference to
>>>> `trace_qemu_anon_ram_free'
>>>> collect2: error: ld returned 1 exit status
>>>> make: *** [qemu-ga] Error 1
>>>>
>>>> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
>>>> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
>>> Please try:
>>> make distclean && ./configure --enable-linux-aio --enable-kvm
>>> --enable-vhost-net && make
>> I tried that before I raised the bug. However I tried it again to be sure,
>> and yes I still get the same error.
> Please post the output of "git status". I wonder if there are stale
> files because the build works fine here.
Here it is:
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# libhw32/
# libhw64/
# trace.c
# trace.h
I don't do any local modification just 'git pull' and recompile. Perhaps
git is broken so I should 'git clone' and start again.
-Nigel
On Tue, May 28, 2013 at 3:18 PM, Nigel Horne <email address hidden> wrote:
>>>> On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <email address hidden>
>>>> wrote:
>>>>> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29)
>>>>> fails to compile:
>>>>>
>>>>> ...
>>>>> LINK qemu-ga
>>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc':
>>>>> oslib-posix.c:(.text+0x154): undefined reference to
>>>>> `trace_qemu_anon_ram_alloc'
>>>>> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free':
>>>>> oslib-posix.c:(.text+0x1e7): undefined reference to
>>>>> `trace_qemu_anon_ram_free'
>>>>> collect2: error: ld returned 1 exit status
>>>>> make: *** [qemu-ga] Error 1
>>>>>
>>>>> This is on Ubuntu 13.04, gcc 4.7.3, configure flags:
>>>>> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net'
>>>> Please try:
>>>> make distclean && ./configure --enable-linux-aio --enable-kvm
>>>> --enable-vhost-net && make
>>> I tried that before I raised the bug. However I tried it again to be sure,
>>> and yes I still get the same error.
>> Please post the output of "git status". I wonder if there are stale
>> files because the build works fine here.
>
> Here it is:
>
> # On branch master
> # Untracked files:
> # (use "git add <file>..." to include in what will be committed)
> #
> # libhw32/
> # libhw64/
> # trace.c
> # trace.h
rm trace.[ch]
Then try again.
The problem is that the auto-generated tracing files moved into
trace/generated-* but the Makefile and C compiler include paths still
pick up the old trace.[ch].
You probably built an older version of QEMU first in the same
directory. The latest make distclean doesn't know about the old
trace.[ch] files.
Stefan
|