ADIOS2 icon indicating copy to clipboard operation
ADIOS2 copied to clipboard

CMake errors encountered when configuring ADIOS2 with Blosc2 support

Open dqwu opened this issue 4 months ago • 2 comments

This issue is reproducible on ANL Ubuntu (20 or 22) workstations with latest 2.10.1 release.

Configure and build c-blosc2 lib from source (static lib only):

git clone --branch v2.15.0 https://github.com/Blosc/c-blosc2
cd c-blosc2

mkdir build
cd build

cmake -DCMAKE_INSTALL_PREFIX=/scratch/wuda/3rdparty/c-blosc2 -DBUILD_SHARED=OFF ..

make -j4

make install

Configure and build ADIOS2 lib from source, with Blosc2 support

wget https://github.com/ornladios/ADIOS2/archive/refs/tags/v2.10.1.tar.gz

tar zxf v2.10.1.tar.gz
cd ADIOS2-2.10.1

mkdir build
cd build

CC=mpicc CXX=mpicxx FC=mpif90 \
CFLAGS="-g -O2" CPPFLAGS="-g -O2" CXXFLAGS="-g -O2" FCFLAGS="-g -O2" \
Blosc2_DIR=/scratch/wuda/3rdparty/c-blosc2 \
cmake -DCMAKE_INSTALL_PREFIX=/scratch/wuda/3rdparty/adios2 \
-DBUILD_SHARED_LIBS=OFF -DADIOS2_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF \
-DADIOS2_USE_Blosc2=ON \
-DADIOS2_USE_BZip2=OFF \
-DADIOS2_USE_ZFP=OFF \
-DADIOS2_USE_SZ=OFF \
-DADIOS2_USE_MGARD=OFF \
-DADIOS2_USE_PNG=OFF \
-DADIOS2_USE_DataMan=OFF \
-DADIOS2_USE_DataSpaces=OFF \
-DADIOS2_USE_MHS=OFF \
-DADIOS2_USE_ZeroMQ=OFF \
-DADIOS2_USE_HDF5=OFF \
-DADIOS2_USE_Python=OFF \
-DADIOS2_USE_Fortran=OFF \
-DADIOS2_USE_Profiling=OFF \
..

make -j4

make install

CMake errors encountered:

CMake Error at cmake/DetectOptions.cmake:97 (add_library):
  add_library cannot create ALIAS target "adios2_blosc2" because target
  "Blosc2::blosc2_static" is imported but not globally visible.
Call Stack (most recent call first):
  CMakeLists.txt:194 (include)

dqwu avatar Oct 17 '24 18:10 dqwu