ADIOS2 icon indicating copy to clipboard operation
ADIOS2 copied to clipboard

adios2-config installation failure

Open meerfrau opened this issue 2 years ago • 6 comments

We ask the community to always report bugs. Please open a new issue if some other comes up in the conversation. It will help us stay on topic and manage tasks more efficiently.

Describe the bug After the compilation and main installation have finished, it fails on the last steps:

-- Installing: ./pkg/adios2/usr/lib/cmake/adios2/adios2-config.cmake
/tmp/tmp.WQe96LCPvH ~/aur/__rebuilds/adios2/src/build
Configuring adios2-config dummy CMake project
-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/mpicc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/mpicxx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:9 (find_package):
  By not providing "Findadios2.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "adios2", but
  CMake did not find one.

  Could not find a package configuration file provided by "adios2" with any
  of the following names:

    adios2Config.cmake
    adios2-config.cmake

  Add the installation prefix of "adios2" to CMAKE_PREFIX_PATH or set
  "adios2_DIR" to a directory containing one of the above files.  If "adios2"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
Failed
CMake Error at cmake/install/post/cmake_install.cmake:49 (message):
  generate-adios2-config.sh returned 1, should be 0
Call Stack (most recent call first):
  cmake_install.cmake:58 (include)

To Reproduce

  cmake -B build -S ${pkgname^^}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_SKIP_RPATH=ON \
    -DADIOS2_USE_EXTERNAL_DEPENDENCIES=ON \
    -DADIOS2_HAVE_HDF5_VOL=OFF \
    -DADIOS2_BUILD_EXAMPLES=OFF #\
    #-DMGARD_INCLUDE_DIR=/usr/include/mgard
    #-DADIOS2_HAVE_HDF5_VOL needs hdf5-openmpi
  make VERBOSE=1 -C build

make -C build DESTDIR="${pkgdir}" install

Expected behavior adios2-config dummy CMake project should not make any problems

Desktop (please complete the following information):

  • OS/Platform: ArchLinux
  • Build: gcc 13.1.1, cmake 3.26.4

meerfrau avatar Jun 20 '23 12:06 meerfrau

Which ADIOS2 version are you using?

vicentebolea avatar Jun 20 '23 21:06 vicentebolea

current git master

meerfrau avatar Jun 20 '23 22:06 meerfrau

related #3473

vicentebolea avatar Jun 21 '23 20:06 vicentebolea

@meerfrau we want to get rid of this adios2-config shell script soon. In the meanwhile you can disable the generation of it and its testing (which fails here) with: -DADIOS2_INSTALL_GENERATE_CONFIG=OFF

vicentebolea avatar Jun 21 '23 20:06 vicentebolea

@vicentebolea This would indeed work!

meerfrau avatar Jun 22 '23 08:06 meerfrau

This might have been resolved at #3760

vicentebolea avatar Sep 12 '23 20:09 vicentebolea

Closing this since we cannot reproduce this anymore. Please re-open if you observe this again

vicentebolea avatar Jul 19 '24 22:07 vicentebolea