unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53347: Compilation error on package Papi 5.5.1
@ 2022-01-18 10:58 Clement Barthelemy
  2022-01-18 17:50 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Clement Barthelemy @ 2022-01-18 10:58 UTC (permalink / raw)
  To: 53347

Hi,

The package papi@5.5.1 does not compile. It fails with an error during the build phase :

‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]

While this is a problem in the application itself, GCC started diagnosing these problems in version 7.1¹ and expanded coverage in version 8², so a change in the compiler version probably triggered the problem.

Also, I believe this is fixed in newer releases of PAPI³ but I don't know if updating the version would be acceptable.


Clément


1. https://gcc.gnu.org/gcc-7/changes.html section -Wformat-truncation=level
2. https://gcc.gnu.org/gcc-8/changes.html
3. https://bitbucket.org/icl/papi/issues/51/build-failed-using-gcc-810




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#53347: Compilation error on package Papi 5.5.1
  2022-01-18 10:58 bug#53347: Compilation error on package Papi 5.5.1 Clement Barthelemy
@ 2022-01-18 17:50 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-01-18 17:50 UTC (permalink / raw)
  To: Clement Barthelemy; +Cc: 53347-done

Hi,

Clement Barthelemy <clement.barthelemy@inria.fr> skribis:

> The package papi@5.5.1 does not compile. It fails with an error during the build phase :
>
> ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]

Indeed, and that was in a bundled library.

Fixed with the upgrade in 775203e52083235a067e7a737a75b24eae375afb.

Thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-18 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 10:58 bug#53347: Compilation error on package Papi 5.5.1 Clement Barthelemy
2022-01-18 17:50 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).