Summary: | dev-libs/libpfm-4.8.0 : 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=] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Sławek Lis (RETIRED) <slis> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 0xe2.0x9a.0x9b, arfrever.fta, dschridde+gentoobugs, esigra, slyfox |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 260867 | ||
Attachments: |
emerge-info.txt
dev-libs:libpfm-4.8.0:20180822-181844.log emerge-history.txt environment etc.portage.tbz2 temp.tbz2 |
Description
Toralf Förster
2018-08-22 19:07:59 UTC
Created attachment 544556 [details]
emerge-info.txt
Created attachment 544558 [details]
dev-libs:libpfm-4.8.0:20180822-181844.log
Created attachment 544560 [details]
emerge-history.txt
Created attachment 544562 [details]
environment
Created attachment 544564 [details]
etc.portage.tbz2
Created attachment 544566 [details]
temp.tbz2
This particular warning-transformed-into-error no longer occurs in dev-libs/libpfm-4.10.1 (bug #666615), but that version still uses generic -Werror flag. Conveniently warning-affecting options are collected in DBG= variable: DBG?=-g -Wall -Werror -Wextra -Wno-unused-parameter This can be overridden as: --- a/dev-libs/libpfm/libpfm-4.8.0.ebuild +++ b/dev-libs/libpfm/libpfm-4.8.0.ebuild @@ -27,3 +27,3 @@ src_prepare() { src_compile() { - emake CC=$(tc-getCC) + emake CC=$(tc-getCC) DBG= } The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26a67103e93b055fe9b9eb4eb5db3f95018a1f0a commit 26a67103e93b055fe9b9eb4eb5db3f95018a1f0a Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-12-04 21:43:42 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-12-04 21:44:10 +0000 dev-libs/libpfm: drop -Werror, bug #664294 Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/664294 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> dev-libs/libpfm/libpfm-4.4.0.ebuild | 5 +++-- dev-libs/libpfm/libpfm-4.6.0.ebuild | 5 +++-- dev-libs/libpfm/libpfm-4.8.0.ebuild | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) |