just starting exploring builds with GCC-10
building qemu 4.2.0, linked from Virtualization:qemu @ my obs,
https://build.opensuse.org/project/show/home:pgnd:Virtualization:qemu
with
gcc --version
gcc (SUSE Linux) 10.0.1 20200320 (experimental) [revision
7d4549b2cd209eb621453ce13be7ffd84ffa720a]
build on OBS currently fails
...
[
244s
]cc -iquote
/home/abuild/rpmbuild/BUILD/mybuilddir/contrib/vhost-user-gpu -iquote
contrib/vhost-user-gpu -iquote /home/abuild/rpmbuild/BUILD/qemu-4.2.0/tcg
-iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/tcg/i386-I/home/abuild/rpmbuild/BUILD/qemu-4.2.0/linux-headers
-I/home/abuild/rpmbuild/BUILD/mybuilddir/linux-headers -iquote . -iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0-iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/accel/tcg -iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/include
-I/usr/include/pixman-1-I/home/abuild/rpmbuild/BUILD/qemu-4.2.0/dtc/libfdt
-Werror -pthread -I/usr/include/glib-2.0-I/usr/lib64/glib-2.0/include -pthread
-I/usr/include/glib-2.0-I/usr/lib64/glib-2.0/include -fPIE -DPIE
-m64-mcx16-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 -fwrapv
-std=gnu99-fmessage-length=0-grecord-gcc-switches -O2-Wall
-D_FORTIFY_SOURCE=2-fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Wexpansion-to-defined
-Wendif-labels -Wno-shift-negative-value -Wno-missing-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/p11-kit-1-I/usr/include/libpng16-I/usr/include/libdrm -pthread
-DOPENSSL_LOAD_CONF -I/usr/include/spice-server -I/usr/include/cacard
-I/usr/include/nss3-I/usr/include/nspr4-I/usr/include/glib-2.0-I/usr/lib64/glib-2.0/include
-I/usr/include/pixman-1-I/usr/include/spice-1-I/home/abuild/rpmbuild/BUILD/qemu-4.2.0/tests
-MMD -MP -MT contrib/vhost-user-gpu/virgl.o -MF contrib/vhost-user-gpu/virgl.d
-O2-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2-g -I/usr/include/virgl -c -o
contrib/vhost-user-gpu/virgl.o
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/contrib/vhost-user-gpu/virgl.c
[
244s
]/home/abuild/rpmbuild/BUILD/qemu-4.2.0/scsi/qemu-pr-helper.c: In
function 'multipath_pr_out':
[
244s
]/home/abuild/rpmbuild/BUILD/qemu-4.2.0/scsi/qemu-pr-helper.c:523:32:
error: array subscript <unknown> is outside array bounds of 'struct transportid
*[
0
]' [
-Werror=array-bounds
][
244s
]523| paramp.trnptid_list[
paramp.num_transportid++
]= id;
[
244s
]| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
[
244s
]In file included from
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/scsi/qemu-pr-helper.c:36:
[
244s
]/usr/include/mpath_persist.h:168:22: note: while referencing
'trnptid_list'
[
244s
]168| struct transportid *trnptid_list[];
[
244s
]| ^~~~~~~~~~~~
[
244s
]/home/abuild/rpmbuild/BUILD/qemu-4.2.0/scsi/qemu-pr-helper.c:424:35:
note: defined here 'paramp'
[
244s
]424| struct prout_param_descriptor paramp;
[
244s
]| ^~~~~~
[
245s
]cc -iquote
/home/abuild/rpmbuild/BUILD/mybuilddir/contrib/vhost-user-gpu -iquote
contrib/vhost-user-gpu -iquote /home/abuild/rpmbuild/BUILD/qemu-4.2.0/tcg
-iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/tcg/i386-I/home/abuild/rpmbuild/BUILD/qemu-4.2.0/linux-headers
-I/home/abuild/rpmbuild/BUILD/mybuilddir/linux-headers -iquote . -iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0-iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/accel/tcg -iquote
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/include
-I/usr/include/pixman-1-I/home/abuild/rpmbuild/BUILD/qemu-4.2.0/dtc/libfdt
-Werror -pthread -I/usr/include/glib-2.0-I/usr/lib64/glib-2.0/include -pthread
-I/usr/include/glib-2.0-I/usr/lib64/glib-2.0/include -fPIE -DPIE
-m64-mcx16-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 -fwrapv
-std=gnu99-fmessage-length=0-grecord-gcc-switches -O2-Wall
-D_FORTIFY_SOURCE=2-fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Wexpansion-to-defined
-Wendif-labels -Wno-shift-negative-value -Wno-missing-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/p11-kit-1-I/usr/include/libpng16-I/usr/include/libdrm -pthread
-DOPENSSL_LOAD_CONF -I/usr/include/spice-server -I/usr/include/cacard
-I/usr/include/nss3-I/usr/include/nspr4-I/usr/include/glib-2.0-I/usr/lib64/glib-2.0/include
-I/usr/include/pixman-1-I/usr/include/spice-1-I/home/abuild/rpmbuild/BUILD/qemu-4.2.0/tests
-MMD -MP -MT contrib/vhost-user-gpu/vugbm.o -MF contrib/vhost-user-gpu/vugbm.d
-O2-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2-g -c -o
contrib/vhost-user-gpu/vugbm.o
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/contrib/vhost-user-gpu/vugbm.c
[
245s
]cc1: all warnings being treated as errors
[
245s
]make: *** [
/home/abuild/rpmbuild/BUILD/qemu-4.2.0/rules.mak:69:
scsi/qemu-pr-helper.o
]Error 1[
245s
]make: *** Waiting for unfinished jobs....
[
245s
]error: Bad exit status from /var/tmp/rpm-tmp.Z5bWqs (%build)
...
with gcc*9*, all's good.
there are certainly GCC10 bugs that are affecting kernel builds; not surprising
that there might be others.
_completely_ unclear, yet, if THIS^^ is GCC10- or qemu- related ... or perhaps
prjconf on obs ...
anyone had luck with a qemu pkg build wigh GCC 10? or off-the-bat recognize the
issue?