evaleev/libint

Building libint2 on ThunderX2 Arm64

Opened this issue · 0 comments

I'm trying to build libint2 on ThunderX2 Arm64.

I have compiled and installed mpfr/4.1.0, where all the tests have succeeded.

============================================================================
Testsuite summary for MPFR 4.1.0
============================================================================
# TOTAL: 183
# PASS: 183
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================

Then I tried to cmake the libint with

cmake ../ -DMPFR_ROOT=/work/build/mpfr/4.1.0/ -DEigen3_DIR=/work/src/eigen-3.4.0/build/

Which I got

-- The CXX compiler identification is GNU 10.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/gcc/10.2.0/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Version: Full 2.7.0-beta.6 Numeric 2.7.0
-- SO Version: Full 2:3:0 Major 2
-- Setting (unspecified) option CMAKE_BUILD_TYPE: Release
-- Setting (unspecified) option BUILD_SHARED: OFF
-- Setting (unspecified) option BUILD_STATIC: ON
-- Setting (unspecified) option ENABLE_CXX11API: ON
-- Setting (unspecified) option ENABLE_FORTRAN: OFF
-- Setting (unspecified) option BUILD_TESTING: ON
-- Setting (unspecified) option LIBINT2_SHGAUSS_ORDERING: standard
-- Setting option LIBINT2_CARTGAUSS_ORDERING: standard (read-only from generation-time)
-- Setting option LIBINT2_SHELL_SET: standard (read-only from generation-time)
-- Setting (unspecified) option ENABLE_XHOST: ON
-- Performing Test CMAKE_CXX_FLAGS [-xHost] - Failed
-- Performing Test CMAKE_CXX_FLAGS [-march=native] - Success, Appending
-- Setting (unspecified) option BUILD_FPIC: OFF
-- Setting (unspecified) option CMAKE_INSTALL_LIBDIR: lib
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Found MPFR: /work/e280/e280-Biggin/grte2001/build/mpfr/4.1.0/include (Required is at least version "1.0.0") 
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at least version "1.57")
-- Unpacking bundled Boost
-- The C compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/gcc/10.2.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
CMake Error at tests/CMakeLists.txt:63 (add_executable):
  Target "hartree-fock" links to target "MPFR::MPFRXX" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:90 (add_executable):
  Target "hartree-fock++" links to target "MPFR::MPFRXX" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:8 (add_executable):
  Target "eritest" links to target "MPFR::MPFRXX" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:35 (add_executable):
  Target "unit_tests" links to target "MPFR::MPFRXX" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at CMakeLists.txt:152 (target_include_directories):
  Error evaluating generator expression:

    $<TARGET_PROPERTY:MPFR::GMPXX,INTERFACE_INCLUDE_DIRECTORIES>

  Target "MPFR::GMPXX" not found.


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

I wonder if I can get some help with regard to what is the cause? Thank you.