[tex-k] compile failure of pdftex with gcc-14 (-Wincompatible-pointer-types, only 32bit arches)

Andreas K. Huettel dilfridge at gentoo.org
Wed Nov 20 14:08:58 CET 2024


Dear all, 

while this works fine on x86_64, we get a build failure of pdftex for x86 / i686 / 32bit builds.

pdftexini.c: In function 'loadfmtfile':
pdftexini.c:4015:25: error: assignment to 'boolean *' {aka 'int *'} from incompatible pointer type 'internalfontnumber *' {aka 'long int *'} [-Wincompatible-pointer-types]
 4015 |     pdffonthasspacechar = xmallocarray ( internalfontnumber , fontmax ) ;
      |                         ^
pdftexini.c: In function 'mainbody':
pdftexini.c:5568:27: error: assignment to 'boolean *' {aka 'int *'} from incompatible pointer type 'internalfontnumber *' {aka 'long int *'} [-Wincompatible-pointer-types]
 5568 |       pdffonthasspacechar = xmallocarray ( internalfontnumber , fontmax ) ;
      |                           ^
make[5]: *** [Makefile:17888: pdftex-pdftexini.o] Error 1

The c file in question is autogenerated code, so I dont even know where to start debugging.
Obviously the problem can be circumvented by disabling that type of warning, however
the mismatch smells like a real bug to me.

Original report: https://bugs.gentoo.org/928096

Thanks a lot in advance for your help; best,
Andreas

-- 
Andreas K. Hüttel
dilfridge at gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 981 bytes
Desc: This is a digitally signed message part.
URL: <https://tug.org/pipermail/tex-k/attachments/20241120/c63adcde/attachment.sig>


More information about the tex-k mailing list.