Mailing List Archive

Compile Problem with qemu -sockets
Hi guys i try to install the laest stable tag RELEASE-4.12.1 and always run into this error !!!

can i disable or work around it ?

Thanks


In file included from /usr/include/string.h:494,
from /home/adminjs/xen/tools/qemu-xen-dir/include/qemu/osdep.h:84,
from /home/adminjs/xen/tools/qemu-xen-dir/util/qemu-sockets.c:18:
In function 'strncpy',
inlined from 'unix_connect_saddr.isra.0' at /home/adminjs/xen/tools/qemu-xen-dir/util/qemu-sockets.c:925:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 108 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'unix_listen_saddr.isra.0' at /home/adminjs/xen/tools/qemu-xen-dir/util/qemu-sockets.c:880:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 108 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [/home/adminjs/xen/tools/qemu-xen-dir/rules.mak:69: util/qemu-sockets.o] Error 1
make: Leaving directory '/home/adminjs/xen/tools/qemu-xen-build'
make[3]: *** [Makefile:220: subdir-all-qemu-xen-dir] Error 2
make[3]: Leaving directory '/home/adminjs/xen/tools'
make[2]: *** [/home/adminjs/xen/tools/../tools/Rules.mk:246: subdirs-install] Error 2
make[2]: Leaving directory '/home/adminjs/xen/tools'
make[1]: *** [Makefile:74: install] Error 2
make[1]: Leaving directory '/home/adminjs/xen/tools'
make: *** [Makefile:127: install-tools] Error 2



Sent with ProtonMail Secure Email.
Re: Compile Problem with qemu -sockets [ In reply to ]
Hello,

Hi guys i try to install the laest stable tag RELEASE-4.12.1 and always run
into this error !!!

can i disable or work around it ?

Thanks


In file included from /usr/include/string.h:494,
from
/home/adminjs/xen/tools/qemu-xen-dir/include/qemu/osdep.h:84,
from
/home/adminjs/xen/tools/qemu-xen-dir/util/qemu-sockets.c:18:
In function 'strncpy',
inlined from 'unix_connect_saddr.isra.0' at
/home/adminjs/xen/tools/qemu-xen-dir/util/qemu-sockets.c:925:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error:
'__builtin_strncpy' specified bound 108 equals destination size
[-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'unix_listen_saddr.isra.0' at

reply:
when you configure tools, use the flag below to pass configure args to qemuu:
./configure --with-extra-qemuu-configure-args="--extra-cflags=\"
-DHAVE_FSXATTR=1 -Wno-stringop-truncation \""

After you call configure you can see the result in
config/Tools.mk

So check there before you `make dist-tools`

cheers,
PryMar56
##xen-packaging on Freenode IRC

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users