[Debian-astro-maintainers] Bug#1015397: eso-midas: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:51:52 BST 2022


Package: src:eso-midas
Version: 22.02pl1.0-1
Severity: minor
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-lto

This package currently fails to build (at least on the amd64
architecture) with link time optimizations enabled.  For a background
for LTO please see

https://wiki.debian.org/ToolChain/LTO

The goal is to enable this optimization by default in an upcoming
Debian release in dpkg-buildflags for 64bit architectures.  The goal
is to get this package to build with link time optimizations, or to
explicitly disable link time optimizations for this package build.

To reproduce the build failure, enable the lto optimization in
testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS
in the debian/rules file, or if this macro is unset, just set it:

export DEB_BUILD_MAINT_OPTIONS = optimize=+lto

Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:

export DEB_BUILD_MAINT_OPTIONS = optimize=-lto

or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/eso-midas_22.02pl1.0-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbf1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std7_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `ste2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `sti2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbl3_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbc1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stgn4_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std8_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbe5_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stloc_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stk11_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std12_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stt3_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stk14_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stc3_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stf7_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stgn1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbe2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std15_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbr4_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std6_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stp1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std4a_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `ste1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stf6_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbu2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stk5_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std3_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stk2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbr2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stf1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stf8_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `ststr_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stc4_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stp2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stgn5_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `std9_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stgn6_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbu1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbl1_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stt2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbc4_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stk10_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `tbt2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stc2_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stgn3_'
/usr/bin/ld: /<<PKGBUILDDIR>>/22FEB/lib/libmidas.so: undefined reference to `stk1_'
collect2: error: ld returned 1 exit status
make[2]: [makefile:73: ../../exec/irspec.exe] Error 1 (ignored)
echo ../../exec/irspec.exe
../../exec/irspec.exe
done
make[2]: Leaving directory '/<<PKGBUILDDIR>>/22FEB/gui/XIrspec/src'

**********************************************
****** INSTALLING IN ./gui/XIrspec/proc
**********************************************
make[2]: Entering directory '/<<PKGBUILDDIR>>/22FEB/gui/XIrspec/proc'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/22FEB/gui/XIrspec/proc'

*********************************************************************
******************** END INSTALLATION PROCEDURE *********************
*********************************************************************
********** END DATE:  Fri Jun 10 08:51:15 UTC 2022
********** SYSTEM: 
test -x /<<PKGBUILDDIR>>/22FEB/monit/midasgo.exe
make[1]: *** [debian/rules:34: override_dh_auto_build-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:21: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-astro-maintainers mailing list