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/mosquitto_2.0.11-1.1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
install -m 644 debian/README-certs debian/tmp/etc/mosquitto/certs/README
install -m 644 debian/mosquitto.conf debian/tmp/etc/mosquitto/mosquitto.conf
install -d debian/tmp/lib/systemd/system/
install -m 644 ./service/systemd/mosquitto.service.notify debian/tmp/lib/systemd/system/mosquitto.service
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_install -O--buildsystem=cmake
dh_installdocs -O--buildsystem=cmake
debian/rules override_dh_installchangelogs
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_installchangelogs ChangeLog.txt
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_installexamples -O--buildsystem=cmake
dh_installman -O--buildsystem=cmake
dh_installinit -O--buildsystem=cmake
dh_installsystemd -O--buildsystem=cmake
dh_installsystemduser -O--buildsystem=cmake
dh_installlogrotate -O--buildsystem=cmake
dh_lintian -O--buildsystem=cmake
dh_perl -O--buildsystem=cmake
dh_link -O--buildsystem=cmake
dh_strip_nondeterminism -O--buildsystem=cmake
dh_compress -O--buildsystem=cmake
dh_fixperms -O--buildsystem=cmake
dh_missing -O--buildsystem=cmake
dh_dwz -O--buildsystem=cmake
dwz: debian/mosquitto/usr/sbin/mosquitto: DWARF compression not beneficial - old size 446883 new size 448339
debian/rules override_dh_strip
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_strip -p mosquitto --dbgsym-migration='mosquitto-dbg (<< 1.5)' -Xlibmosquitto
dh_strip -p libmosquitto1 --dbgsym-migration='libmosquitto1-dbg (<< 1.5)' -Xlibmosquittopp -Xsbin/mosquitto
dh_strip -p libmosquittopp1 --dbgsym-migration='libmosquittopp1-dbg (<< 1.5)' -Xlibmosquitto.so -Xsbin/mosquitto
dh_strip --remaining-packages
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_makeshlibs
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_makeshlibs -- -c4
dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols file: see diff output below
dpkg-gensymbols: warning: debian/libmosquittopp1/DEBIAN/symbols doesn't match completely debian/libmosquittopp1.symbols
--- debian/libmosquittopp1.symbols (libmosquittopp1_2.0.11-1.1_amd64)
+++ dpkg-gensymbols6XzlFX 2022-06-10 09:02:40.053478183 +0000
@@ -18,15 +18,15 @@
(c++)"mosqpp::mosquittopp::max_inflight_messages_set(unsigned int)@Base" 1.2
(c++)"mosqpp::mosquittopp::message_retry_set(unsigned int)@Base" 1.0
(c++)"mosqpp::mosquittopp::mosquittopp(char const*, bool)@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_connect(int)@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_connect_with_flags(int, int)@Base" 1.5
- (c++)"mosqpp::mosquittopp::on_disconnect(int)@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_error()@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_log(int, char const*)@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_message(mosquitto_message const*)@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_publish(int)@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_subscribe(int, int, int const*)@Base" 1.0
- (c++)"mosqpp::mosquittopp::on_unsubscribe(int)@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_connect(int)@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_connect_with_flags(int, int)@Base" 1.5
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_disconnect(int)@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_error()@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_log(int, char const*)@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_message(mosquitto_message const*)@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_publish(int)@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_subscribe(int, int, int const*)@Base" 1.0
+#MISSING: 2.0.11-1.1# (c++)"mosqpp::mosquittopp::on_unsubscribe(int)@Base" 1.0
(c++)"mosqpp::mosquittopp::opts_set(mosq_opt_t, void*)@Base" 1.4
(c++)"mosqpp::mosquittopp::publish(int*, char const*, int, void const*, int, bool)@Base" 1.0
(c++)"mosqpp::mosquittopp::reconnect()@Base" 1.0
dh_makeshlibs: error: failing due to earlier errors
make[1]: *** [debian/rules:37: override_dh_makeshlibs] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2