• Bug#1104840: opm-upscaling: FTBFS: /usr/include/dune/istl/superlufuncti

    From Santiago Vila@21:1/5 to All on Wed May 7 11:00:01 2025
    Package: src:opm-upscaling
    Version: 2024.10+ds-1
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

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

    --------------------------------------------------------------------------------
    [...]
    [ 33%] Building CXX object CMakeFiles/opmupscaling.dir/opm/porsol/euler/ImplicitCapillarity.cpp.o
    /usr/bin/c++ -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO [too-long-redacted] l/euler/ImplicitCapillarity.cpp
    In file included from /usr/include/dune/istl/superlu.hh:10,
    from /usr/include/dune/istl/overlappingschwarz.hh:18,
    from /<<PKGBUILDDIR>>/opm/porsol/mimetic/IncompFlowSolverHybrid.hpp:57,
    from /<<PKGBUILDDIR>>/opm/porsol/euler/ImplicitCapillarity.hpp:43,
    from /<<PKGBUILDDIR>>/opm/porsol/euler/ImplicitCapillarity.cpp:37:
    /usr/include/dune/istl/superlufunctions.hh:80:49: error: ‘::complex’ has not been declared
    80 | cCreate_Dense_Matrix(SuperMatrix *, int, int, ::complex *, int,
    | ^~ /usr/include/dune/istl/superlufunctions.hh:85:56: error: ‘::complex’ has not been declared
    85 | cCreate_CompCol_Matrix(SuperMatrix *, int, int, int, ::complex *,
    | ^~
    In file included from /usr/include/dune/istl/superlu.hh:12: /usr/include/dune/istl/supermatrix.hh: In static member function ‘static void Dune::SuperMatrixCreateSparseChooser<std::complex<float> >::create(SuperMatrix*, int, int, int, std::complex<float>*, int*, int*, Stype_t, Dtype_t, Mtype_t)’:
    /usr/include/dune/istl/supermatrix.hh:86:69: error: ‘complex’ in namespace ‘::’ does not name a type
    86 | cCreate_CompCol_Matrix(mat, n, m, offset, reinterpret_cast< ::complex*>(values),
    | ^~~~~~~
    /usr/include/dune/istl/supermatrix.hh:86:76: error: expected ‘>’ before ‘*’ token
    86 | cCreate_CompCol_Matrix(mat, n, m, offset, reinterpret_cast< ::complex*>(values),
    | ^
    /usr/include/dune/istl/supermatrix.hh:86:76: error: expected ‘(’ before ‘*’ token
    /usr/include/dune/istl/supermatrix.hh:86:77: error: expected primary-expression before ‘>’ token
    86 | cCreate_CompCol_Matrix(mat, n, m, offset, reinterpret_cast< ::complex*>(values),
    | ^
    /usr/include/dune/istl/superlu.hh: In static member function ‘static void Dune::SuperLUDenseMatChooser<std::complex<float> >::create(SuperMatrix*, int, int, std::complex<float>*, int, Stype_t, Dtype_t, Mtype_t)’:
    /usr/include/dune/istl/superlu.hh:190:59: error: ‘complex’ in namespace ‘::’ does not name a type
    190 | cCreate_Dense_Matrix(mat, n, m, reinterpret_cast< ::complex*>(dat), n1, stype, dtype, mtype);
    | ^~~~~~~ /usr/include/dune/istl/superlu.hh:190:66: error: expected ‘>’ before ‘*’ token
    190 | cCreate_Dense_Matrix(mat, n, m, reinterpret_cast< ::complex*>(dat), n1, stype, dtype, mtype);
    | ^ /usr/include/dune/istl/superlu.hh:190:66: error: expected ‘(’ before ‘*’ token
    /usr/include/dune/istl/superlu.hh:190:67: error: expected primary-expression before ‘>’ token
    190 | cCreate_Dense_Matrix(mat, n, m, reinterpret_cast< ::complex*>(dat), n1, stype, dtype, mtype);
    | ^ make[3]: *** [CMakeFiles/opmupscaling.dir/build.make:152: CMakeFiles/opmupscaling.dir/opm/porsol/euler/ImplicitCapillarity.cpp.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
    make[2]: *** [CMakeFiles/Makefile2:224: CMakeFiles/opmupscaling.dir/all] Error 2
    make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
    make[1]: *** [Makefile:149: all] Error 2
    make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
    make: *** [debian/rules:18: 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/202505/

    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:opm-upscaling, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)