Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 928096

Summary: app-text/texlive-core-2023-r5 fails to compile: pdftexini.c:4015:25: error: assignment to boolean {aka int } from incompatible pointer type internalfontnumber {aka long int } [-Wincompatible-pointer-types]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: CONFIRMED ---    
Severity: normal CC: flow, tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=915223
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log.xz

Description Agostino Sarubbo gentoo-dev 2024-03-29 07:53:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/texlive-core-2023-r5 fails to compile.
Discovered on: x86 (internal ref: tinderbox_x86)
System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0003
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-29 07:53:43 UTC
Created attachment 888969 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Florian Schmaus gentoo-dev 2024-04-04 07:22:44 UTC
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[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-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[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types]]
 5568 |       pdffonthasspacechar = xmallocarray ( internalfontnumber , fontmax ) ;
      |                           ^
make[5]: *** [Makefile:17857: pdftex-pdftexini.o] Error 1
Comment 3 Florian Schmaus gentoo-dev 2024-04-04 12:41:10 UTC
It seems that pdftexini.c is not part of the source code of texlive, but rather somehow generated? Then again, I am not yet able to locate the part where it is generated.