[Debian-med-packaging] Bug#1081123: ftbfs with gcc-14 due to nim not accomodating warnings gone fatal
Étienne Mollier
emollier at debian.org
Wed Sep 11 21:52:57 BST 2024
Hello there,
If I trust Nim forum upstream[1], the nim compiler is failing to
operate properly with gcc-14. Until a newer Nim version fixing
these issues is released, the best approach to work around these
build failure might be to build the packages with CFLAGS set to
downgrade the severity of the warnings.
[1]: https://forum.nim-lang.org/t/11587
For all I can tell, if accomodating all the warnings gone fatal
by default in gcc-14 is a problem for the nim compiler, gcc-14
porting guide[2] suggests to inline pragmas this way in its
section "Accomodating C code generators":
#if defined __GNUC__ && __GNUC__ >= 14
#pragma GCC diagnostic warning "-Wimplicit-function-declaration"
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#pragma GCC diagnostic warning "-Wint-conversion"
#pragma GCC diagnostic warning "-Wreturn-mismatch"
#endif
but that would be something to apply to the nim compiler itself,
unless they're after solutions, not workarounds.
[2]: https://gcc.gnu.org/gcc-14/porting_to.html
Have a nice day, :)
--
.''`. Étienne Mollier <emollier at debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from /dev/pts/2, please excuse my verbosity
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20240911/bd19a1c1/attachment-0003.sig>
More information about the Debian-med-packaging
mailing list