[Bug 1711449] Re: [FTBFS] lxc build fails due to gcc-7

Bug Watch Updater 1711449 at bugs.launchpad.net
Thu Aug 17 22:32:35 UTC 2017


** Changed in: lxc (Debian)
       Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1711449

Title:
  [FTBFS] lxc build fails due to gcc-7

Status in lxc package in Ubuntu:
  New
Status in lxc package in Debian:
  New

Bug description:
  Currently lxc FTBFS due to a GCC-7 bug.

  There's a upstream report for gcc-7 [1], but meanwhile lxc upstream
  has applied a workaround that fixes the build [1].

  cgroups/cgfsng.c: In function ‘cgfsng_create’:
  cgroups/cgfsng.c:1381:23: error: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Werror=format-truncation=]
     snprintf(offset, 5, "-%d", idx);
                         ^~~~~
  In file included from /usr/include/stdio.h:938:0,
                   from cgroups/cgfsng.c:44:
  /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 3 and 6 bytes into a destination of size 5
     return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          __bos (__s), __fmt, __va_arg_pack ());
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

  [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969
  [2] https://github.com/lxc/lxc/commit/66b66624fce21606d11f24f5b615776074d212ae

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1711449/+subscriptions



More information about the Ubuntu-sponsors mailing list