[Debian-med-packaging] Bug#1096727: Fwd: Bug#1096727: gmap: ftbfs with GCC-15

Étienne Mollier emollier at debian.org
Tue Feb 25 22:06:40 GMT 2025


Control: forwarded -1 twu at gene.com
Control: tags -1 + patch

Hi Thomas,

For information, we noticed in Debian bug #1096727[1] that gmap
failed to build from source with Gcc 15 due to using by default
the standard C 2023.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096727

Here is an excerpt of the build log, obtained by Matthias Klose,
on 2025-02-17:

>     7 | typedef unsigned char bool;
>       | ^~~~~~~
> In file included from ../../src/gmap_select.c:1:
> ../../src/bool.h:7:23: error: ‘bool’ cannot be defined via ‘typedef’
>     7 | typedef unsigned char bool;
>       |                       ^~~~
> ../../src/bool.h:7:23: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
> ../../src/bool.h:7:1: warning: useless type name in empty declaration
>     7 | typedef unsigned char bool;
>       | ^~~~~~~
> In file included from ../../src/cpuid.h:4,
>                  from ../../src/cpuid.c:6:

I took the liberty to have a look at mitigating the build
failure and came up with a patch which you may find useful and
you will find in attachment.

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/0, please excuse my verbosity
   `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c23.patch
Type: text/x-diff
Size: 1485 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20250225/efe646f3/attachment.patch>
-------------- 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/20250225/efe646f3/attachment.sig>


More information about the Debian-med-packaging mailing list