spack: Build error: cmake
cmake errors even with cxxflags set (spack compiled gcc@9.2.0)
spack install cmake cxxflags="-std=c++11"
Steps to reproduce the issue
spack install cmake cxxflags="-std=c++11"
2 errors found in build log:
454 -- Checking if compiler supports needed C++17 constructs
455 -- Checking if compiler supports needed C++17 constructs - yes
456 -- Checking if compiler supports C++ make_unique
457 -- Checking if compiler supports C++ make_unique - no
458 -- Checking if compiler supports C++ unique_ptr
>> 474 CMake Error at CMakeLists.txt:92 (message):
475 The C++ compiler does not support C++11 (e.g. std::unique_ptr).
Platform and user environment
$ uname -a
Linux edi 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
centOS 7.7
Additional information
Possibly related https://github.com/spack/spack/issues/11223
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (19 by maintainers)
Commits related to this issue
- Generic x86_64 code compiled with GCC uses non deprecated mtune flags fixes #12928 — committed to alalazo/spack by alalazo 7 years ago
- Generic x86_64 code compiled with GCC uses non deprecated mtune flags fixes #12928 — committed to BlueBrain/spack by alalazo 7 years ago
- Generic x86_64 code compiled with GCC uses non deprecated mtune flags (#13022) fixes #12928 — committed to spack/spack by alalazo 7 years ago
- Generic x86_64 code compiled with GCC uses non deprecated mtune flags (#13022) fixes #12928 — committed to tldahlgren/spack by alalazo 7 years ago
- Generic x86_64 code compiled with GCC uses non deprecated mtune flags (#13022) fixes #12928 — committed to jrmadsen/spack by alalazo 7 years ago
- Fix mtune flag for gcc 4.1.2 Even on gcc 4.1.2 `-mtune=x86-64` is deprecated and will produce warnings (or errors with -Werror, see #12928). — committed to manuelakuhn/spack by deleted user 7 years ago
The other one is exactly the same, not sure why it is logged two times in the log file.
Details
Sorry, c/p mistake. Added the error message in the initial post.