wiki:gcc14-todo

Some packages may need an adaption with GCC 14

Reference: ​https://gitlab.com/fweimer-rh/fedora-modernc

Serious issues marked as bold.

cmake (3.28.1)

https://gitlab.kitware.com/cmake/cmake/-/commit/806c40a38fc6e1996738173ecfa23a26f7502dbf

Two tests fail.

Fixed 3.28.2.

xmlto (0.0.28)

FTBFS:

xmlif/xmlif.l:46:8: error: type defaults to 'int' in declaration of 'ifsense' [-Wimplicit-int]
   46 | static ifsense;                 /* sense of last `if' or unless seen */
      |        ^~~~~~~
xmlif/xmlif.l:243:1: error: return type defaults to 'int' [-Wimplicit-int]
  243 | {
      | ^   
make[1]: *** [Makefile:741: xmlif/xmlif.o] Error 1

sed -e '/^static/s|ifsense|int &|' -e 's|^main|int &|' -i xmlif/xmlif.l

zsh (5.9)

Configure script wrongly probe things and then FTBFS:

termcap.c:45:14: error: conflicting types for 'boolcodes'; have 'char *[]'
   45 | static char *boolcodes[] = {
      |              ^~~~~~~~~
In file included from ../../Src/zshterm.h:1,
                 from ../../Src/zsh_system.h:932,
                 from ../../Src/zsh.mdh:15,
                 from termcap.mdh:15,
                 from termcap.c:38:
/usr/include/term.h:783:56: note: previous declaration of 'boolcodes' with type 'const char * const[]'
  783 | extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];
      |                                                        ^~~~~~~~~
make[3]: *** [Makefile:230: termcap.o] Error 1

Note that simply fixing up termcap.c will cover up the real issue and produce an zsh executable hanging at runtime. The upstream changes can be done via sed:

sed -i -e 's/^main/int &/' -e 's/exit(/return(/' aczsh.m4 configure.ac
sed -i 's/test = /&(char**)/'                    configure.ac
autoreconf
Last modified 3 months ago Last modified on 02/04/2024 05:48:45 PM
Note: See TracWiki for help on using the wiki.