Source: spdlog
Version: 1:1.15.0+ds-2
Severity: wishlist
Tags: ftbfs
X-Debbugs-Cc: sudipm.mukher...@gmail.com

Dear Maintainer,

Debian has not yet enabled LTO, but in Ubuntu the builds are failing with
the following error:

dh_auto_test --no-parallel
        cd obj-powerpc64le-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=1 
ninja test
[0/1] Running tests...
Test project /<<PKGBUILDDIR>>/obj-powerpc64le-linux-gnu
    Start 1: spdlog-utests
1/2 Test #1: spdlog-utests ....................Subprocess aborted***Exception:  
 3.56 sec
[*** LOG ERROR #0001 ***] [2025-01-22 16:12:09] [test-error] argument not found

The full log can be seen at:
https://launchpadlibrarian.net/772157586/buildlog_ubuntu-plucky-ppc64el.spdlog_1%3A1.15.0+ds-2_BUILDING.txt.gz

It will be really appreciated if the following diff can be added to spdlog
to disable LTO please.

diff -Nru spdlog-1.15.0+ds/debian/rules spdlog-1.15.0+ds/debian/rules
--- spdlog-1.15.0+ds/debian/rules       2025-01-02 16:03:40.000000000 +0000
+++ spdlog-1.15.0+ds/debian/rules       2025-01-24 18:13:15.000000000 +0000
@@ -5,7 +5,7 @@
   export DEB_LDFLAGS_MAINT_APPEND=-latomic
 endif
 
-export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all optimize=-lto
 
 soversion = 1.15
 fmtabi = $(shell apt show libfmt-dev 2>/dev/null | sed -n 's/Depends: 
.*libfmt\([0-9]*\) .*/\1/p')


-- 
Regards
Sudip

Reply via email to