Bug#1015609: qiskit-aer: ftbfs with LTO (link time optimization) enabled
Matthias Klose
doko at debian.org
Tue Jul 19 17:59:01 BST 2022
Package: src:qiskit-aer
Version: 0.4.1-2
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/qiskit-aer_0.4.1-2_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/fastsparse.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/superoperator.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/settings.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/states.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/dimensions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/qobj.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/sparse.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/expect.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/tensor.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/operators.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/cy/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/cy/utilities.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/cy/pyxbuilder.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
package init file 'qiskit/providers/aer/pulse/qutip_lite/cy/src/__init__.py' not found (or not a regular file)
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/VERSION.txt -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/backends/controller_wrappers.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/backends
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/cy/memory.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/cy/channel_value.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/cy/test_python_to_cpp.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/cy/measure.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/cy/utils.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/cy/numeric_integrator_wrapper.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/cy/sparse_utils.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/cy/spconvert.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/cy/spmath.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
copying _skbuild/linux-x86_64-3.10/cmake-install/qiskit/providers/aer/pulse/qutip_lite/cy/spmatfuncs.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/qiskit/providers/aer/pulse/qutip_lite/cy
copied 71 files
running build_ext
dh_auto_test -O--buildsystem=pybuild
pybuild --test -i python{version} -p "3.9 3.10"
I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-aer/build; python3.9 -m pytest /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-aer/build/test/terra -k "not TestNoiseTransformer"
============================= test session starts ==============================
platform linux -- Python 3.9.13, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /<<PKGBUILDDIR>>
collected 1961 items / 10 deselected / 1951 selected
test/terra/test_python_to_cpp.py ....... [ 0%]
test/terra/backends/test_pulse_simulator.py ......... [ 0%]
test/terra/backends/test_qasm_simulator.py ............................. [ 2%]
........................................................................ [ 5%]
.............................................................. [ 9%]
test/terra/backends/test_qasm_simulator_density_matrix.py .............. [ 9%]
........................................................................ [ 13%]
.............Fatal Python error: Aborted
Thread 0x00007fa686475640 (most recent call first):
File Aborted
E: pybuild pybuild:369: test: plugin distutils failed with: exit code=134: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-aer/build; python3.9 -m pytest {build_dir}/test/terra -k "not TestNoiseTransformer"
I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build; python3.10 -m pytest /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build/test/terra -k "not TestNoiseTransformer"
============================= test session starts ==============================
platform linux -- Python 3.10.5, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /<<PKGBUILDDIR>>
collected 1961 items / 10 deselected / 1951 selected
test/terra/test_python_to_cpp.py ....... [ 0%]
test/terra/backends/test_pulse_simulator.py ......... [ 0%]
test/terra/backends/test_qasm_simulator.py ............................. [ 2%]
........................................................................ [ 5%]
.............................................................. [ 9%]
test/terra/backends/test_qasm_simulator_density_matrix.py .............. [ 9%]
........................................................................ [ 13%]
.............Fatal Python error: Aborted
E: pybuild pybuild:369: test: plugin distutils failed with: exit code=134: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_qiskit-aer/build; python3.10 -m pytest {build_dir}/test/terra -k "not TestNoiseTransformer"
rm -fr -- /tmp/dh-xdg-rundir-EMW1RM32
dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.10" returned exit code 13
make: *** [debian/rules:23: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list