Package: src:zfp Version: 1.0.0-5 Severity: minor Tags: ftbfs fixed-upstream Forwarded: https://github.com/LLNL/zfp/issues/169 User: debian-...@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 64-bit 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. I've copied what I hope is the relevant part of the build log below. Regards Graham [ 93%] Linking C executable ../bin/zfp cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/utils && /usr/bin/cmake -E cmake_link_script CMakeFiles/zfpcmd.dir/link.txt --verbose=1 /usr/bin/cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/zfp-1.0.0-5 -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now CMakeFiles/zfpcmd.dir/zfp.c.o -o ../bin/zfp -Wl,-rpath,/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/lib/x86_64-linux-gnu: ../lib/x86_64-linux-gnu/libzfp.so.1.0.0 cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/fortran && /usr/bin/cmake -E cmake_symlink_library ../lib/x86_64-linux-gnu/libzFORp.so.1.0.0 ../lib/x86_64-linux-gnu/libzFORp.so.1 ../lib/x86_64-linux-gnu/libzFORp.so /usr/bin/cmake -E touch fortran/CMakeFiles/zFORp.dir/zfp.f90.o.provides.build make[3]: Leaving directory '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build' [ 93%] Built target zFORp /usr/bin/ld: /tmp/ccQBYXYU.ltrans0.ltrans.o: in function `main': /usr/src/zfp-1.0.0-5/utils/zfp.c:76: undefined reference to `sqrt' /usr/bin/ld: /tmp/ccQBYXYU.ltrans0.ltrans.o:/usr/src/zfp-1.0.0-5/utils/zfp.c:78: undefined reference to `log10' collect2: error: ld returned 1 exit status