Public bug reported:
The latest criu 3.19-6 FTBFS due to two GCC warnings. See [1].
-----
criu/net.c: In function ‘unix_conf_op’:
criu/net.c:236:32: error: ‘net/unix/’ directive output truncated writing 9
bytes into a region of size 0 [-Werror=format-truncation=]
236 | #define CONF_UNIX_BASE "net/unix"
| ^~~~~~~~~~
criu/net.c:237:32: note: in expansion of macro ‘CONF_UNIX_BASE’
237 | #define CONF_UNIX_FMT CONF_UNIX_BASE "/%s"
| ^~~~~~~~~~~~~~
criu/net.c:378:55: note: in expansion of macro ‘CONF_UNIX_FMT’
378 | snprintf(path[i], MAX_CONF_UNIX_PATH, CONF_UNIX_FMT,
unix_conf_entries[i]);
| ^~~~~~~~~~~~~
criu/net.c:236:33: note: format string is defined here
236 | #define CONF_UNIX_BASE "net/unix"
| ^~~~~~~~~
237 | #define CONF_UNIX_FMT CONF_UNIX_BASE "/%s"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
from /usr/include/libnl3/netlink/netlink.h:9,
from /usr/include/libnl3/netlink/attr.h:9,
from criu/net.c:16:
In function ‘snprintf’,
inlined from ‘unix_conf_op’ at criu/net.c:378:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: error:
‘__builtin___snprintf_chk’ specified bound 42 exceeds destination size 0
[-Werror=stringop-overflow=]
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
-----
These warnings are not seen while building in debian/sid. They are most likely
caused by the additional GCC options passed on Ubuntu (-O3
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ). Bug 2066148 also
mentions these.
[1] https://launchpadlibrarian.net/760148596/buildlog_ubuntu-plucky-
amd64.criu_3.19-6_BUILDING.txt.gz
** Affects: criu (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089588
Title:
criu 3.19-6 FTBFS on plucky
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/criu/+bug/2089588/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs