[AMBER] BZIP2 Error when building Amber24

From: Robert Palmere via AMBER <amber.ambermd.org>
Date: Tue, 8 Oct 2024 15:50:35 +0000

Hello all,

I am encountering an issue with BZIP2 library not being completely found when installing AMBER24.

At the end of the build I receive multiple instances of the following warning:

CMake Warning (dev) in CMakeLists.txt: Policy CMP0111 is not set: An imported target missing its location property fails during generation. Run "cmake --help-policy CMP0111" for policy details. Use the cmake_policy command to set the policy and suppress this warning. IMPORTED_LOCATION not set for imported target "BZip2::BZip2" configuration "RELEASE". This warning is for project developers. Use -Wno-dev to suppress it.

This is even though I have edited the “run_cmake” file to point to installed BZIP2 library. Here is the “cmake” command I am issuing:


cmake $AMBER_PREFIX/amber24_src \

    -DCMAKE_INSTALL_PREFIX=$AMBER_PREFIX/amber24 \

    -DCOMPILER=GNU \

    -DMPI=TRUE -DCUDA=TRUE -DINSTALL_TESTS=TRUE \

    -DDOWNLOAD_MINICONDA=FALSE -DMVAPICH2GDR_GPU_DIRECT_COMM=TRUE \

    -DZLIB_ROOT=/home/rdp135/zlib/ -DBZIP2_LIBRARIES=/scratch/rdp135/bzip2/lib/libbz2.a -DBZIP2_INCLUDE_DIR=/scratch/rdp135/bzip2/include/ \

    -DNCCL=TRUE -DNCCL_LIBRARY=/scratch/rdp135/nccl/build/lib/libnccl_static.a -DNCCL_INCLUDE_DIR=/scratch/rdp135/nccl/build/include/ \

    2>&1 | tee cmake.log


So it seems to find BZIP2 when I run cmake but when I go to build using “make install” at 66% I get the following error:


AmberTools/src/cpptraj/src/CMakeFiles/cpptraj.dir/build.make:1172: *** target pattern contains no `%'. Stop. make[1]: *** [AmberTools/src/cpptraj/src/CMakeFiles/cpptraj.dir/all] Error 2 make: *** [all] Error 2


Looking in AmberTools/src/cpptraj/src/CMakeFiles/cpptraj.dir/build.cmake at line 1172 I see:


AmberTools/src/cpptraj/src/cpptraj: BZip2::BZip2-NOTFOUND


Even though it is found when I run “./run_cmake”:


-- Found BZip2: /scratch/rdp135/bzip2/lib/libbz2.a (found version "1.0.8")


How do I get the “IMPORTED_LOCATION” to be set for imported target “BZip2::BZip2” as indicated in the warning messages?


Any thoughts would be much appreciated.


Best,


Robert
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Oct 08 2024 - 09:00:02 PDT
Custom Search