I'm trying to create a rhel7 rpm package to deploy MAGMA 2.0.1 on my cluster, unfortunately, the install rule is not generated.
Furthermore, if I do a cmake -P cmake_install.cmake
I get a:
-- Install configuration: "RELEASE"
and nothing is installed.
Looking at the CMakeList.txt, no FILE(INSTALL ....) command.
Is there a trick I missed? (the build works flawlessly)
here is how I did proceed:
Code: Select all
tar xvfz magma-2.0.1.tar.gz
cd magma-2.0.1.tar.gz
cmake -E make_directory build
cd build
CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic}" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib/gcc/x86_64-redhat-linux6E/4.4.4/finclude}" ; export FFLAGS ;
FCFLAGS="${FCFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib/gcc/x86_64-redhat-linux6E/4.4.4/finclude}" ; export FCFLAGS ;
LDFLAGS="${LDFLAGS:--Wl,-z,relro }" ; export LDFLAGS ;
/usr/bin/cmake \
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DINCLUDE_INSTALL_DIR:PATH=/usr/include \
-DLIB_INSTALL_DIR:PATH=/usr/lib64 \
-DSYSCONF_INSTALL_DIR:PATH=/etc \
-DSHARE_INSTALL_PREFIX:PATH=/usr/share \
%if "lib64" == "lib64"
-DLIB_SUFFIX=64 \
%endif
-DBUILD_SHARED_LIBS:BOOL=ON
# This is the expansion of the rpm %cmake macro
make -j16
# build completes without trouble
make install
make: *** No rule to make target `install'. Stop.
# Looking at the makefile, there is only a preinstall: rule. Nothing else about install.
cmake -DDESTDIR=/tmp/temp_root/ -P cmake_install.cmake
-- Install configuration: "RELEASE"
# Nothing done
# install_manifest.txt is emptyAs a workaround, can I just copy files in the following way?:
./build/lib/* => /tmp/temp_root/usr/lib64/
./include => /tmp/temp_root/include
./doc, ./examples, ./README, ... => /usr/share/doc/magma-2.0.1
I'm using the following packages:
cmake-2.8.11-5.el7.x86_64
cuda-documentation-7-5-7.5-18.x86_64
cuda-license-7-5-7.5-18.x86_64
cuda-runtime-7-5-7.5-18.x86_64
cuda-nvrtc-7-5-7.5-18.x86_64
cuda-cufft-dev-7-5-7.5-18.x86_64
cuda-cusolver-7-5-7.5-18.x86_64
cuda-toolkit-7-5-7.5-18.x86_64
cuda-core-7-5-7.5-18.x86_64
cuda-command-line-tools-7-5-7.5-18.x86_64
cuda-cublas-7-5-7.5-18.x86_64
cuda-cufft-7-5-7.5-18.x86_64
cuda-npp-dev-7-5-7.5-18.x86_64
cuda-cusparse-dev-7-5-7.5-18.x86_64
cuda-visual-tools-7-5-7.5-18.x86_64
cuda-misc-headers-7-5-7.5-18.x86_64
cuda-driver-dev-7-5-7.5-18.x86_64
cuda-cudart-dev-7-5-7.5-18.x86_64
cuda-7-5-7.5-18.x86_64
cuda-curand-dev-7-5-7.5-18.x86_64
cuda-nvrtc-dev-7-5-7.5-18.x86_64
cuda-npp-7-5-7.5-18.x86_64
cuda-cusparse-7-5-7.5-18.x86_64
cuda-cusolver-dev-7-5-7.5-18.x86_64
cuda-cudart-7-5-7.5-18.x86_64
cuda-curand-7-5-7.5-18.x86_64
cuda-cublas-dev-7-5-7.5-18.x86_64
cuda-samples-7-5-7.5-18.x86_64
openblas-devel-0.2.15-5.el7.x86_64
openblas-openmp-0.2.15-5.el7.x86_64
openblas-serial64_-0.2.15-5.el7.x86_64
openblas-threads64-0.2.15-5.el7.x86_64
openblas-threads64_-0.2.15-5.el7.x86_64
openblas-openmp64-0.2.15-5.el7.x86_64
openblas-serial64-0.2.15-5.el7.x86_64
openblas-openmp64_-0.2.15-5.el7.x86_64
openblas-0.2.15-5.el7.x86_64
openblas-threads-0.2.15-5.el7.x86_64