[Debian-med-packaging] Bug#1074847: biosig: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:23:04 BST 2024


Package: src:biosig
Version: 2.6.0-1
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/biosig_2.6.0-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
WARNING: The wheel package is not available.
running build
running build_ext
building 'biosig' extension
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules winreg, win32api or win32con are installed.
INFO: C compiler: 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

INFO: compile options: '-DMAJOR_VERSION=2 -DMINOR_VERSION=6 -I./.. -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.11 -c'
INFO: x86_64-linux-gnu-gcc: biosigmodule.c
biosigmodule.c: In function ‘PyBiosig_Data’:
biosigmodule.c:107:16: warning: unused variable ‘count’ [-Wunused-variable]
  107 |         size_t count = sread( PyArray_DATA(*D), 0, biosig_get_number_of_records(hdr), hdr);
      |                ^~~~~
biosigmodule.c: In function ‘biosig_data’:
biosigmodule.c:117:16: error: returning ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject *’} from a function with incompatible return type ‘PyObject *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types]
  117 |         return Data;
      |                ^~~~
error: Command "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 -DMAJOR_VERSION=2 -DMINOR_VERSION=6 -I./.. -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.11 -c biosigmodule.c -o build/temp.linux-x86_64-cpython-311/biosigmodule.o" failed with exit status 1
E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: /usr/bin/python3.11 setup.py build 
I: pybuild base:311: /usr/bin/python3 setup.py build 
/<<PKGBUILDDIR>>/biosig4c++/python/setup.py:41: DeprecationWarning: 

  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
  of the deprecation of `distutils` itself. It will be removed for
  Python >= 3.12. For older Python versions it will remain present.
  It is recommended to use `setuptools < 60.0` for those Python versions.
  For more details, see:
    https://numpy.org/devdocs/reference/distutils_status_migration.html 


  import numpy.distutils.misc_util
/usr/lib/python3/dist-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
WARNING: The wheel package is not available.
running build
running build_ext
building 'biosig' extension
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules winreg, win32api or win32con are installed.
INFO: C compiler: 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

INFO: compile options: '-DMAJOR_VERSION=2 -DMINOR_VERSION=6 -I./.. -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'
INFO: x86_64-linux-gnu-gcc: biosigmodule.c
biosigmodule.c: In function ‘PyBiosig_Data’:
biosigmodule.c:107:16: warning: unused variable ‘count’ [-Wunused-variable]
  107 |         size_t count = sread( PyArray_DATA(*D), 0, biosig_get_number_of_records(hdr), hdr);
      |                ^~~~~
biosigmodule.c: In function ‘biosig_data’:
biosigmodule.c:117:16: error: returning ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject *’} from a function with incompatible return type ‘PyObject *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types]
  117 |         return Data;
      |                ^~~~
error: Command "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 -DMAJOR_VERSION=2 -DMINOR_VERSION=6 -I./.. -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c biosigmodule.c -o build/temp.linux-x86_64-cpython-312/biosigmodule.o" failed with exit status 1
E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build 
make[1]: *** [debian/rules:16: override_dh_auto_build] Error 13
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list