[FTBFS] lxc build fails due to gcc-7

Bug #1711449 reported by Tiago Stürmer Daitx
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Debian)
Fix Released
Unknown
lxc (Ubuntu)
Fix Released
Undecided
Unassigned

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

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :
tags: added: artful ftbfs patch
Changed in lxc (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 2.0.8-0ubuntu5

---------------
lxc (2.0.8-0ubuntu5) artful; urgency=medium

  * debian/patches/0012-gcc-7-workaround.patch: workaround for gcc-7 bug
    that causes lxc to FTBFS. LP: #1711449. Closes: #853531.

 -- Tiago Stürmer Daitx <email address hidden> Thu, 17 Aug 2017 20:29:29 +0000

Changed in lxc (Ubuntu):
status: New → Fix Released
Changed in lxc (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.