Package: src:cmt Version: 1.18-1 Severity: minor Tags: sid bookworm User: [email protected] 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/cmt_1.18-1_unstable_dpkglto.log The last lines of the build log are at the end of this report. [...] dh_auto_build -O--sourcedirectory=src cd src && make -j8 "INSTALL=install --strip-program=true" make[1]: Entering directory '/<<PKGBUILDDIR>>/src' g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o am.o am.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o ambisonic.o ambisonic.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o amp.o amp.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o analogue.o analogue.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o canyondelay.o canyondelay.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o cmt.o cmt.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o descriptor.o descriptor.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o delay.o delay.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dynamic.o dynamic.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o filter.o filter.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o freeverb/Components/allpass.o freeverb/Components/allpass.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o freeverb/Components/comb.o freeverb/Components/comb.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o freeverb/Components/revmodel.o freeverb/Components/revmodel.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o freeverb/freeverb.o freeverb/freeverb.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o grain.o grain.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o init.o init.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o lofi.o lofi.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mixer.o mixer.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o noise.o noise.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o null.o null.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o organ.o organ.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o peak.o peak.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o phasemod.o phasemod.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o sine.o sine.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o syndrum.o syndrum.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o vcf303.o vcf303.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o wshape_sine.o wshape_sine.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hardgate.o hardgate.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o disintegrator.o disintegrator.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pink.o pink.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pink_full.o pink_full.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pink_sh.o pink_sh.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o sledgehammer.o sledgehammer.cpp g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c -o logistic.o logistic.cpp mkdir -p ../plugins g++ -shared -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now \ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -O2 -fPIC \ -fvisibility=hidden \ -fvisibility-inlines-hidden \ -Wl,--version-script=gcc_exports.map \ -o ../plugins/cmt.so \ am.o ambisonic.o amp.o analogue.o canyondelay.o cmt.o descriptor.o delay.o dynamic.o filter.o freeverb/Components/allpass.o freeverb/Components/comb.o freeverb/Components/revmodel.o freeverb/freeverb.o grain.o init.o lofi.o mixer.o noise.o null.o organ.o peak.o phasemod.o sine.o syndrum.o vcf303.o wshape_sine.o hardgate.o disintegrator.o pink.o pink_full.o pink_sh.o sledgehammer.o logistic.o analogue.cpp:66:16: error: type ‘struct Envelope’ violates the C++ One Definition Rule [-Werror=odr] 66 | typedef struct Envelope | ^ organ.cpp:60:16: note: a different type is defined in another translation unit 60 | typedef struct Envelope | ^ analogue.cpp:69:16: note: the first difference of corresponding definitions is field ‘envelope’ 69 | LADSPA_Data envelope; | ^ organ.cpp:63:16: note: a field of same name but different type is defined in another translation unit 63 | double envelope; | ^ analogue.cpp:66:16: note: type ‘LADSPA_Data’ should match type ‘double’ 66 | typedef struct Envelope | ^ lto1: all warnings being treated as errors lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[1]: *** [Makefile:71: ../plugins/cmt.so] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>/src' dh_auto_build: error: cd src && make -j8 "INSTALL=install --strip-program=true" returned exit code 2 make: *** [debian/rules:10: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

