[Pkg-deepin-devel] Bug#1015390: dtkcore: ftbfs with LTO (link time optimization) enabled

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


Package: src:dtkcore
Version: 5.5.31-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/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



More information about the Pkg-deepin-devel mailing list