Bug#853350: coinor-cbc: ftbfs with GCC-7

Matthias Klose doko at debian.org
Tue Jan 31 09:30:21 UTC 2017


Package: src:coinor-cbc
Version: 2.8.12-1
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-7

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-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/coinor-cbc_2.8.12-1_unstable_gcc7.log
The last lines of the build log are at the end of this report.

To build with GCC 7, either set CC=gcc-7 CXX=g++-7 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-7/porting_to.html

[...]
CbcSolver.cpp:1863:28: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
       "Build Date: %s \n", __DATE__);
                            ^~~~~~~~
CbcSolver.cpp:8457:52: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
                                   << ", build " << __DATE__ << std::endl;
                                                    ^~~~~~~~
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcSolver.cpp -o CbcSolver.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo .` -I../src  -I/usr/include/coin -I/usr/include/coin    -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DCBC_BUILD -c -o CbcSolverHeuristics.lo CbcSolverHeuristics.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcSolverHeuristics.cpp  -fPIC -DPIC -o .libs/CbcSolverHeuristics.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcSolverHeuristics.cpp -o CbcSolverHeuristics.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo .` -I../src  -I/usr/include/coin -I/usr/include/coin    -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DCBC_BUILD -c -o CbcSolverAnalyze.lo CbcSolverAnalyze.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcSolverAnalyze.cpp  -fPIC -DPIC -o .libs/CbcSolverAnalyze.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcSolverAnalyze.cpp -o CbcSolverAnalyze.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo .` -I../src  -I/usr/include/coin -I/usr/include/coin    -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DCBC_BUILD -c -o CbcMipStartIO.lo CbcMipStartIO.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcMipStartIO.cpp  -fPIC -DPIC -o .libs/CbcMipStartIO.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcMipStartIO.cpp -o CbcMipStartIO.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo .` -I../src  -I/usr/include/coin -I/usr/include/coin    -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DCBC_BUILD -c -o CbcSolverExpandKnapsack.lo CbcSolverExpandKnapsack.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcSolverExpandKnapsack.cpp  -fPIC -DPIC -o .libs/CbcSolverExpandKnapsack.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include/coin -I/usr/include/coin -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -c CbcSolverExpandKnapsack.cpp -o CbcSolverExpandKnapsack.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=link g++  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DCBC_BUILD  -Wl,-z,relro -o libCbcSolver.la -rpath /usr/lib/x86_64-linux-gnu -no-undefined -version-info 11:12:8 Cbc_C_Interface.lo CbcCbcParam.lo Cbc_ampl.lo CbcLinked.lo CbcLinkedUtils.lo unitTestClp.lo CbcSolver.lo CbcSolverHeuristics.lo CbcSolverAnalyze.lo CbcMipStartIO.lo CbcSolverExpandKnapsack.lo -lpthread -lrt -lOsiClp -lClp -lOsi -lCoinUtils -lbz2 -lz -llapack -lblas -lm -lCgl -lOsiClp -lClp -lOsi -lCoinUtils -lbz2 -lz -llapack -lblas -lm  libCbc.la 
g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o  .libs/Cbc_C_Interface.o .libs/CbcCbcParam.o .libs/Cbc_ampl.o .libs/CbcLinked.o .libs/CbcLinkedUtils.o .libs/unitTestClp.o .libs/CbcSolver.o .libs/CbcSolverHeuristics.o .libs/CbcSolverAnalyze.o .libs/CbcMipStartIO.o .libs/CbcSolverExpandKnapsack.o  -Wl,--rpath -Wl,/<<PKGBUILDDIR>>/src/.libs -lpthread -lrt -lCgl -lOsiClp -lClp -lOsi -lCoinUtils -lbz2 -lz -llapack -lblas ./.libs/libCbc.so -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o  -Wl,-z -Wl,relro -Wl,-soname -Wl,libCbcSolver.so.3 -o .libs/libCbcSolver.so.3.8.12
(cd .libs && rm -f libCbcSolver.so.3 && ln -s libCbcSolver.so.3.8.12 libCbcSolver.so.3)
(cd .libs && rm -f libCbcSolver.so && ln -s libCbcSolver.so.3.8.12 libCbcSolver.so)
ar cru .libs/libCbcSolver.a  Cbc_C_Interface.o CbcCbcParam.o Cbc_ampl.o CbcLinked.o CbcLinkedUtils.o unitTestClp.o CbcSolver.o CbcSolverHeuristics.o CbcSolverAnalyze.o CbcMipStartIO.o CbcSolverExpandKnapsack.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib .libs/libCbcSolver.a
creating libCbcSolver.la
(cd .libs && rm -f libCbcSolver.la && ln -s ../libCbcSolver.la libCbcSolver.la)
g++ -DHAVE_CONFIG_H -I. -I`echo .` -I../src  -I/usr/include/coin -I/usr/include/coin    -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DCBC_BUILD -c -o CoinSolve.o CoinSolve.cpp
/bin/bash ../libtool --tag=CXX --mode=link g++  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DCBC_BUILD  -Wl,-z,relro -o cbc  CoinSolve.o libCbcSolver.la libCbc.la -lpthread -lrt -lOsiClp -lClp -lOsi -lCoinUtils -lbz2 -lz -llapack -lblas -lm -lCgl -lOsiClp -lClp -lOsi -lCoinUtils -lbz2 -lz -llapack -lblas -lm   
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCBC_BUILD -Wl,-z -Wl,relro -o .libs/cbc CoinSolve.o  ./.libs/libCbcSolver.so /<<PKGBUILDDIR>>/src/.libs/libCbc.so ./.libs/libCbc.so -lpthread -lrt -lCgl -lOsiClp -lClp -lOsi -lCoinUtils -lbz2 -lz -llapack -lblas -lm
./.libs/libCbcSolver.so: undefined reference to `virtual thunk to OsiClpSolverInterface::getColName[abi:cxx11](int, unsigned int) const'
./.libs/libCbcSolver.so: undefined reference to `virtual thunk to OsiClpSolverInterface::getRowName[abi:cxx11](int, unsigned int) const'
collect2: error: ld returned 1 exit status
Makefile:842: recipe for target 'cbc' failed
make[4]: *** [cbc] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
Makefile:722: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
Makefile:575: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 returned exit code 2
debian/rules:7: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:24: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2



More information about the debian-science-maintainers mailing list