[Bug 1228342] New: Package texlive does not build with gcc 14 on i586 because of use of incompatible pointer types

https://bugzilla.suse.com/show_bug.cgi?id=1228342 Bug ID: 1228342 Summary: Package texlive does not build with gcc 14 on i586 because of use of incompatible pointer types Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: mjambor@suse.com QA Contact: qa-bugs@suse.de CC: werner@suse.com Blocks: 1220571 Target Milestone: --- Found By: --- Blocker: --- 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. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1228342 https://bugzilla.suse.com/show_bug.cgi?id=1228342#c1 --- Comment #1 from Martin Jambor <mjambor@suse.com> --- I have created https://build.opensuse.org/request/show/1189820 to work around the problem until we can fix it. My plan is to not close the bug and keep an eye on the package and remove the option disabling the error when (upstream hopefully fixes it and) we can do so. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1228342 https://bugzilla.suse.com/show_bug.cgi?id=1228342#c2 --- Comment #2 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1228342) was mentioned in https://build.opensuse.org/request/show/1194242 Factory / texlive -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1228342 https://bugzilla.suse.com/show_bug.cgi?id=1228342#c3 --- Comment #3 from Dr. Werner Fink <werner@suse.com> --- (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: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1228342 https://bugzilla.suse.com/show_bug.cgi?id=1228342#c4 --- Comment #4 from Martin Jambor <mjambor@suse.com> --- Issue reported upstream: https://tug.org/pipermail/tex-live/2024-August/050810.html (Thanks!) -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1228342 https://bugzilla.suse.com/show_bug.cgi?id=1228342#c5 --- Comment #5 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1228342) was mentioned in https://build.opensuse.org/request/show/1194293 Factory / texlive -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1228342 https://bugzilla.suse.com/show_bug.cgi?id=1228342#c9 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #9 from Dr. Werner Fink <werner@suse.com> --- (In reply to OBSbugzilla Bot from comment #5)
This is an autogenerated message for OBS integration: This bug (1228342) was mentioned in https://build.opensuse.org/request/show/1194293 Factory / texlive -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com