Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boost doesn't download if also missing BTAS #229

Open
awild82 opened this issue Dec 3, 2020 · 2 comments
Open

Boost doesn't download if also missing BTAS #229

awild82 opened this issue Dec 3, 2020 · 2 comments
Assignees

Comments

@awild82
Copy link
Contributor

awild82 commented Dec 3, 2020

Details

I am trying to build TiledArray in an environment that does not have Boost or BTAS. Based on INSTALL.md, I figured that both will be downloaded and installed, but instead, I get an error from the configuration of BTAS:

-- Could NOT find Boost (missing: Boost_DIR)
CMake Error at /home/software/cmake/3/19/1/install/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR)
Call Stack (most recent call first):
  /home/software/cmake/3/19/1/install/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
  /home/software/cmake/3/19/1/install/share/cmake-3.19/Modules/FindBoost.cmake:2193 (find_package_handle_standard_args)
  build/_deps/btas-src/external/boost.cmake:16 (find_package)
  build/_deps/btas-src/CMakeLists.txt:141 (include)

Looking at the boost.cmake from BTAS, it looks like it is a required package, and BTAS doesn't download boost, so since TiledArray finds or fetches BTAS before Boost, TiledArray doesn't get a chance to download Boost. I see that the ordering was changed from finding Boost then BTAS to the other way around so that BTAS can find Boost itself, so I am not sure if the fix is to change the ordering back, to get BTAS to download Boost, or to update the documentation to note this conflict.

Steps to reproduce

Build TiledArray from scratch on a system that does not have Boost or BTAS already installed.

Configuration

  • System: CentOS 7.6
  • TiledArray version: tag v1.0.0
  • Dependencies:
    • Compiler: GCC 8.2.0
    • MPI: OpenMPI 4.0.5
    • Eigen: 3.3.5
    • BLAS/LAPACK: OpenBLAS 0.2.20
    • ScaLAPACK: 2.1.0
  • CMake configuration:
cmake \
      -DEIGEN3_INCLUDE_DIR=${EIGEN3_INCLUDE_DIR} \
      -DENABLE_MKL=OFF \
      -DLAPACK_LIBRARIES="${OPENBLAS_ROOT}/lib64/libopenblas.a -lm -lgfortran" \
      -DLAPACKE_LIBRARIES="${OPENBLAS_ROOT}/lib64/libopenblas.a" \
      -DLAPACKE_INCLUDE_DIR="${OPENBLAS_ROOT}/include" \
      -DLAPACKE_INCLUDE_FILE="${OPENBLAS_ROOT}/include/lapacke.h" \
      -DCBLAS_LIBRARIES="${OPENBLAS_ROOT}/lib64/libopenblas.a" \
      -DCBLAS_INCLUDE_DIR="${OPENBLAS_ROOT}/include" \
      -DCBLAS_INCLUDE_FILE="${OPENBLAS_ROOT}/include/cblas.h" \
      ..
@kmp5VT kmp5VT self-assigned this Dec 3, 2020
@kmp5VT
Copy link
Contributor

kmp5VT commented Dec 3, 2020

Are you using the master branch?

@awild82
Copy link
Contributor Author

awild82 commented Dec 3, 2020

Yes, I am.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants