Bug#906392: odb-api: FTBFS in buster (Fatal Error: Can't open module file 'mpi.mod')

2018-08-17 Thread Santiago Vila
severity 906392 normal
thanks

Note: The package builds ok in unstable, and it's possible that the
problem will be fixed in buster "by itself", so I'm downgrading
because maybe the odb-api package is not to blame for this.

However, I'm keeping the bug open because we still have a pending
issue, namely: How can this happen and how could we avoid it?

Thanks.



Bug#906392: odb-api: FTBFS in buster (Fatal Error: Can't open module file 'mpi.mod')

2018-08-17 Thread Santiago Vila
Package: src:odb-api
Version: 0.18.0-5
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:


[...]
 debian/rules build-indep
dh build-indep --buildsystem=cmake --with=python3,fortran_mod
   dh_update_autotools_config -i -O--buildsystem=cmake
   dh_autoreconf -i -O--buildsystem=cmake
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<>'
for f in libodb-api-0d.install libodb-api-dev.install libodb-api-dev.links ; do 
\
sed -e 's%@ARCH@%x86_64-linux-gnu%g' < debian/$f.in  > debian/$f ; \
done
dh_auto_configure --  -DDISABLE_AIO=ON -DCMAKE_BUILD_TYPE=Release 
-DDISABLE_OS_CHECK=ON -DBUILD_SHARED_LIBS=ON -DENABLE_EIGEN=ON 
-DENABLE_NETCDF=ON -DENABLE_FORTRAN=ON -DENABLE_PYTHON=ON -DENABLE_OMP=ON 
-DENABLE_ODB=ON -DENABLE_ODB_MPI=ON -DENABLE_ODB_API_SERVER_SIDE=ON  
-DPYTHON_EXECUTABLE=/usr/bin/python3.6
install -d obj-x86_64-linux-gnu
cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None 
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var 
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON "-GUnix Makefiles" -DDISABLE_AIO=ON 
-DCMAKE_BUILD_TYPE=Release -DDISABLE_OS_CHECK=ON -DBUILD_SHARED_LIBS=ON 
-DENABLE_EIGEN=ON -DENABLE_NETCDF=ON -DENABLE_FORTRAN=ON -DENABLE_PYTHON=ON 
-DENABLE_OMP=ON -DENABLE_ODB=ON -DENABLE_ODB_MPI=ON 
-DENABLE_ODB_API_SERVER_SIDE=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.6 ..
CMake Deprecation Warning at cmake/ecbuild_policies.cmake:28 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version

[... snipped ...]

#include 

int main(int argc, char** argv)
{
  (void)argv;
#ifndef funopen
  return ((int*)())[argc];
#else
  (void)argc;
  return 0;
#endif
}

Performing Fortran SOURCE FILE Test Fortran_COMPILER_SUPPORTS_MPI failed with 
the following output:
Change Dir: /<>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_3a980/fast"
make[2]: Entering directory 
'/<>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_3a980.dir/build.make 
CMakeFiles/cmTC_3a980.dir/build
make[3]: Entering directory 
'/<>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
Building Fortran object CMakeFiles/cmTC_3a980.dir/src.F.o
/usr/bin/gfortran-8   -g -O2 -fdebug-prefix-map=/<>=. 
-fstack-protector-strong -fopenmp -DFortran_COMPILER_SUPPORTS_MPI -fPIE   -c 
/<>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.F -o 
CMakeFiles/cmTC_3a980.dir/src.F.o
/<>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.F:3:19:

 use MPI
   1
Fatal Error: Can't open module file 'mpi.mod' for reading at (1): No such file 
or directory
compilation terminated.
make[3]: *** [CMakeFiles/cmTC_3a980.dir/build.make:66: 
CMakeFiles/cmTC_3a980.dir/src.F.o] Error 1
make[3]: Leaving directory 
'/<>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
make[2]: *** [Makefile:126: cmTC_3a980/fast] Error 2
make[2]: Leaving directory 
'/<>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'

Source file was:

program main
use MPI
integer ierr
call MPI_INIT( ierr )
call MPI_FINALIZE( ierr )
end

dh_auto_configure: cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None 
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var 
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON "-GUnix Makefiles" -DDISABLE_AIO=ON 
-DCMAKE_BUILD_TYPE=Release -DDISABLE_OS_CHECK=ON -DBUILD_SHARED_LIBS=ON 
-DENABLE_EIGEN=ON -DENABLE_NETCDF=ON -DENABLE_FORTRAN=ON -DENABLE_PYTHON=ON 
-DENABLE_OMP=ON -DENABLE_ODB=ON -DENABLE_ODB_MPI=ON 
-DENABLE_ODB_API_SERVER_SIDE=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.7 .. 
returned exit code 1
make[1]: *** [debian/rules:65: override_dh_auto_install] Error 255
make[1]: Leaving directory '/<>'
make: *** [debian/rules:7: binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep subprocess 
returned exit status 2


The build was made with "dpkg-buildpackage -A" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/odb-api.html

where you can get a full build log if you need it.

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.