==> Synchronizing chroot copy [/chroot/x86_64/root] -> [build]...done
==> Making package: libpfm4 4.7.0-3 (Mon Mar  4 21:34:48 2019)
==> Retrieving sources...
  -> Found libpfm-4.7.0.tar.gz
  -> Found config.mk
==> Validating source files with sha512sums...
    libpfm-4.7.0.tar.gz ... Passed
    config.mk ... Passed
Host and machine ids are equal (03ca1e0d79db47a597e66a5149387887): refusing to link journals
==> Making package: libpfm4 4.7.0-3 (Mon 04 Mar 2019 09:34:49 PM EST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (1) lib32-glibc-2.28-5

Total Download Size:    2.94 MiB
Total Installed Size:  17.24 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
downloading lib32-glibc-2.28-5-x86_64.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing lib32-glibc...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found libpfm-4.7.0.tar.gz
  -> Found config.mk
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting libpfm-4.7.0.tar.gz with bsdtar
==> Starting build()...
Compiling for 'x86_64' target
Compiling for 'Linux' system
make[1]: Entering directory '/build/libpfm4/src/libpfm-4.7.0/lib'
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -m32 -O3 -g -Wall -Werror -I. -I/build/libpfm4/src/libpfm-4.7.0/include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -m32 -O3 -g -Wall -Werror -I. -I/build/libpfm4/src/libpfm-4.7.0/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -D_REENTRANT -I. -DCONFIG_PFMLIB_ARCH_X86 -DCONFIG_PFMLIB_ARCH_X86_64 -I. -c pfmlib_common.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -m32 -O3 -g -Wall -Werror -I. -I/build/libpfm4/src/libpfm-4.7.0/include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -m32 -O3 -g -Wall -Werror -I. -I/build/libpfm4/src/libpfm-4.7.0/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -D_REENTRANT -I. -DCONFIG_PFMLIB_ARCH_X86 -DCONFIG_PFMLIB_ARCH_X86_64 -I. -c pfmlib_perf_event_pmu.c
pfmlib_perf_event_pmu.c: In function ‘gen_tracepoint_table’:
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=]
   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
   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=]
                         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
                         snprintf(idpath, MAXPATHLEN, "%s/%s/id", d2path, d2->d_name);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [/build/libpfm4/src/libpfm-4.7.0/lib/../rules.mk:30: pfmlib_perf_event_pmu.o] Error 1
make[1]: Leaving directory '/build/libpfm4/src/libpfm-4.7.0/lib'
make: *** [Makefile:49: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> Removing installed dependencies...
checking dependencies...

Packages (1) lib32-glibc-2.28-5

Total Removed Size:  17.24 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
removing lib32-glibc...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> ERROR: Build failed, check /chroot/x86_64/build/build