Bug#1050031: coinor-bonmin: FTBFS with /usr/bin/ld: cannot find -lgfortran

Emanuele Rocca ema at debian.org
Fri Aug 18 15:45:44 BST 2023


Source: coinor-bonmin
Version: 1.8.9-1
Severity: serious
Tags: sid trixie ftbfs

Hi,

coinor-bonmin fails to build with the following error:

g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/13/crtbeginS.o  .libs/BonCbc.o .libs/BonCbcNlpStrategy.o .libs/BonCbcNode.o .libs/BonBabInfos.o .libs/BonGuessHeuristic.o .libs/BonDiver.o -Wl,--whole-archive ../Algorithms/.libs/libbonalgorithms.a ../Interfaces/.libs/libbonmininterfaces.a Heuristics/.libs/libbonheuristics.a -Wl,--no-whole-archive  -lCbcSolver -lCbc -lpthread -lrt -lCgl -lOsiClp -lClpSolver -lClp -lOsi -lCoinUtils -lbz2 -lz -lipopt -L/usr/lib/gcc/x86_64-linux-gnu/13 -L/usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/13/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/13/../../.. -llapack -ldmumps_seq -lgfortran -lquadmath -lblas -ldl -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/13/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/crtn.o  -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libbonmin.so.4 -o .libs/libbonmin.so.4.8.9
/usr/bin/ld: cannot find -lgfortran: No such file or directory
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:503: libbonmin.la] Error 1

Version 1.8.9-1 of the package did build properly in the past [1]. One
potentially significant difference is that the successful build was with
GCC-12, while the failure occurrs with GCC-13.

[1] https://buildd.debian.org/status/fetch.php?pkg=coinor-bonmin&arch=amd64&ver=1.8.9-1%2Bb1&stamp=1690533628&raw=0



More information about the debian-science-maintainers mailing list