Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
guix/gnu
Olivier Dion c7795eccaf
gnu: libpfm4: Fix build error.
------
For some reason, the build recently failed with:

        pfmlib_perf_event_pmu.c:349:36: error: ?%s? directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
          349 |   snprintf(d2path, MAXPATHLEN, "%s/%s", debugfs_mnt, d1->d_name);
              |                                    ^~
        pfmlib_perf_event_pmu.c:349:3: note: ?snprintf? output between 2 and 4352 bytes into a destination of size 4096
          349 |   snprintf(d2path, MAXPATHLEN, "%s/%s", debugfs_mnt, d1->d_name);
              |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        pfmlib_perf_event_pmu.c:399:58: error: ?%s? directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
          399 |                         snprintf(idpath, MAXPATHLEN, "%s/%s/id", d2path, d2->d_name);
              |                                                          ^~
        pfmlib_perf_event_pmu.c:399:25: note: ?snprintf? output between 5 and 4355 bytes into a destination of size 4096
          399 |                         snprintf(idpath, MAXPATHLEN, "%s/%s/id", d2path, d2->d_name);
              |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        cc1: all warnings being treated as errors
------

* gnu/packages/linux.scm (libpfm4)[arguments]: Add `-Wno-format-truncation` to
CFLAGS in custom 'build' phase.

Signed-off-by: Leo Famulari <leo@famulari.name>
2021-12-15 00:40:14 -05:00
..
bootloader gnu: system: Add LUKS2 support for the root file system. 2021-12-01 17:51:37 +01:00
build Merge branch 'master' into core-updates-frozen 2021-12-13 11:49:15 +01:00
home home: services: bash: Only source /etc/bashrc if it exists. 2021-11-24 19:46:39 +01:00
installer Merge remote-tracking branch 'signed/master' into core-updates 2021-12-10 21:49:25 +01:00
machine
packages gnu: libpfm4: Fix build error. 2021-12-15 00:40:14 -05:00
platforms
services Merge branch 'master' into core-updates-frozen 2021-12-13 11:49:15 +01:00
system Merge branch 'master' into core-updates-frozen 2021-12-13 11:49:15 +01:00
tests tests: static-networking: Adjust to new style. 2021-12-13 23:37:30 +01:00
artwork.scm
bootloader.scm
ci.scm Merge remote-tracking branch 'signed/master' into core-updates 2021-12-10 21:49:25 +01:00
home.scm
image.scm
installer.scm
local.mk gnu: spice-vdagent: Fix build with glib >= 2.68. 2021-12-15 03:04:54 +01:00
machine.scm
packages.scm
platform.scm
services.scm services: Document the 'delete' clause of 'modify-services'. 2021-11-27 23:06:17 +01:00
system.scm system: Mark 'services' field as thunked. 2021-12-08 18:56:47 +01:00
tests.scm