#1015390 dtkcore: ftbfs with LTO (link time optimization) enabled

#1015390#5
Date:
2022-07-19 16:51:36 UTC
From:
To:
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/dtkcore_5.5.31-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
    Which is: {}
  QString("FileBackend")
    Which is: { 2-byte object <46-00>, 2-byte object <69-00>, 2-byte object <6C-00>, 2-byte object <65-00>, 2-byte object <42-00>, 2-byte object <61-00>, 2-byte object <63-00>, 2-byte object <6B-00>, 2-byte object <65-00>, 2-byte object <6E-00>, 2-byte object <64-00> }
[  FAILED  ] ut_DConfig.backend (0 ms)
[ RUN      ] ut_DConfig.isValid
No appenders assotiated with category dtk.dsg.config
[Warning] <> Can't load meta file from local prefix: "/tmp/example"
No appenders assotiated with category dtk.dsg.config
[Warning] <> DConfig is invalid of appid=deepin-test-dtk name=example, subpath=
ut_dconfig.cpp:72: Failure
Value of: config.isValid()
  Actual: false
Expected: true
[  FAILED  ] ut_DConfig.isValid (0 ms)
[ RUN      ] ut_DConfig.value
No appenders assotiated with category dtk.dsg.config
[Warning] <> Can't load meta file from local prefix: "/tmp/example"
No appenders assotiated with category dtk.dsg.config
[Warning] <> DConfig is invalid of appid=deepin-test-dtk name=example, subpath=
No appenders assotiated with category dtk.dsg.config
[Warning] <> DConfig is invalid of appid=deepin-test-dtk name=example, subpath=
ut_dconfig.cpp:83: Failure
Expected equality of these values:
  config.value("key2").toString()
    Which is: {}
  QString("126")
    Which is: { 2-byte object <31-00>, 2-byte object <32-00>, 2-byte object <36-00> }
[  FAILED  ] ut_DConfig.value (0 ms)
[ RUN      ] ut_DConfig.keyList
No appenders assotiated with category dtk.dsg.config
[Warning] <> Can't load meta file from local prefix: "/tmp/example"
No appenders assotiated with category dtk.dsg.config
[Warning] <> DConfig is invalid of appid=deepin-test-dtk name=example, subpath=
ut_dconfig.cpp:125: Failure
Value of: config.keyList().contains(item)
  Actual: false
Expected: true
[  FAILED  ] ut_DConfig.keyList (1 ms)
[ RUN      ] ut_DConfig.OtherAppConfigfile
[       OK ] ut_DConfig.OtherAppConfigfile (0 ms)
[----------] 5 tests from ut_DConfig (3 ms total)

[----------] 4 tests from ut_DAsync
[ RUN      ] ut_DAsync.testRunInCorrectThread
[       OK ] ut_DAsync.testRunInCorrectThread (0 ms)
[ RUN      ] ut_DAsync.testRunInSubThread
[       OK ] ut_DAsync.testRunInSubThread (400 ms)
[ RUN      ] ut_DAsync.testOneTimeTask
[       OK ] ut_DAsync.testOneTimeTask (0 ms)
[ RUN      ] ut_DAsync.testFixedApi
[       OK ] ut_DAsync.testFixedApi (302 ms)
[----------] 4 tests from ut_DAsync (704 ms total)

[----------] Global test environment tear-down
[==========] 107 tests from 22 test suites ran. (2508 ms total)
[  PASSED  ] 103 tests.
[  FAILED  ] 4 tests, listed below:
[  FAILED  ] ut_DConfig.backend
[  FAILED  ] ut_DConfig.isValid
[  FAILED  ] ut_DConfig.value
[  FAILED  ] ut_DConfig.keyList

 4 FAILED TESTS
make[2]: *** [Makefile:582: check] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[1]: *** [Makefile:381: sub-tests-check_ordered] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j8 check returned exit code 2
make: *** [debian/rules:21: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1015390#18
Date:
2026-10-01 17:21:38 UTC
From:
To:
Dear submitter,

as the package dtkcore has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1148898

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)