* Package: dev-libs/libpfm-4.8.0 * Repository: gentoo * Maintainer: slis@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking libpfm-4.8.0.tar.gz to /var/tmp/portage/dev-libs/libpfm-4.8.0/work >>> Source unpacked in /var/tmp/portage/dev-libs/libpfm-4.8.0/work >>> Preparing source in /var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0 ... make -j1 CC=x86_64-pc-linux-gnu-gcc Compiling for 'x86_64' target Compiling for 'Linux' system make[1]: Entering directory '/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0/lib' x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0/include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -D_REENTRANT -I. -fvisibility=hidden -DCONFIG_PFMLIB_ARCH_X86 -DCONFIG_PFMLIB_ARCH_X86_64 -I. -c pfmlib_common.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0/include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -D_REENTRANT -I. -fvisibility=hidden -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); ^~ In file included from /usr/include/stdio.h:862, from pfmlib_perf_event_pmu.c:27: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4352 bytes into a destination of size 4096 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); ^~ In file included from /usr/include/stdio.h:862, from pfmlib_perf_event_pmu.c:27: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 5 and 4355 bytes into a destination of size 4096 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0/lib/../rules.mk:30: pfmlib_perf_event_pmu.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0/lib' make: *** [Makefile:49: all] Error 2 * ERROR: dev-libs/libpfm-4.8.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-libs/libpfm-4.8.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/libpfm-4.8.0::gentoo'`. * The complete build log is located at '/var/log/portage/dev-libs:libpfm-4.8.0:20180822-181844.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libpfm-4.8.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpfm-4.8.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0' * S: '/var/tmp/portage/dev-libs/libpfm-4.8.0/work/libpfm-4.8.0'