summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/108/other/1008136
blob: c25e9de0e87489ffca14e0a732bc2f6eba323760 (plain) (blame)
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
other: 0.948
permissions: 0.927
graphic: 0.924
device: 0.921
debug: 0.915
files: 0.915
performance: 0.915
socket: 0.914
KVM: 0.912
vnc: 0.910
semantic: 0.909
network: 0.907
PID: 0.898
boot: 0.881

Cannot compile 1.1.0

Howdy,

Testing QEMU 1.1.0 but doesn't compile:


  CC    fsdev/virtfs-proxy-helper.o
In file included from /usr/include/i386-linux-gnu/bits/sigcontext.h:28:0,
                 from /usr/include/signal.h:339,
                 from ./qemu-common.h:38,
                 from fsdev/virtfs-proxy-helper.c:23:
/usr/include/i386-linux-gnu/asm/sigcontext.h:28:2: error: unknown type name '__u64'
/usr/include/i386-linux-gnu/asm/sigcontext.h:191:2: error: unknown type name '__u64'
/usr/include/i386-linux-gnu/asm/sigcontext.h:192:2: error: unknown type name '__u64'
/usr/include/i386-linux-gnu/asm/sigcontext.h:193:2: error: unknown type name '__u64'
make: *** [fsdev/virtfs-proxy-helper.o] Error 1


Ideas?
GCC 4.7, kernel 3.2x

Thanks in advanced,
Jorge,

What distro/architecture is this?  What's the configure command and output from the command?

Debian SID on x86.

Configure output:

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
library directory /usr/local/lib
include directory /usr/local/include
config directory  /usr/local/etc
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /usr/local/src/qemu/qemu-1.1.0
C compiler        gcc
Host C compiler   gcc
CFLAGS            -O2 -g
QEMU_CFLAGS       -Werror -fPIE -DPIE -m32 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing  -fstack-protector-all -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 -I/usr/include/libpng12
LDFLAGS           -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m32 -g
make              make
install           install
python            python
smbd              /usr/sbin/smbd
host CPU          i386
host big endian   no
target list       i386-softmmu x86_64-softmmu alpha-softmmu arm-softmmu cris-softmmu lm32-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu s390x-softmmu xtensa-softmmu xtensaeb-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user microblaze-linux-user microblazeel-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user unicore32-linux-user s390x-linux-user
tcg debug enabled no
Mon debug enabled no
gprof enabled     no
sparse enabled    no
strip binaries    yes
profiler          no
static build      no
-Werror enabled   yes
SDL support       no
curses support    yes
curl support      no
mingw32 support   no
Audio drivers     oss
Extra audio cards ac97 es1370 sb16 hda
Block whitelist
Mixer emulation   no
VirtFS support    yes
VNC support       yes
VNC TLS support   no
VNC SASL support  no
VNC JPEG support  yes
VNC PNG support   yes
VNC thread        no
xen support       no
brlapi support    no
bluez  support    no
Documentation     yes
NPTL support      yes
GUEST_BASE        yes
PIE               yes
vde support       no
Linux AIO support no
ATTR/XATTR support yes
Install blobs     yes
KVM support       yes
TCG interpreter   no
fdt support       no
preadv support    yes
fdatasync         yes
madvise           yes
posix_madvise     yes
uuid support      yes
libcap-ng support no
vhost-net support yes
Trace backend     nop
Trace output file trace-<pid>
spice support     no
rbd support       no
xfsctl support    no
nss used          no
usb net redir     no
OpenGL support    no
libiscsi support  no
build guest agent yes
coroutine backend ucontext
flecha:/usr/local/src/qemu/qemu-1.1.0#


Extra info, the header exists, QEMU doesn't seems to find it, it's on this place:

http://packages.debian.org/search?searchon=contents&keywords=int-ll64.h&mode=exactfilename&suite=stable&arch=any

and provided by linux-libc-dev debian package.

How can I force configure to include this dir?

Can you include the output of 'make V=1'?

Do you have custom kernel headers installed?  Is it possible that you installed them without sanitizing them first?

What do you mean about custom kernel headers?

The kernel headers are from the debian package "linux-libc-dev"


gcc -I/usr/local/src/qemu/qemu-1.1.0/slirp -I. -I/usr/local/src/qemu/qemu-1.1.0 -I/usr/local/src/qemu/qemu-1.1.0/fpu -Werror -fPIE -DPIE -m32 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing  -fstack-protector-all -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 -I/usr/include/libpng12   -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include    -I/usr/local/src/qemu/qemu-1.1.0/include -MMD -MP -MT fsdev/virtfs-proxy-helper.o -MF fsdev/virtfs-proxy-helper.d -O2 -g  -c -o fsdev/virtfs-proxy-helper.o fsdev/virtfs-proxy-helper.c
In file included from /usr/include/i386-linux-gnu/bits/sigcontext.h:28:0,
                 from /usr/include/signal.h:339,
                 from ./qemu-common.h:38,
                 from fsdev/virtfs-proxy-helper.c:23:
/usr/include/i386-linux-gnu/asm/sigcontext.h:28:2: error: unknown type name '__u64'
/usr/include/i386-linux-gnu/asm/sigcontext.h:191:2: error: unknown type name '__u64'
/usr/include/i386-linux-gnu/asm/sigcontext.h:192:2: error: unknown type name '__u64'
/usr/include/i386-linux-gnu/asm/sigcontext.h:193:2: error: unknown type name '__u64'
make: *** [fsdev/virtfs-proxy-helper.o] Error 1
flecha:/usr/local/src/qemu/qemu-1.1.0#


I just compiled QEMU 1.1.0 on a fresh i386 installation of Debian Sid with the same configuration
which you used (well, nearly the same - I did not build the documentation).

Compilation of fsdev/virtfs-proxy-helper.c works without any error message.

/usr/include/i386-linux-gnu/asm/sigcontext.h uses __u32 and __u64, but you got only error messages
for __u64. That indicates that __u32 was defined. If you want to see were it was defined, you can
modify /usr/include/i386-linux-gnu/asm/sigcontext.h (after making a backup copy):

* Add wrong typedefs for __u32 and __u64 starting in line 23:
  typedef int __u32;
  typedef int __u64;

* Run gcc with fsdev/virtfs-proxy-helper.c (see your previous mail).

Here is what I get:


# gcc -I/usr/local/src/qemu/qemu-1.1.0/slirp -I. -I/usr/local/src/qemu/qemu-1.1.0 -I/usr/local/src/qemu/qemu-1.1.0/fpu -Werror -fPIE -DPIE -m32 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing  -fstack-protector-all -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 -I/usr/include/libpng12   -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include    -I/usr/local/src/qemu/qemu-1.1.0/include -MMD -MP -MT fsdev/virtfs-proxy-helper.o -MF fsdev/virtfs-proxy-helper.d -O2 -g  -c -o fsdev/virtfs-proxy-helper.o fsdev/virtfs-proxy-helper.c 
In file included from /usr/include/i386-linux-gnu/bits/sigcontext.h:28:0,
                 from /usr/include/signal.h:339,
                 from ./qemu-common.h:38,
                 from fsdev/virtfs-proxy-helper.c:23:
/usr/include/i386-linux-gnu/asm/sigcontext.h:23:13: error: conflicting types for '__u32'
In file included from /usr/include/asm-generic/types.h:7:0,
                 from /usr/include/i386-linux-gnu/asm/types.h:4,
                 from /usr/include/linux/types.h:4,
                 from /usr/include/sys/capability.h:24,
                 from fsdev/virtfs-proxy-helper.c:15:
/usr/include/asm-generic/int-ll64.h:26:22: note: previous declaration of '__u32' was here
In file included from /usr/include/i386-linux-gnu/bits/sigcontext.h:28:0,
                 from /usr/include/signal.h:339,
                 from ./qemu-common.h:38,
                 from fsdev/virtfs-proxy-helper.c:23:
/usr/include/i386-linux-gnu/asm/sigcontext.h:24:13: error: conflicting types for '__u64'
In file included from /usr/include/asm-generic/types.h:7:0,
                 from /usr/include/i386-linux-gnu/asm/types.h:4,
                 from /usr/include/linux/types.h:4,
                 from /usr/include/sys/capability.h:24,
                 from fsdev/virtfs-proxy-helper.c:15:
/usr/include/asm-generic/int-ll64.h:30:42: note: previous declaration of '__u64' was here


Of course there are errors now (there should be conflicting types for __u32 and __u64, but I guess you will
get only one of those). The error messages also tell the source of the original (correct) definition.
In my case, it was /usr/include/asm-generic/int-ll64.h:26:22 and /usr/include/asm-generic/int-ll64.h:30:42.

Please try these instructions and compare your with my compiler output.


Hi Stef,

Well, it works OK on another Debian machine, wierd, have to dig to find why.

Thanks for your help!

Since there hasn't been any response to this ticket anymore, I assume the problem has been solved by other means on that machine - or by a newer version of QEMU. So I'm closing this ticket now - if you still got problems, please feel free to open it again.