Comment # 3 on bug 1228342 from Dr. Werner Fink
(In reply to Martin Jambor from comment #0)
> Package texlive fails to build with GCC 14 on i586 (and probably othr 32bit
> architectures too) because of various C99 violations which previously just
> generated warning s but which cause errors with GCC 14 by default (see meta
> bug#1220571).
> 
> The (first) problem stopping the build is:
> 
> pdftexini.c: In function 'loadfmtfile':
> pdftexini.c:4016:25: error: assignment to 'boolean *' {aka 'int *'} from
> incompatible pointer type 'internalfontnumber  ' {aka 'long int *'}
> [-Wincompatible-pointer-types]
>  4016 |     pdffonthasspacechar = xmallocarray ( internalfontnumber ,
> fontmax ) ;
>       |                         ^
> pdftexini.c: In function 'mainbody':
> pdftexini.c:5569:27: error: assignment to 'boolean *' {aka 'int *'} from
> incompatible pointer type 'internalfontnumber  ' {aka 'long int *'}
> [-Wincompatible-pointer-types]
>  5569 |       pdffonthasspacechar = xmallocarray ( internalfontnumber ,
> fontmax ) ;
>       |                           ^
> 
> so IIUC double the necessary size is allocated rater than just half but it
> looks like a genuine type issue.  We can work-around the issue by building
> with -Wno-error=incompatible-pointer-types (on 32 bit architectures) but it
> is always better to fix these issues.
> 
> I admit that so far I am super puzzled where the file texk/web2c/pdftexini.c
> comes from (or rather how it is generated?) so I'd be grateful if someone
> who knows the package better looked at this.

Those files are autogenerated from web source (*.web), that is patching the C
files is only possible *after* web2c has generated the C files *or* with the
help of a change file (*.ch) for the web code.

With SR#1194242 the problem should be worked around ;)


You are receiving this mail because: