Hii
I am also facing same problem here. i am able to run build successfully but while going for make command it is getting error.
I am posting here my output starting with build folder
[shailja@login1 build]$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local …
– The C compiler identification is GNU 8.2.0
– The CXX compiler identification is GNU 8.2.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /home/application/gcc/8.2.0/bin/gcc - 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: /home/application/gcc/8.2.0/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– No build type selected, defaulting to RelWithDebInfo
– Found ZLIB: /home/application/STARCCM2021/16.02.009-R8/STAR-View+16.02.009/bi n/libz.so (found version “1.2.11”)
– Found PNG: /usr/lib64/libpng.so (found version “1.5.13”)
– Found HDF5: /home/application/hdf5/gcc-4.8.5/1.10.1/lib/libhdf5.so;/home/appl ication/STARCCM2021/16.02.009-R8/STAR-View+16.02.009/bin/libz.so;/usr/lib64/libd l.so;/usr/lib64/libm.so (found version “1.10.1”) found components: C HL
– Found OpenMP_C: -fopenmp (found version “4.5”)
– Found OpenMP_CXX: -fopenmp (found version “4.5”)
– Found OpenMP: TRUE (found version “4.5”)
– OpenMC C++ flags: -fopenmp
– OpenMC Linker flags: -fopenmp
– Found Git: /home/application/git225/bin/git (found version “2.25.0”)
– Found pugixml: /home/shailja/.local/lib64/cmake/pugixml (version 1.12)
– Found fmt: /home/shailja/.local/lib64/cmake/fmt (version 8.0.0)
– Performing Test arch_native_supported
– Performing Test arch_native_supported - Success
– Found xtensor: /home/shailja/.local/lib64/cmake/xtensor (version 0.24.2)
– Found gsl-lite: /home/shailja/.local/lib64/cmake/gsl-lite (version 0.40.0)
– Configuring done
– Generating done
– Build files have been written to: /home/shailja/openmc-develop/build
[shailja@login1 build]$ make
[ 1%] Building CXX object CMakeFiles/libopenmc.dir/src/bank.cpp.o
In file included from /home/shailja/openmc-develop/include/openmc/capi.h:6,
from /home/shailja/openmc-develop/src/bank.cpp:2:
/home/application/intel2018u4/compilers_and_libraries/linux/include/stdint.h:79: 10: warning: undefining “__STDC_LIMIT_MACROS_DEFINED_BY_CLANG”
undef __STDC_LIMIT_MACROS_DEFINED_BY_CLANG
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/application/intel2018u4/compilers_and_libraries/linux/include/stdint.h:83: 10: warning: undefining “__STDC_CONSTANT_MACROS_DEFINED_BY_CLANG”
undef __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:53:3 : error: #error “This Intel is for use only with the Intel C++ compile rs!”
error “This Intel is for use only with the Intel C++ compilers!”
^~~~~
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex: In member function ‘std::complex& std::complex::operator=(const std:: complex<_Tp>&) [with _Tp = double]’:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:69:2 4: error: ‘std::complex::_ComplexT std::complex::_M_value’ is pr ivate within this context
_M_value = __z._M_value;
^~~~~~~~
In file included from /home/application/intel2018u4/compilers_and_libraries/linu x/include/complex:30,
from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/gcc/8.2.0/include/c++/8.2.0/complex:1365:17: note: declared pr ivate here
_ComplexT _M_value;
^~~~~~~~
In file included from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:69:2 4: note: field ‘std::complex::_ComplexT std::complex::_M_value’ can be accessed via ‘constexpr std::complex::_ComplexT std::complex::__rep() const’
_M_value = __z._M_value;
^~~~~~~~
__rep()
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex: In member function ‘std::complex& std::complex::operator=(const std ::complex<_Tp>&) [with _Tp = float]’:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:77:2 4: error: ‘std::complex::_ComplexT std::complex::_M_value’ is priv ate within this context
_M_value = __z._M_value;
^~~~~~~~
In file included from /home/application/intel2018u4/compilers_and_libraries/linu x/include/complex:30,
from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/gcc/8.2.0/include/c++/8.2.0/complex:1215:17: note: declared pr ivate here
_ComplexT _M_value;
^~~~~~~~
In file included from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:77:2 4: note: field ‘std::complex::_ComplexT std::complex::_M_value’ ca n be accessed via ‘constexpr std::complex::_ComplexT std::complex: :__rep() const’
_M_value = __z._M_value;
^~~~~~~~
__rep()
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex: In function ‘std::complex std::operator+(const std::complex&, const s td::complex&)’:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:115: 20: error: ‘std::complex::_ComplexT std::complex::_M_value’ is pri vate within this context
return __x._M_value + __y._M_value;
^~~~~~~~
In file included from /home/application/intel2018u4/compilers_and_libraries/linu x/include/complex:30,
from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/gcc/8.2.0/include/c++/8.2.0/complex:1215:17: note: declared pr ivate here
_ComplexT _M_value;
^~~~~~~~
In file included from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:115: 20: note: field ‘std::complex::_ComplexT std::complex::_M_value’ c an be accessed via ‘constexpr std::complex::_ComplexT std::complex ::__rep() const’
return __x._M_value + __y._M_value;
^~~~~~~~
__rep()
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:115: 35: error: ‘std::complex::_ComplexT std::complex::_M_value’ is pri vate within this context
return __x._M_value + __y._M_value;
^~~~~~~~
In file included from /home/application/intel2018u4/compilers_and_libraries/linu x/include/complex:30,
from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/gcc/8.2.0/include/c++/8.2.0/complex:1215:17: note: declared pr ivate here
_ComplexT _M_value;
^~~~~~~~
In file included from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:115: 35: note: field ‘std::complex::_ComplexT std::complex::_M_value’ c an be accessed via ‘constexpr std::complex::_ComplexT std::complex ::__rep() const’
return __x._M_value + __y._M_value;
^~~~~~~~
__rep()
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex: In function ‘std::complex std::operator-(const std::complex&, const s td::complex&)’:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:120: 20: error: ‘std::complex::_ComplexT std::complex::_M_value’ is pri vate within this context
return __x._M_value - __y._M_value;
^~~~~~~~
In file included from /home/application/intel2018u4/compilers_and_libraries/linu x/include/complex:30,
from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/gcc/8.2.0/include/c++/8.2.0/complex:1215:17: note: declared pr ivate here
_ComplexT _M_value;
^~~~~~~~
…
…
…
In file included from /home/shailja/.local/include/xtl/xtype_traits.hpp:13,
from /home/shailja/.local/include/xtl/xfunctional.hpp:16,
from /home/shailja/.local/include/xtl/xmeta_utils.hpp:17,
from /home/shailja/.local/include/xtl/xsequence.hpp:20,
from /home/shailja/.local/include/xtensor/xexception.hpp:20,
from /home/shailja/.local/include/xtensor/xstorage.hpp:21,
from /home/shailja/.local/include/xtensor/xbuffer_adaptor.hpp:2 2,
from /home/shailja/.local/include/xtensor/xtensor.hpp:19,
from /home/shailja/openmc-develop/include/openmc/mesh.h:11,
from /home/shailja/openmc-develop/include/openmc/simulation.h: ,
from /home/shailja/openmc-develop/src/bank.cpp:5:
/home/application/intel2018u4/compilers_and_libraries/linux/include/complex:310: 26: note: field ‘std::complex::_ComplexT std::complex::_M_value’ can be accessed via ‘constexpr std::complex::_ComplexT std::complex::__rep() const’
return __x / __y._M_value;
^~~~~~~~
__rep()
make[2]: *** [CMakeFiles/libopenmc.dir/src/bank.cpp.o] Error 1
make[1]: *** [CMakeFiles/libopenmc.dir/all] Error 2
make: *** [all] Error 2
sorry it is long post but before it was working on cluster rhel 7.5 version and now I need to reinstall it but it is not working.