UK-MAC / CleverLeaf_ref

CleverLeaf reference version - AMR mini-app/mini-driver using the SAMRAI library
http://uk-mac.github.io/CleverLeaf/
GNU Lesser General Public License v3.0
11 stars 4 forks source link

spack cmake cannot build #5

Open twang15 opened 6 years ago

twang15 commented 6 years ago

Related to this bug in spack

Running "spack install cleverleaf" would result in the following error:

1 error found in build log: 12 -- Check for working Fortran compiler: /usr/workspace/wsa/wang102/spack/lib/spack/env/intel/ifort -- works 13 -- Detecting Fortran compiler ABI info 14 -- Detecting Fortran compiler ABI info - done 15 -- Checking whether /usr/workspace/wsa/wang102/spack/lib/spack/env/intel/ifort supports Fortran 90 16 -- Checking whether /usr/workspace/wsa/wang102/spack/lib/spack/env/intel/ifort supports Fortran 90 -- yes 17 -- Found SAMRAI: /usr/workspace/wsa/wang102/spack/opt/spack/linux-rhel7-x86_64/intel-18.0.2/samrai-3.12.0-6kpa76huxh5umfbxhuew3yx jdt3sjlhy/include

18 CMake Error at /usr/tce/packages/cmake/cmake-3.9.2/share/cmake/Modules/FindHDF5.cmake:196 (try_compile): 19 Unknown extension ".c" for file 20 21 /tmp/wang102/spack-stage/spack-stage-1mTlLm/CleverLeaf_ref/spack-build/CMakeFiles/hdf5/cmake_hdf5_test.c 22 23 try_compile() works only for enabled languages. Currently these are: 24

twang15 commented 6 years ago

The solution is to just add the following in the CMakeLists.txt file:

ENABLE_LANGUAGE(C)

twang15 commented 6 years ago

@davidbeckingsale