Debian Bug report logs - #1015603
pywavelets: ftbfs with LTO (link time optimization) enabled

version graph

Package: src:pywavelets; Maintainer for src:pywavelets is Debian Python Team <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Tue, 19 Jul 2022 17:04:23 UTC

Severity: minor

Tags: sid, trixie

Found in version pywavelets/1.1.1-2

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Debian Python Team <[email protected]>:
Bug#1015603; Package src:pywavelets. (Tue, 19 Jul 2022 17:04:25 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Python Team <[email protected]>. (Tue, 19 Jul 2022 17:04:25 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: pywavelets: ftbfs with LTO (link time optimization) enabled
Date: Tue, 19 Jul 2022 16:58:46 +0000
Package: src:pywavelets
Version: 1.1.1-2
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/pywavelets_1.1.1-2_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
copying pywt/_extensions/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/_extensions
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/create_dat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/_wavelab_signals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/_readers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_wp2d.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_matlab_compatibility_cwt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_matlab_compatibility.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_multidim.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_functions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test__pywt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_wavelet.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_modes.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_perfect_reconstruction.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_swt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_wp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_concurrent.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_doc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_dwt_idwt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_data.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_cwt_wavelets.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_multilevel.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_deprecations.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
copying pywt/tests/test_thresholding.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests/data
copying pywt/tests/data/cwt_matlabR2015b_result.npz -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests/data
copying pywt/tests/data/dwt_matlabR2012a_result.npz -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests/data
copying pywt/tests/data/wavelab_test_signals.npz -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests/data
copying pywt/tests/data/generate_matlab_data.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests/data
copying pywt/tests/data/generate_matlab_data_cwt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/tests/data
copying pywt/data/ecg.npy -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/camera.npz -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/ascent.npz -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/sst_nino3.npz -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
copying pywt/data/aero.npz -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/data
running build_clib
building 'c_wt' library
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/pywt
creating build/temp.linux-x86_64-3.10/pywt/_extensions
creating build/temp.linux-x86_64-3.10/pywt/_extensions/c
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPY_EXTENSION -DHAVE_C99_COMPLEX -Ipywt/_extensions/c -I/usr/include/python3.10 -c pywt/_extensions/c/common.c -o build/temp.linux-x86_64-3.10/pywt/_extensions/c/common.o
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPY_EXTENSION -DHAVE_C99_COMPLEX -Ipywt/_extensions/c -I/usr/include/python3.10 -c pywt/_extensions/c/convolution.c -o build/temp.linux-x86_64-3.10/pywt/_extensions/c/convolution.o
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPY_EXTENSION -DHAVE_C99_COMPLEX -Ipywt/_extensions/c -I/usr/include/python3.10 -c pywt/_extensions/c/wt.c -o build/temp.linux-x86_64-3.10/pywt/_extensions/c/wt.o
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPY_EXTENSION -DHAVE_C99_COMPLEX -Ipywt/_extensions/c -I/usr/include/python3.10 -c pywt/_extensions/c/wavelets.c -o build/temp.linux-x86_64-3.10/pywt/_extensions/c/wavelets.o
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPY_EXTENSION -DHAVE_C99_COMPLEX -Ipywt/_extensions/c -I/usr/include/python3.10 -c pywt/_extensions/c/cwt.c -o build/temp.linux-x86_64-3.10/pywt/_extensions/c/cwt.o
x86_64-linux-gnu-gcc-ar rcs build/temp.linux-x86_64-3.10/libc_wt.a build/temp.linux-x86_64-3.10/pywt/_extensions/c/common.o build/temp.linux-x86_64-3.10/pywt/_extensions/c/convolution.o build/temp.linux-x86_64-3.10/pywt/_extensions/c/wt.o build/temp.linux-x86_64-3.10/pywt/_extensions/c/wavelets.o build/temp.linux-x86_64-3.10/pywt/_extensions/c/cwt.o
running build_ext
building 'pywt._extensions._pywt' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPY_EXTENSION -DHAVE_C99_COMPLEX -DCYTHON_CCOMPLEX=1 -Ipywt/_extensions -Ipywt/_extensions/c -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.10 -c pywt/_extensions/_pywt.c -o build/temp.linux-x86_64-3.10/pywt/_extensions/_pywt.o
In file included from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1969,
                 from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /usr/lib/python3/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from pywt/_extensions/_pywt.c:749:
/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/pywt/_extensions/_pywt.o -Lbuild/temp.linux-x86_64-3.10 -lc_wt -lc_wt -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pywt/build/pywt/_extensions/_pywt.cpython-310-x86_64-linux-gnu.so
/usr/bin/ld: /tmp/ccpWdilt.ltrans0.ltrans.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:369: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build 
dh_auto_build: error: pybuild --build -i python{version} -p "3.9 3.10" returned exit code 13
make[1]: *** [debian/rules:22: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



Added tag(s) trixie. Request was from Sebastian Ramacher <[email protected]> to [email protected]. (Sun, 11 Jun 2023 15:49:05 GMT) (full text, mbox, link).


Removed tag(s) bookworm. Request was from Andreas Beckmann <[email protected]> to [email protected]. (Fri, 13 Oct 2023 10:30:27 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:25:05 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.