[Debian-astro-maintainers] Bug#1114276: pybdsf: FTBFS: /<<PKGBUILDDIR>>/natgrid/Include/nnmhead.h:42:10: error: conflicting types for 'fopen'; have 'FILE *(void)'

Santiago Vila sanvila at debian.org
Fri Sep 5 19:22:52 BST 2025


Package: src:pybdsf
Version: 1.13.0-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

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

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

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

About the archive rebuild: The build was made on virtual machines 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 add an affects on src:pybdsf, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --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 plugin_pyproject:129: Building wheel for python3.13 with "build" module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13  
* Building wheel...

[... snipped ...]

      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
[66/139] Building Fortran object CMakeFiles/port3.dir/src/port3/d1mach.f.o
[67/139] Building Fortran object CMakeFiles/port3.dir/src/port3/drnsg.f.o
/<<PKGBUILDDIR>>/src/port3/drnsg.f:219:72:

  219 |       IF (IV1-2) 40, 150, 230
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/<<PKGBUILDDIR>>/src/port3/drnsg.f:290:72:

  290 |  130     CALL DV2AXY(N, V(R1), -C(I), A(1,I), V(R1))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 130 at (1)
[68/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dc7vfn.f.o
[69/139] Building Fortran object CMakeFiles/port3.dir/src/port3/drn2g.f.o
/<<PKGBUILDDIR>>/src/port3/drn2g.f:264:72:

  264 |       IF (IV(1) - 2) 50, 60, 220
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
[70/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dd7tpr.f.o
[71/139] Building Fortran object CMakeFiles/port3.dir/src/port3/da7sst.f.o
[72/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dd7upd.f.o
/<<PKGBUILDDIR>>/src/port3/dd7upd.f:58:72:

   58 |  20           T = DMAX1(T, DABS(DR(K,I)))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1)
[73/139] Building Fortran object CMakeFiles/port3.dir/src/port3/df7hes.f.o
[74/139] Building Fortran object CMakeFiles/port3.dir/src/port3/ditsum.f.o
/<<PKGBUILDDIR>>/src/port3/ditsum.f:243:72:

  243 |  480          WRITE(PU,490) I, X(I), D(I), G(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 480 at (1)
[75/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dg7qts.f.o
/<<PKGBUILDDIR>>/src/port3/dg7qts.f:282:72:

  282 |  40           W(I) = ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 40 at (1)
/<<PKGBUILDDIR>>/src/port3/dg7qts.f:436:72:

  436 |  230     W(I) = ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 230 at (1)
/<<PKGBUILDDIR>>/src/port3/dg7qts.f:566:72:

  566 |  350     W(I) = T*W(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 350 at (1)
/<<PKGBUILDDIR>>/src/port3/dg7qts.f:571:72:

  571 |  360     W(I) = T2*W(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 360 at (1)
/<<PKGBUILDDIR>>/src/port3/dg7qts.f:331:22:

  329 |       DO 110 I = 2, P
      |                                                                        2
  330 |          J = DIAG0 + I
  331 |          T = W(J) - W(I)
      |                      1
Warning: Array reference at (1) out of bounds (2 > 1) in loop beginning at (2)
/<<PKGBUILDDIR>>/src/port3/dg7qts.f:368:22:

  366 |       DO 160 I = 2, P
      |                                                                        2
  367 |          J = DIAG0 + I
  368 |          T = W(J) + W(I)
      |                      1
Warning: Array reference at (1) out of bounds (2 > 1) in loop beginning at (2)
[76/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dg7lit.f.o
[77/139] Building Fortran object CMakeFiles/port3.dir/src/port3/divset.f.o
[78/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7itv.f.o
/<<PKGBUILDDIR>>/src/port3/dl7itv.f:18:72:

   18 |  10      X(I) = Y(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
[79/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7ivm.f.o
[80/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7nvr.f.o
[81/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7sqr.f.o
[82/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7srt.f.o
[83/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7svn.f.o
/<<PKGBUILDDIR>>/src/port3/dl7svn.f:156:72:

  156 |  70      X(I) = T*X(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 70 at (1)
[84/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7svx.f.o
/<<PKGBUILDDIR>>/src/port3/dl7svx.f:144:72:

  144 |  50      X(I) = T*X(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 50 at (1)
[85/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7tvm.f.o
[86/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7tsq.f.o
/<<PKGBUILDDIR>>/src/port3/dl7tsq.f:31:72:

   31 |  40           A(J) = LII * L(J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 40 at (1)
[87/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7mst.f.o
/<<PKGBUILDDIR>>/src/port3/dl7mst.f:211:72:

  211 |       IF (KA) 10, 20, 370
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
/<<PKGBUILDDIR>>/src/port3/dl7mst.f:262:72:

  262 |  100     W(I) = G(I)/D(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 100 at (1)
/<<PKGBUILDDIR>>/src/port3/dl7mst.f:287:72:

  287 |  120     W(I) = ONE
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 120 at (1)
/<<PKGBUILDDIR>>/src/port3/dl7mst.f:391:72:

  391 |  250                    STEP(K) = STEP(K)/DFAC
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 250 at (1)
/<<PKGBUILDDIR>>/src/port3/dl7mst.f:433:72:

  433 |  340     STEP(I) = STEP(I) / DSQRT(W(I))
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 340 at (1)
/<<PKGBUILDDIR>>/src/port3/dl7mst.f:472:72:

  472 |  400     STEP(I) = ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 400 at (1)
[88/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dl7vml.f.o
[89/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dn2lrd.f.o
[90/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dn2rdp.f.o
/<<PKGBUILDDIR>>/src/port3/dn2rdp.f:31:72:

   31 |       IF (V(F)) 10, 30, 10
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
[91/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dn2cvp.f.o
/<<PKGBUILDDIR>>/src/port3/dn2cvp.f:55:72:

   55 |       IF (COV1) 80,110,130
      |                                                                        1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
[92/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dq7apl.f.o
[93/139] Building Fortran object CMakeFiles/port3.dir/src/port3/do7prd.f.o
[94/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dparck.f.o
[95/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dr7mdc.f.o
[96/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dq7rfh.f.o
[97/139] Building Fortran object CMakeFiles/port3.dir/src/port3/drldst.f.o
[98/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dq7rad.f.o
[99/139] Building Fortran object CMakeFiles/port3.dir/src/port3/ds7cpr.f.o
[100/139] Building Fortran object CMakeFiles/port3.dir/src/port3/ds7lup.f.o
/<<PKGBUILDDIR>>/src/port3/ds7lup.f:42:72:

   42 |  10      W(I) = T * WCHMTD(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
/<<PKGBUILDDIR>>/src/port3/ds7lup.f:46:72:

   46 |  20      U(I) = T*W(I) + Y(I) - SIZE*U(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1)
[101/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv2axy.f.o
/<<PKGBUILDDIR>>/src/port3/dv2axy.f:11:72:

   11 |  10      W(I) = A*X(I) + Y(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
[102/139] Building Fortran object CMakeFiles/port3.dir/src/port3/ds7lvm.f.o
[103/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv7cpy.f.o
/<<PKGBUILDDIR>>/src/port3/dv7cpy.f:11:72:

   11 |  10      Y(I) = X(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
[104/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv2nrm.f.o
[105/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv7scl.f.o
/<<PKGBUILDDIR>>/src/port3/dv7scl.f:11:72:

   11 |  10       X(I) = A * Y(I)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
[106/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv7dfl.f.o
[107/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv7prm.f.o
[108/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv7scp.f.o
/<<PKGBUILDDIR>>/src/port3/dv7scp.f:11:72:

   11 |  10      Y(I) = S
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
[109/139] Building Fortran object CMakeFiles/port3.dir/src/port3/i7mdcn.f.o
[110/139] Building Fortran object CMakeFiles/port3.dir/src/port3/dv7swp.f.o
[111/139] Building Fortran object CMakeFiles/port3.dir/src/port3/stopx.f.o
[112/139] Building Fortran object CMakeFiles/port3.dir/src/port3/i1mach.f.o
[113/139] Linking Fortran static library libminpack.a
[114/139] Linking Fortran static library libport3.a
[115/139] Building C object CMakeFiles/_f2py_runtime_library.dir/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.c.o
[116/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/Fitter_dnsg.cc.o
[117/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/Fitter_dn2g.cc.o
[118/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/Fitter_lmder.cc.o
[119/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/MGFunction2.cc.o
[120/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/cbdsm_main.cc.o
[121/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/MGFunction1.cc.o
[122/139] Building C object CMakeFiles/natgridmodule.dir/natgrid/Src/natgrid.c.o
FAILED: CMakeFiles/natgridmodule.dir/natgrid/Src/natgrid.c.o 
/usr/bin/cc -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Dnatgridmodule_EXPORTS -I/usr/include/python3.13 -I/usr/lib/x86_64-linux-gnu/python3-numpy/numpy/_core/include -I/<<PKGBUILDDIR>>/natgrid/Include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/natgridmodule.dir/natgrid/Src/natgrid.c.o -MF CMakeFiles/natgridmodule.dir/natgrid/Src/natgrid.c.o.d -o CMakeFiles/natgridmodule.dir/natgrid/Src/natgrid.c.o -c /<<PKGBUILDDIR>>/natgrid/Src/natgrid.c
In file included from /<<PKGBUILDDIR>>/natgrid/Src/natgrid.c:6:
/<<PKGBUILDDIR>>/natgrid/Include/nnmhead.h:42:10: error: conflicting types for ‘fopen’; have ‘FILE *(void)’
   42 | FILE    *fopen(), *filee = NULL;
      |          ^~~~~
In file included from /<<PKGBUILDDIR>>/natgrid/Include/nnmhead.h:1:
/usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict,  const char * restrict)’
  264 | extern FILE *fopen (const char *__restrict __filename,
      |              ^~~~~
In file included from /<<PKGBUILDDIR>>/natgrid/Src/natgrid.c:7:
/<<PKGBUILDDIR>>/natgrid/Include/nnghead.h:40:18: error: conflicting types for ‘fopen’; have ‘FILE *(void)’
   40 | extern  FILE    *fopen(), *filee;
      |                  ^~~~~
/usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict,  const char * restrict)’
  264 | extern FILE *fopen (const char *__restrict __filename,
      |              ^~~~~
/<<PKGBUILDDIR>>/natgrid/Src/natgrid.c: In function ‘Terminate’:
/<<PKGBUILDDIR>>/natgrid/Src/natgrid.c:48:9: error: too many arguments to function ‘FreeMatrixd’; expected 0, have 1
   48 |         FreeMatrixd(points);
      |         ^~~~~~~~~~~ ~~~~~~
/<<PKGBUILDDIR>>/natgrid/Include/nnmhead.h:78:17: note: declared here
   78 | void            FreeMatrixd();
      |                 ^~~~~~~~~~~
/<<PKGBUILDDIR>>/natgrid/Src/natgrid.c:52:9: error: too many arguments to function ‘FreeMatrixd’; expected 0, have 1
   52 |         FreeMatrixd(joints);
      |         ^~~~~~~~~~~ ~~~~~~
/<<PKGBUILDDIR>>/natgrid/Include/nnmhead.h:78:17: note: declared here
   78 | void            FreeMatrixd();
      |                 ^~~~~~~~~~~
/<<PKGBUILDDIR>>/natgrid/Src/natgrid.c:56:9: error: too many arguments to function ‘FreeVecti’; expected 0, have 1
   56 |         FreeVecti(jndx);
      |         ^~~~~~~~~ ~~~~
/<<PKGBUILDDIR>>/natgrid/Include/nnmhead.h:70:17: note: declared here
   70 | void            FreeVecti();
      |                 ^~~~~~~~~
[123/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/stat.cc.o
[124/139] Building CXX object CMakeFiles/_cbdsm.dir/src/c++/num_util/num_util.cpp.o
/<<PKGBUILDDIR>>/src/c++/num_util/num_util.cpp: In function ‘boost::python::numpy::dtype num_util::type2dtype(char)’:
/<<PKGBUILDDIR>>/src/c++/num_util/num_util.cpp:434:54: warning: control reaches end of non-void function [-Wreturn-type]
  434 |       std::cout << "Invalid character code!" << std::endl;
      |                                                      ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py", line 668, in setup
    cmkr.make(make_args, install_target=cmake_install_target, env=env)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/skbuild/cmaker.py", line 696, in make
    self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/skbuild/cmaker.py", line 741, in make_impl
    raise SKBuildError(msg)

An error occurred while building with CMake.
  Command:
    /usr/bin/cmake --build . --target install --config Release --
  Install target:
    install
  Source directory:
    /<<PKGBUILDDIR>>
  Working directory:
    /<<PKGBUILDDIR>>/_skbuild/linux-x86_64-3.13/cmake-build
Please check the install target is valid and see CMake's output for more information.


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



More information about the Debian-astro-maintainers mailing list