--- Begin Message ---
- To: maintonly@bugs.debian.org
- Subject: coinor-symphony: ftbfs with GCC-11
- From: Matthias Klose <doko@debian.org>
- Date: Wed, 03 Mar 2021 16:11:21 +0000
- Message-id: <E1lHU5p-0007Cs-JW@paradis.debian.org>
Package: src:coinor-symphony
Version: 5.6.16+repack1-3
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/coinor-symphony_5.6.16+repack1-3_unstable_gcc11.log
The last lines of the build log are at the end of this report.
To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html
GCC 11 defaults to the GNU++17 standard. If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.
[...]
LP/lp_solver.c:2491:30: warning: statement will never be executed [-Wswitch-unreachable]
2491 | printf("%c \n", sense[i]);
| ^
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c TreeManager/tm_func.c -o libSym_la-tm_func.o >/dev/null 2>&1
TreeManager/tm_proccomm.c: In function 'void receive_node_desc(tm_prob*, bc_node*)':
TreeManager/tm_proccomm.c:821:39: warning: '%i' directive writing between 1 and 11 bytes into a region of size between 0 and 49 [-Wformat-overflow=]
821 | sprintf(reason, "%s %i", reason, n->parent->bc_index + 1);
| ^~
TreeManager/tm_proccomm.c:821:35: note: directive argument in the range [-2147483647, 2147483647]
821 | sprintf(reason, "%s %i", reason, n->parent->bc_index + 1);
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from TreeManager/tm_proccomm.c:17:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 3 and 62 bytes into a destination of size 50
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TreeManager/tm_proccomm.c:819:39: warning: '%i' directive writing 1 byte into a region of size between 0 and 49 [-Wformat-overflow=]
819 | sprintf(reason, "%s %i", reason, 0);
| ^~
In file included from /usr/include/stdio.h:867,
from TreeManager/tm_proccomm.c:17:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 3 and 52 bytes into a destination of size 50
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TreeManager/tm_proccomm.c:832:36: warning: '%c' directive writing 1 byte into a region of size between 0 and 49 [-Wformat-overflow=]
832 | sprintf(reason, "%s %c %f %f %i", reason, branch_dir,
| ^~
TreeManager/tm_proccomm.c:832:32: note: assuming directive output of 8 bytes
832 | sprintf(reason, "%s %c %f %f %i", reason, branch_dir,
| ^~~~~~~~~~~~~~~~
TreeManager/tm_proccomm.c:832:32: note: assuming directive output of 8 bytes
TreeManager/tm_proccomm.c:832:32: note: directive argument in the range [0, 2147483647]
In file included from /usr/include/stdio.h:867,
from TreeManager/tm_proccomm.c:17:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 13 and 699 bytes into a destination of size 50
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c TreeManager/tm_proccomm.c -o libSym_la-tm_proccomm.o >/dev/null 2>&1
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_solver.c -o libSym_la-lp_solver.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo ../include` -I`echo ../include` -I`echo ../Applications/USER/include` -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c -o libSym_la-lp_varfunc.lo `test -f 'LP/lp_varfunc.c' || echo './'`LP/lp_varfunc.c
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_varfunc.c -fPIC -DPIC -o .libs/libSym_la-lp_varfunc.o
/bin/bash ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo ../include` -I`echo ../include` -I`echo ../Applications/USER/include` -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c -o libSym_la-lp_rowfunc.lo `test -f 'LP/lp_rowfunc.c' || echo './'`LP/lp_rowfunc.c
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_rowfunc.c -fPIC -DPIC -o .libs/libSym_la-lp_rowfunc.o
/bin/bash ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo ../include` -I`echo ../include` -I`echo ../Applications/USER/include` -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c -o libSym_la-lp_genfunc.lo `test -f 'LP/lp_genfunc.c' || echo './'`LP/lp_genfunc.c
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_genfunc.c -fPIC -DPIC -o .libs/libSym_la-lp_genfunc.o
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_varfunc.c -o libSym_la-lp_varfunc.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo ../include` -I`echo ../include` -I`echo ../Applications/USER/include` -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c -o libSym_la-lp_proccomm.lo `test -f 'LP/lp_proccomm.c' || echo './'`LP/lp_proccomm.c
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_proccomm.c -fPIC -DPIC -o .libs/libSym_la-lp_proccomm.o
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_rowfunc.c -o libSym_la-lp_rowfunc.o >/dev/null 2>&1
LP/lp_genfunc.c: In function 'int generate_cgl_cuts_new(lp_prob*, int*, cut_data***, int, int*)':
LP/lp_genfunc.c:2432:28: error: ordered comparison of pointer with integer zero ('int*' and 'int')
2432 | if(i < 0 && num_cuts > 0) should_stop = TRUE;
| ~~~~~~~~~^~~
make[3]: *** [Makefile:4251: libSym_la-lp_genfunc.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../Applications/USER/include -I/usr/include/coin -I/usr/include/coin -I/usr/include/coin -D__OSI_CLP__ -DUSE_CGL_CUTS -DSIGHANDLER -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__LINUX -DCOMPILE_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSYMPHONY_BUILD -Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual -c LP/lp_proccomm.c -o libSym_la-lp_proccomm.o >/dev/null 2>&1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:650: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--- End Message ---