Bug#1074971: fteqcc: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:26:58 BST 2024


Package: src:fteqcc
Version: 3343+svn3400-5
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/fteqcc_3343+svn3400-5_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
qcc_pr_comp.c: In function ‘QCC_PR_Expression’:
qcc_pr_comp.c:5028:33: warning: variable ‘type_b’ set but not used [-Wunused-but-set-variable]
 5028 |         etype_t         type_a, type_b, type_c;
      |                                 ^~~~~~
qcc_pr_comp.c: In function ‘QCC_PR_ParseState’:
qcc_pr_comp.c:6394:14: warning: variable ‘f’ set but not used [-Wunused-but-set-variable]
 6394 |         char f;
      |              ^
qcc_pr_comp.c: In function ‘QCC_PR_GetDef’:
qcc_pr_comp.c:8029:23: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
 8029 |         if (pHash_Get != &Hash_Get && !allocate)        //do we want to try case insensative too?
      |                       ^~
qcc_pr_comp.c: In function ‘QCC_PR_DummyFieldDef’:
qcc_pr_comp.c:8194:25: warning: value computed is not used [-Wunused-value]
 8194 |                         *fieldofs++;
      |                         ^~~~~~~~~~~
qcc_pr_comp.c: In function ‘QCC_PR_ExpandUnionToFields’:
qcc_pr_comp.c:8288:53: warning: pointer targets in passing argument 5 of ‘QCC_PR_DummyFieldDef’ differ in signedness [-Wpointer-sign]
 8288 |         QCC_PR_DummyFieldDef(pass, "", pr_scope, 1, fields, true);
      |                                                     ^~~~~~
      |                                                     |
      |                                                     int *
qcc_pr_comp.c:8151:110: note: expected ‘unsigned int *’ but argument is of type ‘int *’
 8151 | QCC_def_t *QCC_PR_DummyFieldDef(QCC_type_t *type, char *name, QCC_def_t *scope, int arraysize, unsigned int *fieldofs, pbool saved)
      |                                                                                                ~~~~~~~~~~~~~~^~~~~~~~
qcc_pr_comp.c: In function ‘QCC_PR_ParseDefs’:
qcc_pr_comp.c:9044:9: note: ‘#pragma message: this is experimental’
 9044 | #pragma message("this is experimental")
      |         ^~~~~~~
qcc_pr_comp.c:9491:96: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 9491 |                                                         if (Hash_GetKey(&floatconstdefstable, *(int*)&pr_immediate._float))
      |                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
qcc_pr_lex.c:540:25: warning: ‘strncpy’ output may be truncated copying 1023 bytes from a string of length 1023 [-Wstringop-truncation]
  540 |                         strncpy(QCC_copyright, msg, sizeof(QCC_copyright)-1);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qcc_pr_comp.c: In function ‘QCC_PR_ParseFunctionCall’:
qcc_pr_comp.c:3340:28: warning: ‘old’ may be used uninitialized [-Wmaybe-uninitialized]
 3340 |                         if (old)
      |                            ^
qcc_pr_comp.c:3013:42: note: ‘old’ was declared here
 3013 |         QCC_def_t               *e, *d, *old, *oself, *out;
      |                                          ^~~
In file included from qcc_pr_comp.c:3:
qcc_pr_comp.c: In function ‘QCC_PR_ParseDefs’:
qcc_pr_comp.c:9121:60: warning: ‘i’ may be used uninitialized [-Wmaybe-uninitialized]
 9121 |                                         G_FUNCTION(def->ofs+i) = G_FUNCTION(d->ofs);
      |                                                    ~~~~~~~~^~
qcc.h:783:51: note: in definition of macro ‘G_FUNCTION’
  783 | #define G_FUNCTION(o) (*(func_t *)&qcc_pr_globals[o])
      |                                                   ^
qcc_pr_comp.c:8306:33: note: ‘i’ was declared here
 8306 |         int                     i;
      |                                 ^
qcc_pr_comp.c: In function ‘QCC_PR_ParseStatement’:
qcc_pr_comp.c:6207:17: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 8191 [-Wstringop-truncation]
 6207 |                 strncpy(pr_labels[num_labels].name, pr_token, sizeof(pr_labels[num_labels].name) -1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qcc_pr_comp.c: In function ‘QCC_PR_ParseImmediateStatements’:
qcc_pr_comp.c:7277:49: warning: ‘defs’ may be used uninitialized [-Wmaybe-uninitialized]
 7277 |                 locals_start = locals_end = defs[0]->ofs;
      |                                             ~~~~^~~
qcc_pr_comp.c:7196:34: note: ‘defs’ declared here
 7196 |         QCC_def_t               *defs[MAX_PARMS+MAX_EXTRA_PARMS], *e2;
      |                                  ^~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:38: qcc] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list