Question: Need help build games-dev/libcchem/rysq???. I type the process I follow and the ERRORs I got it
**error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support**
[x] Summary of the issue and expected results.
On the following step : Link an executable form of GAMESS by the command
chdir ~/gamess
./lked gamess 00 >& lked.log &
Got the following ERROR:
b/lib -L/usr/lib -L/usr/lib64 -lmpiprofilesupport -lmpi_ibm_mpifh -lmpi_ibm -libverbs
/usr/bin/ld: cannot find -lcchem
/usr/bin/ld: cannot find -lrysq
collect2: error: ld returned 1 exit status
set rc=1
unset echo
Unfortunately, there was an error while linking GAMESS.
0.832u 0.390s 0:02.11 57.8% 0+0k 280704+5504io 0pf+0w
"lked.log" 46L, 9634C 46,1 Bot
From the ERROR above, -LCCHEM and _LRYSQ and the information from the file "libcchem/tools/cmakebuild" I try to build RYSQ.
Here I show you my steps, what I did and the errors I got it.
~libcchem/rysq$ mkdir build
~libcchem/rysq$ cd build
2.1 First TRY
~libcchem/rysq/build$ cmake ../
.
.
CMake Error at CMakeLists.txt:154 (message):
Boost library not found! Please use the -DBOOST_ROOT flag to select a
proper location for the Boost library installation.
-- Configuring incomplete, errors occurred!
See also "/ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/build2/CMakeFiles/CMakeOutput.log".
2.2 I got the following ERROR
~libcchem/rysq/build$ make
Scanning dependencies of target cudaKernel
[ 2%] Building CXX object src/cuda/kernel/CMakeFiles/cudaKernel.dir/link.cpp.o
[ 5%] Building CUDA object src/cuda/kernel/CMakeFiles/cudaKernel.dir/fock.cu.o
In file included from /autofs/nccs-svm1_sw/summit/gcc/6.4.0/include/c++/6.4.0/array:35:0,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/rysq-core.hpp:12,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/rysq-eri.hpp:4,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/detail.hpp:5,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/kernel/kernel.hpp:4,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/kernel/fock.cu:1:
/autofs/nccs-svm1_sw/summit/gcc/6.4.0/include/c++/6.4.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support \
2.3. Second TRY, I know I am missing something on the following configuration~libcchem/rysq/build$ cmake -DBOOST_ROOT=/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/boost-1.66.0-l6qu5nrynyuksm4ex7gswb6rsvvhsj42 -DGA_ROOT=/ccs/home/hmoncada/summit_tools/ga/build -DEIGEN_ROOT=/ccs/home/hmoncada/summit_tools/eigen/build/include/eigen3 -DHDF5_ROOT=/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/hdf5-1.10.4-qj7qoumocmjj2xkwbwotazo22sugeq5o -DGPU_BOARD=VOLTA -DMATHLIB=ESSL -DMATHLIB_ROOT=/sw/summit/essl/6.2.0-20190419/essl/6.2 -DMPI_ROOT=/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/spectrum-mpi-10.3.1.2-20200121-awz2q5brde7wgdqqw4ugalrkukeub4eb -DGMX_GPU=CUDA -DCUDA_TOOLKIT_ROOT_DIR=/sw/summit/cuda/10.1.243 CFLAGS += -std=c++11 ../
-- CMAKE_BUILD_TYPE: Release
-- A GPU board was specified. GPU code is enabled.
-- Detecting Boost: /autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/boost-1.66.0-l6qu5nrynyuksm4ex7gswb6rsvvhsj42 - done
-- Configuring done
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104"
for policy details. Use the cmake_policy command to set the policy and
suppress this warning.
CUDA_ARCHITECTURES is empty for target "rysq".
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/cuda/kernel/CMakeLists.txt:
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104"
for policy details. Use the cmake_policy command to set the policy and
suppress this warning.
CUDA_ARCHITECTURES is empty for target "cudaKernel".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/build
2.4. I got the following ERROR
~libcchem/rysq/build$ make
[ 2%] Building CUDA object src/cuda/kernel/CMakeFiles/cudaKernel.dir/fock.cu.o
In file included from /autofs/nccs-svm1_sw/summit/gcc/6.4.0/include/c++/6.4.0/array:35:0,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/rysq-core.hpp:12,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/rysq-eri.hpp:4,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/detail.hpp:5,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/kernel/kernel.hpp:4,
from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/kernel/fock.cu:1:
/autofs/nccs-svm1_sw/summit/gcc/6.4.0/include/c++/6.4.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support \
Question: Need help build games-dev/libcchem/rysq???. I type the process I follow and the ERRORs I got it
**error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support**
Got the following ERROR:
b/lib -L/usr/lib -L/usr/lib64 -lmpiprofilesupport -lmpi_ibm_mpifh -lmpi_ibm -libverbs /usr/bin/ld: cannot find -lcchem /usr/bin/ld: cannot find -lrysq collect2: error: ld returned 1 exit status set rc=1 unset echo
Unfortunately, there was an error while linking GAMESS. 0.832u 0.390s 0:02.11 57.8% 0+0k 280704+5504io 0pf+0w "lked.log" 46L, 9634C 46,1 Bot
Here I show you my steps, what I did and the errors I got it.
~libcchem/rysq$ mkdir build ~libcchem/rysq$ cd build
-- Configuring incomplete, errors occurred! See also "/ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/build2/CMakeFiles/CMakeOutput.log".
2.2 I got the following ERROR ~libcchem/rysq/build$ make Scanning dependencies of target cudaKernel [ 2%] Building CXX object src/cuda/kernel/CMakeFiles/cudaKernel.dir/link.cpp.o [ 5%] Building CUDA object src/cuda/kernel/CMakeFiles/cudaKernel.dir/fock.cu.o In file included from /autofs/nccs-svm1_sw/summit/gcc/6.4.0/include/c++/6.4.0/array:35:0, from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/rysq-core.hpp:12, from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/rysq-eri.hpp:4, from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/detail.hpp:5, from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/kernel/kernel.hpp:4, from /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/src/cuda/kernel/fock.cu:1: /autofs/nccs-svm1_sw/summit/gcc/6.4.0/include/c++/6.4.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support \
^~~~~ make[2]: [src/cuda/kernel/CMakeFiles/cudaKernel.dir/fock.cu.o] Error 1 make[1]: [src/cuda/kernel/CMakeFiles/cudaKernel.dir/all] Error 2 make: *** [all] Error 2
2.3. Second TRY, I know I am missing something on the following configuration ~libcchem/rysq/build$ cmake -DBOOST_ROOT=/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/boost-1.66.0-l6qu5nrynyuksm4ex7gswb6rsvvhsj42 -DGA_ROOT=/ccs/home/hmoncada/summit_tools/ga/build -DEIGEN_ROOT=/ccs/home/hmoncada/summit_tools/eigen/build/include/eigen3 -DHDF5_ROOT=/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/hdf5-1.10.4-qj7qoumocmjj2xkwbwotazo22sugeq5o -DGPU_BOARD=VOLTA -DMATHLIB=ESSL -DMATHLIB_ROOT=/sw/summit/essl/6.2.0-20190419/essl/6.2 -DMPI_ROOT=/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/spectrum-mpi-10.3.1.2-20200121-awz2q5brde7wgdqqw4ugalrkukeub4eb -DGMX_GPU=CUDA -DCUDA_TOOLKIT_ROOT_DIR=/sw/summit/cuda/10.1.243 CFLAGS += -std=c++11 ../
-- CMAKE_BUILD_TYPE: Release -- A GPU board was specified. GPU code is enabled. -- Detecting Boost: /autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/boost-1.66.0-l6qu5nrynyuksm4ex7gswb6rsvvhsj42 - done -- Configuring done CMake Warning (dev) in CMakeLists.txt: Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC, empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
CUDA_ARCHITECTURES is empty for target "rysq". This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/cuda/kernel/CMakeLists.txt: Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC, empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
CUDA_ARCHITECTURES is empty for target "cudaKernel". This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done -- Build files have been written to: /ccs/home/hmoncada/repos_GAMESS/GAMESS/gamess_dev_test_1/libcchem/rysq/build
error This file requires compiler and library support \
^~~~~ make[2]: [src/cuda/kernel/CMakeFiles/cudaKernel.dir/fock.cu.o] Error 1 make[1]: [src/cuda/kernel/CMakeFiles/cudaKernel.dir/all] Error 2 make: *** [all] Error 2
NOTE: I know that I have an issue with C++11, I add "-std=c++11" on the cmake path to fix the problem. But it does not solve the problem
Currently Loaded Modules: 1) hsi/5.0.2.p5 7) cuda/10.1.243 13) nsight-compute/2021.1.0 2) xalt/1.2.1 8) python/3.6.6-anaconda3-5.3.0 14) hdf5/1.10.4 3) lsf-tools/2.0 9) spectrum-mpi/10.3.1.2-20200121 15) cmake/3.18.2 4) darshan-runtime/3.1.7 10) essl/6.2.0-20190419 16) git/2.20.1 5) DefApps 11) fftw/3.3.8 6) gcc/6.4.0 12) boost/1.66.0