GlobalArrays/ga

cmake build fails: Cannot determine link language for target "testf.x"

Closed this issue · 2 comments

===>  Performing out-of-source build
/bin/mkdir -p /usr/ports/devel/ga/work/.build
-- The C compiler identification is Clang 8.0.0
-- The CXX compiler identification is Clang 8.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
status CMAKE_MODULE_PATH: /usr/ports/devel/ga/work/ga-5.7.2/cmake-modules
status RESULT_VARIABLE: /usr/ports/devel/ga/work/ga-5.7.2/cmake-modules/GlobalArrays.cmake
-- Found MPI_C: /usr/local/lib/libmpi.so (found version "3.1") 
-- Found MPI_CXX: /usr/local/lib/libmpicxx.so (found version "3.1") 
-- Found MPI: TRUE (found version "3.1")  
status void size 8 USE_I8 ON ENABLE_I8 ON
-- Performing Test HAVE_RESTRICT
-- Performing Test HAVE_RESTRICT - Success
-- Performing Test HAVE_INLINE_NATIVE
-- Performing Test HAVE_INLINE_NATIVE - Success
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of double
-- Check size of double - done
-- Check size of float
-- Check size of float - done
-- Check size of long
-- Check size of long - done
-- Check size of long double
-- Check size of long double - done
-- Check size of long long
-- Check size of long long - done
-- Check size of short
-- Check size of short - done
-- Looking for include file assert.h
-- Looking for include file assert.h - found
-- Looking for include file limits.h
-- Looking for include file limits.h - found
-- Looking for include file linux/limits.h
-- Looking for include file linux/limits.h - not found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - not found
-- Looking for include file math.h
-- Looking for include file math.h - found
-- Looking for include file stdio.h
-- Looking for include file stdio.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file windows.h
-- Looking for include file windows.h - not found
-- Looking for bzero
-- Looking for bzero - found
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Found Threads: TRUE  
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: /usr/local/lib/libopenblas.so  
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- HAVE_BLAS: 1
-- HAVE_LAPACK: 1
-- BLAS_LIBRARIES: /usr/local/lib/libopenblas.so
-- LAPACK_LIBRARIES: /usr/local/lib/libopenblas.so
-- Performing Test HAVE_PAUSE
-- Performing Test HAVE_PAUSE - Success
-- Performing Test HAVE_LONG_DOUBLE
-- Performing Test HAVE_LONG_DOUBLE - Success
-- Performing Test HAVE_SYS_WEAK_ALIAS_PRAGMA
-- Performing Test HAVE_SYS_WEAK_ALIAS_PRAGMA - Failed
status Fortran flag  -i8 i8 -i8
-- Checking MPI ...
-- MPI_CXX_LIBRARIES: /usr/local/lib/libmpicxx.so;/usr/local/lib/libmpi.so
-- Performing Test BLAS_1_SIGNATURE
-- Performing Test BLAS_1_SIGNATURE - Failed
-- Performing Test BLAS_2_SIGNATURE
-- Performing Test BLAS_2_SIGNATURE - Failed
-- Performing Test BLAS_3_SIGNATURE
-- Performing Test BLAS_3_SIGNATURE - Failed
-- Performing Test BLAS_4_SIGNATURE
-- Performing Test BLAS_4_SIGNATURE - Failed
-- Performing Test BLAS_5_SIGNATURE
-- Performing Test BLAS_5_SIGNATURE - Failed
-- Performing Test BLAS_6_SIGNATURE
-- Performing Test BLAS_6_SIGNATURE - Failed
-- Performing Test FUNCTION_1_SIGNATURE
-- Performing Test FUNCTION_1_SIGNATURE - Failed
-- Performing Test FUNCTION_2_SIGNATURE
-- Performing Test FUNCTION_2_SIGNATURE - Failed
-- Looking for sched_setaffinity
-- Looking for sched_setaffinity - not found
-- Looking for pthread_setaffinity_np
-- Looking for pthread_setaffinity_np - not found
-- Configuring done
CMake Error: Cannot determine link language for target "testf.x".
CMake Error: CMake can not determine linker language for target: testf.x
-- Generating done

I couldn't build the latest NWChem release because it asked for ga with a SCALAPACK option that is only available with cmake and cmake breaks.

This should work now due to the CMake build improvements in the develop branch.