Bug#1071810: pyfftw: FTBFS: /tmp/pyfftw-l6u29tyw/fftw_plan_dft.c:2:17: error: implicit declaration of function ‘fftw_plan_dft’

Santiago Vila sanvila at debian.org
Sat May 25 01:33:35 BST 2024


Package: src:pyfftw
Version: 0.13.1-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --with sphinxdoc --buildsystem=pybuild
    dh_update_autotools_config -O--buildsystem=pybuild
    dh_autoreconf -O--buildsystem=pybuild
    dh_auto_configure -O--buildsystem=pybuild
    dh_auto_build -O--buildsystem=pybuild
I: pybuild pybuild:308: find -name "*.c" -delete
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyfftw
* Building wheel...
<string>:46: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
/<<PKGBUILDDIR>>/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
   LONG_VERSION_PY['git'] = '''
INFO:root:running bdist_wheel
INFO:root:running build
INFO:root:running build_py
INFO:root:creating build
INFO:root:creating build/lib.linux-x86_64-cpython-312
INFO:root:creating build/lib.linux-x86_64-cpython-312/pyfftw
INFO:root:copying pyfftw/_version.py -> build/lib.linux-x86_64-cpython-312/pyfftw
INFO:root:copying pyfftw/config.py -> build/lib.linux-x86_64-cpython-312/pyfftw
INFO:root:copying pyfftw/__init__.py -> build/lib.linux-x86_64-cpython-312/pyfftw
INFO:root:creating build/lib.linux-x86_64-cpython-312/pyfftw/builders
INFO:root:copying pyfftw/builders/_utils.py -> build/lib.linux-x86_64-cpython-312/pyfftw/builders
INFO:root:copying pyfftw/builders/builders.py -> build/lib.linux-x86_64-cpython-312/pyfftw/builders
INFO:root:copying pyfftw/builders/__init__.py -> build/lib.linux-x86_64-cpython-312/pyfftw/builders
INFO:root:creating build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/_utils.py -> build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/cache.py -> build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/dask_fft.py -> build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/numpy_fft.py -> build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/scipy_fftpack.py -> build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/__init__.py -> build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/scipy_fft.py -> build/lib.linux-x86_64-cpython-312/pyfftw/interfaces
INFO:root:running build_ext
INFO:root:x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.12 -c /tmp/pyfftw-em5b20w6/None.c -o /tmp/pyfftw-em5b20w6/None.o
INFO:root:x86_64-linux-gnu-gcc /tmp/pyfftw-em5b20w6/None.o -L/usr/lib -L/usr/lib/x86_64-linux-gnu -lm -o /tmp/pyfftw-em5b20w6/a.out
INFO:root:x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.12 -c /tmp/pyfftw-l6u29tyw/fftw_plan_dft.c -o /tmp/pyfftw-l6u29tyw/fftw_plan_dft.o
/tmp/pyfftw-l6u29tyw/fftw_plan_dft.c: In function ‘main’:
/tmp/pyfftw-l6u29tyw/fftw_plan_dft.c:2:17: error: implicit declaration of function ‘fftw_plan_dft’ [-Werror=implicit-function-declaration]
     2 |                 fftw_plan_dft();
       |                 ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
WARNING:__main__:Compilation error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
INFO:root:x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.12 -c /tmp/pyfftw-r_m1h4sa/fftwf_plan_dft.c -o /tmp/pyfftw-r_m1h4sa/fftwf_plan_dft.o
/tmp/pyfftw-r_m1h4sa/fftwf_plan_dft.c: In function ‘main’:
/tmp/pyfftw-r_m1h4sa/fftwf_plan_dft.c:2:17: error: implicit declaration of function ‘fftwf_plan_dft’ [-Werror=implicit-function-declaration]
     2 |                 fftwf_plan_dft();
       |                 ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
WARNING:__main__:Compilation error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
INFO:root:x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.12 -c /tmp/pyfftw-riz_yzyf/fftwl_plan_dft.c -o /tmp/pyfftw-riz_yzyf/fftwl_plan_dft.o
/tmp/pyfftw-riz_yzyf/fftwl_plan_dft.c: In function ‘main’:
/tmp/pyfftw-riz_yzyf/fftwl_plan_dft.c:2:17: error: implicit declaration of function ‘fftwl_plan_dft’ [-Werror=implicit-function-declaration]
     2 |                 fftwl_plan_dft();
       |                 ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
WARNING:__main__:Compilation error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
UPDATING build/lib.linux-x86_64-cpython-312/pyfftw/_version.py
set build/lib.linux-x86_64-cpython-312/pyfftw/_version.py to '0.13.1'
error: Could not find any of the FFTW libraries

ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyfftw
I: pybuild pybuild:308: find -name "*.c" -delete
I: pybuild plugin_pyproject:129: Building wheel for python3.11 with "build" module
I: pybuild base:311: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyfftw
* Building wheel...
<string>:46: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
INFO:root:running bdist_wheel
INFO:root:running build
INFO:root:running build_py
INFO:root:creating build/lib.linux-x86_64-cpython-311
INFO:root:creating build/lib.linux-x86_64-cpython-311/pyfftw
INFO:root:copying pyfftw/_version.py -> build/lib.linux-x86_64-cpython-311/pyfftw
INFO:root:copying pyfftw/config.py -> build/lib.linux-x86_64-cpython-311/pyfftw
INFO:root:copying pyfftw/__init__.py -> build/lib.linux-x86_64-cpython-311/pyfftw
INFO:root:creating build/lib.linux-x86_64-cpython-311/pyfftw/builders
INFO:root:copying pyfftw/builders/_utils.py -> build/lib.linux-x86_64-cpython-311/pyfftw/builders
INFO:root:copying pyfftw/builders/builders.py -> build/lib.linux-x86_64-cpython-311/pyfftw/builders
INFO:root:copying pyfftw/builders/__init__.py -> build/lib.linux-x86_64-cpython-311/pyfftw/builders
INFO:root:creating build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/_utils.py -> build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/cache.py -> build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/dask_fft.py -> build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/numpy_fft.py -> build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/scipy_fftpack.py -> build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/__init__.py -> build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:copying pyfftw/interfaces/scipy_fft.py -> build/lib.linux-x86_64-cpython-311/pyfftw/interfaces
INFO:root:running build_ext
INFO:root:x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.11 -c /tmp/pyfftw-cdy9e7vz/None.c -o /tmp/pyfftw-cdy9e7vz/None.o
INFO:root:x86_64-linux-gnu-gcc /tmp/pyfftw-cdy9e7vz/None.o -L/usr/lib -L/usr/lib/x86_64-linux-gnu -lm -o /tmp/pyfftw-cdy9e7vz/a.out
INFO:root:x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.11 -c /tmp/pyfftw-3b1eee7j/fftw_plan_dft.c -o /tmp/pyfftw-3b1eee7j/fftw_plan_dft.o
/tmp/pyfftw-3b1eee7j/fftw_plan_dft.c: In function ‘main’:
/tmp/pyfftw-3b1eee7j/fftw_plan_dft.c:2:17: error: implicit declaration of function ‘fftw_plan_dft’ [-Werror=implicit-function-declaration]
     2 |                 fftw_plan_dft();
       |                 ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
WARNING:__main__:Compilation error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
INFO:root:x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.11 -c /tmp/pyfftw-6w0ttjht/fftwf_plan_dft.c -o /tmp/pyfftw-6w0ttjht/fftwf_plan_dft.o
/tmp/pyfftw-6w0ttjht/fftwf_plan_dft.c: In function ‘main’:
/tmp/pyfftw-6w0ttjht/fftwf_plan_dft.c:2:17: error: implicit declaration of function ‘fftwf_plan_dft’ [-Werror=implicit-function-declaration]
     2 |                 fftwf_plan_dft();
       |                 ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
WARNING:__main__:Compilation error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
INFO:root:x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/pyfftw -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include -I/usr/include -I/usr/include/python3.11 -c /tmp/pyfftw-er8_4726/fftwl_plan_dft.c -o /tmp/pyfftw-er8_4726/fftwl_plan_dft.o
/tmp/pyfftw-er8_4726/fftwl_plan_dft.c: In function ‘main’:
/tmp/pyfftw-er8_4726/fftwl_plan_dft.c:2:17: error: implicit declaration of function ‘fftwl_plan_dft’ [-Werror=implicit-function-declaration]
     2 |                 fftwl_plan_dft();
       |                 ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
WARNING:__main__:Compilation error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
UPDATING build/lib.linux-x86_64-cpython-311/pyfftw/_version.py
set build/lib.linux-x86_64-cpython-311/pyfftw/_version.py to '0.13.1'
error: Could not find any of the FFTW libraries

ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyfftw
dh_auto_build: error: pybuild --build -i python{version} -p "3.12 3.11" returned exit code 13
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202405/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the debian-science-maintainers mailing list