Bug#997275: sundials: FTBFS: ld: cannot find -lHYPRE_core

Lucas Nussbaum lucas at debian.org
Sat Oct 23 20:25:53 BST 2021


Source: sundials
Version: 5.7.0+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_configure -- -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON -DBUILD_FORTRAN77_INTERFACE:BOOL=ON -DENABLE_MPI:BOOL=ON -DENABLE_LAPACK:BOOL=OFF -DEXAMPLES_ENABLE_C:BOOL=ON -DEXAMPLES_ENABLE_CXX:BOOL=ON -DEXAMPLES_ENABLE_F77:BOOL=ON -DEXAMPLES_INSTALL:BOOL=ON -DENABLE_OPENMP:BOOL=ON -DENABLE_PTHREAD:BOOL=ON -DENABLE_KLU:BOOL=ON -DKLU_INCLUDE_DIR=/usr/include/suitesparse -DKLU_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu -DENABLE_PETSC:BOOL=ON -DENABLE_HYPRE:BOOL=ON -DHYPRE_INCLUDE_DIR=/usr/include/hypre -DHYPRE_LIBRARY=-lHYPRE_core -DCMAKE_C_FLAGS=-fcommon -DENABLE_SUPERLUMT:BOOL=OFF
> 	cd debian/build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_Fortran_COMPILER=gfortran -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON -DBUILD_FORTRAN77_INTERFACE:BOOL=ON -DENABLE_MPI:BOOL=ON -DENABLE_LAPACK:BOOL=OFF -DEXAMPLES_ENABLE_C:BOOL=ON -DEXAMPLES_ENABLE_CXX:BOOL=ON -DEXAMPLES_ENABLE_F77:BOOL=ON -DEXAMPLES_INSTALL:BOOL=ON -DENABLE_OPENMP:BOOL=ON -DENABLE_PTHREAD:BOOL=ON -DENABLE_KLU:BOOL=ON -DKLU_INCLUDE_DIR=/usr/include/suitesparse -DKLU_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu -DENABLE_PETSC:BOOL=ON -DENABLE_HYPRE:BOOL=ON -DHYPRE_INCLUDE_DIR=/usr/include/hypre -DHYPRE_LIBRARY=-lHYPRE_core -DCMAKE_C_FLAGS=-fcommon -DENABLE_SUPERLUMT:BOOL=OFF ../..
> -- The C compiler identification is GNU 11.2.0
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler: /usr/bin/cc - skipped
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of int64_t
> -- Check size of int64_t - done
> -- Using int64_t for indices
> -- The Fortran compiler identification is GNU 11.2.0
> -- Detecting Fortran compiler ABI info
> -- Detecting Fortran compiler ABI info - done
> -- Check for working Fortran compiler: /usr/bin/gfortran - skipped
> -- Checking whether /usr/bin/gfortran supports Fortran 90
> -- Checking whether /usr/bin/gfortran supports Fortran 90 - yes
> -- Determining Fortran name-mangling scheme... OK
> -- The CXX compiler identification is GNU 11.2.0
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++ - skipped
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- CXX standard set to 11
> CMake Warning (dev) at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
>   The package name passed to `find_package_handle_standard_args` (PkgConfig)
>   does not match the name of the calling package (MPI).  This can lead to
>   problems in calling code that expects `find_package` result variables
>   (e.g., `_FOUND`) to follow a certain pattern.
> Call Stack (most recent call first):
>   /usr/share/cmake-3.21/Modules/FindPkgConfig.cmake:70 (find_package_handle_standard_args)
>   /usr/share/cmake-3.21/Modules/FindMPI.cmake:270 (include)
>   cmake/tpl/SundialsMPI.cmake:71 (find_package)
>   cmake/SundialsSetupTPLs.cmake:22 (include)
>   CMakeLists.txt:171 (include)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
> -- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so (found suitable version "3.1", minimum required is "2.0.0") 
> -- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found suitable version "3.1", minimum required is "2.0.0") 
> -- Found MPI_Fortran: /usr/lib/x86_64-linux-gnu/libmpi_usempif08.so (found suitable version "3.1", minimum required is "2.0.0") 
> -- Found MPI: TRUE (found suitable version "3.1", minimum required is "2.0.0")  
> -- Found OpenMP_C: -fopenmp (found version "4.5") 
> -- Found OpenMP_CXX: -fopenmp (found version "4.5") 
> -- Found OpenMP_Fortran: -fopenmp (found version "4.5") 
> -- Found OpenMP: TRUE (found version "4.5")  
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE  
> -- Checking if Pthreads is available -- OK
> -- Found KLU: /usr/lib/x86_64-linux-gnu/libklu.so  
> -- KLU_LIBRARIES:   /usr/lib/x86_64-linux-gnu/libklu.so;/usr/lib/x86_64-linux-gnu/libamd.so;/usr/lib/x86_64-linux-gnu/libcolamd.so;/usr/lib/x86_64-linux-gnu/libbtf.so;/usr/lib/x86_64-linux-gnu/libsuitesparseconfig.so
> -- KLU_INCLUDE_DIR: /usr/include/suitesparse
> -- Checking if KLU works... OK
> -- Found HYPRE: -lHYPRE_core  
> -- HYPRE_LIBRARIES:   -lHYPRE_core;
> -- HYPRE_INCLUDE_DIR: /usr/include/hypre
> -- Checking if HYPRE works... FAILED
> -- Check output: 
> Change Dir: /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST
> 
> Run Build Command(s):/usr/bin/gmake -f Makefile && gmake[2]: Entering directory '/<<PKGBUILDDIR>>/debian/build/HYPRE_TEST'
> /usr/bin/cmake -S/<<PKGBUILDDIR>>/debian/build/HYPRE_TEST -B/<<PKGBUILDDIR>>/debian/build/HYPRE_TEST --check-build-system CMakeFiles/Makefile.cmake 0
> /usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST/CMakeFiles /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST//CMakeFiles/progress.marks
> /usr/bin/gmake  -f CMakeFiles/Makefile2 all
> gmake[3]: Entering directory '/<<PKGBUILDDIR>>/debian/build/HYPRE_TEST'
> /usr/bin/gmake  -f CMakeFiles/ltest.dir/build.make CMakeFiles/ltest.dir/depend
> gmake[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build/HYPRE_TEST'
> cd /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST/CMakeFiles/ltest.dir/DependInfo.cmake
> Scanning dependencies of target ltest
> gmake[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/HYPRE_TEST'
> /usr/bin/gmake  -f CMakeFiles/ltest.dir/build.make CMakeFiles/ltest.dir/build
> gmake[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build/HYPRE_TEST'
> [ 50%] Building C object CMakeFiles/ltest.dir/ltest.c.o
> /usr/bin/mpicc  -I/usr/include/hypre -fcommon -o CMakeFiles/ltest.dir/ltest.c.o -c /<<PKGBUILDDIR>>/debian/build/HYPRE_TEST/ltest.c
> [100%] Linking C executable ltest
> /usr/bin/cmake -E cmake_link_script CMakeFiles/ltest.dir/link.txt --verbose=1
> /usr/bin/mpicc -fcommon -rdynamic CMakeFiles/ltest.dir/ltest.c.o -o ltest  -lHYPRE_core 
> /usr/bin/ld: cannot find -lHYPRE_core
> collect2: error: ld returned 1 exit status


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/sundials_5.7.0+dfsg-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the debian-science-maintainers mailing list