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 <emoll...@debian.org>
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/2, please excuse my verbosity
   `-

Attachment: signature.asc
Description: PGP signature

Reply via email to