blob: 63d3a048370be56a0e05b426810f3c874532b1e5 (
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
|
aarch64:qemu6.2.0 compile error
Description of problem:
Steps to reproduce:
1. download qemu source package
`wget http://mirrors.163.com/centos-vault/centos/8-stream/AppStream/Source/SPackages/qemu-kvm-6.2.0-12.module_el8.7.0%2b1140%2bff0772f9.src.rpm`
2. install qemu source package
`rpm -ivh qemu-*.rpm`
3. build qemu
` rpmbuild --define "_topdir /xxx/src_qemu6.2.0" -bb SPECS/qemu-kvm.spec`
4. error message:
```
In function 'dump_receive_iov',
inlined from 'filter_dump_receive_iov' at ../net/dump.c:157:5:
../net/dump.c:89:9: error: 'writev' specified size 18446744073709551600 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
89 | if (writev(s->fd, dumpiov, cnt + 1) != sizeof(hdr) + caplen) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/xxx/src_qemu6.2.0/BUILD/qemu-kvm-6.2.0/include/qemu/osdep.h:108,
from ../net/dump.c:25:
../net/dump.c: In function 'filter_dump_receive_iov':
/usr/include/sys/uio.h:52:16: note: in a call to function 'writev' declared with attribute 'read_only (2, 3)'
52 | extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count)
| ^~~~~~
cc1: all warnings being treated as errors
```
**gcc version**
```
# gcc --version
gcc (GCC) 10.3.1
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
```
[root]# meson -v
0.62.1
[root]# ninja -v
ninja: error: loading 'build.ninja': No such file or directory
[root@vm77 src_qemu6.2.0]# ninja --version
1.8.2
```
Additional information:
|