Closed tonyhutter closed 5 years ago
You have to use something newer that GCC 4.9.3.
The VeloC spack package (https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/veloc/package.py) has some documentation around how to build. Look at the depends_on and conflicts statements to get a sense of how to build.
@gonsie this is still a bug that needs to be fixed. We need to either:
Update the code to work with the older compiler. In fact, we should target whatever GCC version RHEL 7 is running, since a lot of sites are going to be running it. I believe it's currently GCC 4.8.5.
Put a GCC version requirement in CMakeLists.txt
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.4)
message(FATAL_ERROR "GCC version is tool old" )
endif()
Tony, you bring a very good point. Unfortunately though, we will need to support many compilers not just GCC. Therefore, it will be a nightmare to maintain the CMakeLists.txt file for all possible alternatives. A better approach is to maintain a good documentation with up to date installation instructions. Feel free to update the documentation as needed (it's in the "docs" subdirectory).
Here's a fix: https://github.com/ECP-VeloC/VELOC/pull/10
I'm unable to build VeloC master (using GCC 4.9.3):