[Debian-astro-maintainers] Bug#1074824: astropy: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:22:20 BST 2024


Package: src:astropy
Version: 6.0.1-4
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/astropy_6.0.1-4_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

[...]
   60 | FORCE_INLINE void convolve1d(DTYPE * const result,
      |                   ^~~~~~~~~~
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 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c astropy/convolution/src/convolve.c -o build/temp.linux-x86_64-cpython-312/astropy/convolution/src/convolve.o -UNDEBUG -fPIC
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -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 build/temp.linux-x86_64-cpython-312/astropy/convolution/_convolve.o build/temp.linux-x86_64-cpython-312/astropy/convolution/src/convolve.o -L/usr/lib/x86_64-linux-gnu -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/astropy/convolution/_convolve.cpython-312-x86_64-linux-gnu.so
building 'astropy.wcs._wcs' extension
creating build/temp.linux-x86_64-cpython-312/astropy/wcs
creating build/temp.linux-x86_64-cpython-312/astropy/wcs/src
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/astropy_wcs.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/astropy_wcs.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/astropy_wcs_api.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/astropy_wcs_api.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/distortion.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/distortion.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/distortion_wrap.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/distortion_wrap.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/docstrings.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/docstrings.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/pipeline.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/pipeline.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/pyutil.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/pyutil.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
astropy/wcs/src/pyutil.c: In function ‘set_pscards’:
astropy/wcs/src/pyutil.c:807:5: warning: ‘__builtin_strncpy’ specified bound 72 equals destination size [-Wstringop-truncation]
  807 |     strncpy((*ps)[i].value, strvalue, 72);
      |     ^
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/sip.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/sip.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/sip_wrap.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/sip_wrap.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/str_list_proxy.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/str_list_proxy.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/unit_list_proxy.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/unit_list_proxy.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/util.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/util.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/wcslib_auxprm_wrap.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/wcslib_auxprm_wrap.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
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 -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD -D_GNU_SOURCE -DNDEBUG -DHAVE_SINCOS -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -UDEBUG -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/wcslib -Iastropy/wcs/include -I/usr/include/python3.12 -c astropy/wcs/src/wcslib_celprm_wrap.c -o build/temp.linux-x86_64-cpython-312/astropy/wcs/src/wcslib_celprm_wrap.o -std=gnu99 -Wno-strict-prototypes -Wno-unused-function -Wno-unused-value -Wno-uninitialized
astropy/wcs/src/wcslib_celprm_wrap.c: In function ‘PyCelprm_deepcopy’:
astropy/wcs/src/wcslib_celprm_wrap.c:167:22: error: initialization of ‘PyCelprm *’ from incompatible pointer type ‘PyObject *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types]
  167 |     PyCelprm* copy = PyCelprm_new(&PyCelprmType, NULL, NULL);
      |                      ^~~~~~~~~~~~
In file included from /usr/lib/python3/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
                 from astropy/wcs/include/astropy_wcs/pyutil.h:16,
                 from astropy/wcs/include/astropy_wcs/wcslib_celprm_wrap.h:4,
                 from astropy/wcs/src/wcslib_celprm_wrap.c:3:
astropy/wcs/src/wcslib_celprm_wrap.c: In function ‘PyCelprm_set_ref’:
astropy/wcs/src/wcslib_celprm_wrap.c:327:25: error: passing argument 1 of ‘PyArray_DIMS’ from incompatible pointer type [-Wincompatible-pointer-types]
  327 |     size = PyArray_SIZE(value_array);
      |                         ^~~~~~~~~~~
      |                         |
      |                         PyObject * {aka struct _object *}
/usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:73:59: note: in definition of macro ‘PyArray_SIZE’
   73 | #define PyArray_SIZE(m) PyArray_MultiplyList(PyArray_DIMS(m), PyArray_NDIM(m))
      |                                                           ^
In file included from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12:
/usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1523:29: note: expected ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject *’} but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
 1523 | PyArray_DIMS(PyArrayObject *arr)
      |              ~~~~~~~~~~~~~~~^~~
astropy/wcs/src/wcslib_celprm_wrap.c:327:25: error: passing argument 1 of ‘PyArray_NDIM’ from incompatible pointer type [-Wincompatible-pointer-types]
  327 |     size = PyArray_SIZE(value_array);
      |                         ^~~~~~~~~~~
      |                         |
      |                         PyObject * {aka struct _object *}
/usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:73:76: note: in definition of macro ‘PyArray_SIZE’
   73 | #define PyArray_SIZE(m) PyArray_MultiplyList(PyArray_DIMS(m), PyArray_NDIM(m))
      |                                                                            ^
/usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1505:35: note: expected ‘const PyArrayObject *’ {aka ‘const struct tagPyArrayObject *’} but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
 1505 | PyArray_NDIM(const PyArrayObject *arr)
      |              ~~~~~~~~~~~~~~~~~~~~~^~~
astropy/wcs/src/wcslib_celprm_wrap.c:348:35: error: passing argument 1 of ‘PyArray_DATA’ from incompatible pointer type [-Wincompatible-pointer-types]
  348 |     data = (double*) PyArray_DATA(value_array);
      |                                   ^~~~~~~~~~~
      |                                   |
      |                                   PyObject * {aka struct _object *}
/usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1511:29: note: expected ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject *’} but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
 1511 | PyArray_DATA(PyArrayObject *arr)
      |              ~~~~~~~~~~~~~~~^~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:389: 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.11 3.12" returned exit code 13
make: *** [debian/rules:30: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-astro-maintainers mailing list