[Debian-pan-maintainers] Bug#1075261: mccode: ftbfs with GCC-14
Matthias Klose
doko at debian.org
Wed Jul 3 13:36:11 BST 2024
Package: src:mccode
Version: 0.0~git20240608173115.707559c+ds4-1
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/mccode_0.0~git20240608173115.707559c+ds4-1_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
[...]
/<<PKGBUILDDIR>>/mcstas/src/instrument.y:1115:9: note: ‘sprintf’ output between 3 and 22 bytes into a destination of size 10
1115 | sprintf(str_index, "_%li", comp_current_index+1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/mcstas/src/instrument.y:1109:28: warning: ‘%li’ directive writing between 1 and 20 bytes into a region of size 9 [-Wformat-overflow=]
1109 | sprintf(str_index, "_%li", comp_current_index+1);
| ^~~~~~
/<<PKGBUILDDIR>>/mcstas/src/instrument.y:1109:28: note: directive argument in the range [-9223372036854775807, 9223372036854775807]
/<<PKGBUILDDIR>>/mcstas/src/instrument.y:1109:9: note: ‘sprintf’ output between 3 and 22 bytes into a destination of size 10
1109 | sprintf(str_index, "_%li", comp_current_index+1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 50%] Linking C executable mcstas
make[4]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
[ 50%] Built target mcstas
make[4]: Entering directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
[ 53%] Generating work/src/py-lex.yy.c
[ 56%] Generating work/src/py-instrument.tab.h, work/src/py-instrument.tab.c
make[4]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
make[4]: Entering directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
[ 59%] Building C object CMakeFiles/mcstas-pygen.dir/work/src/py-cexp.c.o
[ 62%] Building C object CMakeFiles/mcstas-pygen.dir/work/src/pygen.c.o
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c: In function ‘def_uservars’:
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c:430:16: error: initialization of ‘List’ {aka ‘struct List_header *’} from incompatible pointer type ‘List_handle’ {aka ‘struct List_position *’} [-Wincompatible-pointer-types]
430 | List liter = list_iterate(instr->user_vars);
| ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c:431:17: error: initialization of ‘List’ {aka ‘struct List_header *’} from incompatible pointer type ‘List_handle’ {aka ‘struct List_position *’} [-Wincompatible-pointer-types]
431 | List liter2 = list_iterate(instr->user_vars_types);
| ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c:434:26: error: passing argument 1 of ‘list_next’ from incompatible pointer type [-Wincompatible-pointer-types]
434 | while((var = list_next(liter))) {
| ^~~~~
| |
| List {aka struct List_header *}
In file included from /<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c:30:
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/mccode.h:154:17: note: expected ‘List_handle’ {aka ‘struct List_position *’} but argument is of type ‘List’ {aka ‘struct List_header *’}
154 | void *list_next(List_handle); /* Get next element in list. */
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c:435:21: error: passing argument 1 of ‘list_next’ from incompatible pointer type [-Wincompatible-pointer-types]
435 | tpe = list_next(liter2);
| ^~~~~~
| |
| List {aka struct List_header *}
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/mccode.h:154:17: note: expected ‘List_handle’ {aka ‘struct List_position *’} but argument is of type ‘List’ {aka ‘struct List_header *’}
154 | void *list_next(List_handle); /* Get next element in list. */
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c:438:20: error: passing argument 1 of ‘list_iterate_end’ from incompatible pointer type [-Wincompatible-pointer-types]
438 | list_iterate_end(liter);
| ^~~~~
| |
| List {aka struct List_header *}
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/mccode.h:156:23: note: expected ‘List_handle’ {aka ‘struct List_position *’} but argument is of type ‘List’ {aka ‘struct List_header *’}
156 | void list_iterate_end(List_handle); /* End list traversal. */
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/pygen.c:439:20: error: passing argument 1 of ‘list_iterate_end’ from incompatible pointer type [-Wincompatible-pointer-types]
439 | list_iterate_end(liter2);
| ^~~~~~
| |
| List {aka struct List_header *}
/<<PKGBUILDDIR>>/BUILD/mcstas/work/src/mccode.h:156:23: note: expected ‘List_handle’ {aka ‘struct List_position *’} but argument is of type ‘List’ {aka ‘struct List_header *’}
156 | void list_iterate_end(List_handle); /* End list traversal. */
| ^~~~~~~~~~~
make[4]: *** [CMakeFiles/mcstas-pygen.dir/build.make:102: CMakeFiles/mcstas-pygen.dir/work/src/pygen.c.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
make[3]: *** [CMakeFiles/Makefile2:111: CMakeFiles/mcstas-pygen.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
make[2]: *** [Makefile:156: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
make[1]: *** [debian/rules:32: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:20: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Debian-pan-maintainers
mailing list