Building on Cluster

31 views
Skip to first unread message

Zachary 42!

unread,
Nov 17, 2020, 9:22:19 PM11/17/20
to dea...@googlegroups.com
Hi everyone,

I am having an issue with building deal.II on my groups cluster. I am trying to build with Intel MPI compilers like mpiicc and mpiicpc. Here is the output where the error is:

- Include /global/home/users/lstreeter/dealii/cmake/checks/check_01_cxx_features.cmake
-- Performing Test DEAL_II_HAVE_CXX14_FEATURES
-- Performing Test DEAL_II_HAVE_CXX14_FEATURES - Failed
-- Performing Test DEAL_II_HAVE_CXX14_CLANGAUTODEBUG_BUG_OK
-- Performing Test DEAL_II_HAVE_CXX14_CLANGAUTODEBUG_BUG_OK - Failed
-- Performing Test DEAL_II_HAVE_CXX11_FEATURES
-- Performing Test DEAL_II_HAVE_CXX11_FEATURES - Failed
-- Performing Test DEAL_II_HAVE_CXX11_FUNCTIONAL_LLVMBUG20084_OK
-- Performing Test DEAL_II_HAVE_CXX11_FUNCTIONAL_LLVMBUG20084_OK - Failed
-- C++14 support is disabled.
-- C++14 support not available. Try to set -std=c++14 explicitly
-- Performing Test DEAL_II_HAVE_FLAG_std=c__14
-- Performing Test DEAL_II_HAVE_FLAG_std=c__14 - Success
-- Configuration changed. Unsetting cached variable "DEAL_II_HAVE_CXX14_FEATURES" and rerunning checks.
-- Configuration changed. Unsetting cached variable "DEAL_II_HAVE_CXX14_CLANGAUTODEBUG_BUG_OK" and rerunning checks.
-- Configuration changed. Unsetting cached variable "DEAL_II_HAVE_CXX11_FEATURES" and rerunning checks.
-- Configuration changed. Unsetting cached variable "DEAL_II_HAVE_CXX11_FUNCTIONAL_LLVMBUG20084_OK" and rerunning checks.
-- Performing Test DEAL_II_HAVE_CXX14_FEATURES
-- Performing Test DEAL_II_HAVE_CXX14_FEATURES - Failed
-- Performing Test DEAL_II_HAVE_CXX14_CLANGAUTODEBUG_BUG_OK
-- Performing Test DEAL_II_HAVE_CXX14_CLANGAUTODEBUG_BUG_OK - Success
-- Performing Test DEAL_II_HAVE_CXX11_FEATURES
-- Performing Test DEAL_II_HAVE_CXX11_FEATURES - Success
-- Performing Test DEAL_II_HAVE_CXX11_FUNCTIONAL_LLVMBUG20084_OK
-- Performing Test DEAL_II_HAVE_CXX11_FUNCTIONAL_LLVMBUG20084_OK - Success
-- C++14 support is disabled.
CMake Error at cmake/checks/check_01_cxx_features.cmake:315 (MESSAGE):


The current version of deal.II requires a compiler with enabled C++14
support. Make sure to use a modern enough compiler (GCC version 5 onwards,
Clang version 4 onwards, or Microsoft MS VS 2015 onwards) and check that
the compiler flag "-std=" is either unset, or set to at least c++14.



Call Stack (most recent call first):
cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)
CMakeLists.txt:118 (VERBOSE_INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/global/home/users/lstreeter/dealii/build/CMakeFiles/CMakeOutput.log".
See also "/global/home/users/lstreeter/dealii/build/CMakeFiles/CMakeError.log”.

—————end of error

It’s not passing the -std=c++14 checks though I know the Intel compilers are up to date (2020). I have tried passing the standard into my cmake command but that didn’t work. ( cmake -DWITH_MPI=ON -DCMAKE_CXX_FLAGS=“-std=c++14” .. )

The default gcc is too old for the -std=c++14 standard but I did try a newer version and it passed the -std=c++14 checks. This leads me to think either deal.II isn’t checking for the -std=c++14 correctly or when I load in the intel compilers, the cluster is still using the -std found in the default gcc, which is too old (though, I don’t know how this could be). Or many other things but that’s at least what I think at the moment. I did notice the message says GCC, clang, and Microsoft but not Intel; is that anything?

This absolutely could be the cluster environment setup and I have been emailing them throughout the day but nothing fruitful yet. Any suggestions?

Cheers,

Zachary

Bruno Turcksin

unread,
Nov 18, 2020, 9:13:20 AM11/18/20
to deal.II User Group
Zachary,

The Intel compiler does not have its own standard library and instead, it uses the one from gcc. Often, you need to load a newer version of gcc and then load the Intel compiler to have a compiler *and* a standard library that support C++14. Otherwise the compiler supports C++14 but the standard library does not.

Best,

Bruno
Reply all
Reply to author
Forward
0 new messages