- edited description
build failed using gcc 8.1.0
Issue #51
resolved
make -j32
failed with the following error, looks like a trivial fix. just string formatting
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[2]: *** [pfmlib_perf_event_pmu.o] Error 1
Comments (5)
-
reporter -
reporter - edited description
-
It's already fixed in the master branch. Use: git clone https://bitbucket.org/icl/papi.git
-
- changed status to resolved
Fixed in the master branch.
-
reporter Great. Thank you.
- Log in to comment