Hi all,
I am attempting to build FEniCS from source locally on my RHEL cluster. For building DOLFIN, it says one of the missing required packages was boost, so I installed boost 1.6.3. However when I get to the cmake step, this is the output:
$ cmake .. -DCMAKE_INSTALL_PREFIX=/home/jchang23/.local
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /share/apps/gcc-4.9.2/bin/gcc
-- Check for working C compiler: /share/apps/gcc-4.9.2/bin/gcc -- 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: /share/apps/gcc-4.9.2/bin/g++
-- Check for working CXX compiler: /share/apps/gcc-4.9.2/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_PIPE
-- Performing Test HAVE_PIPE - Success
-- Performing Test HAVE_PEDANTIC
-- Performing Test HAVE_PEDANTIC - Success
-- Performing Test HAVE_DEBUG
-- Performing Test HAVE_DEBUG - Success
-- Performing Test HAVE_O2_OPTIMISATION
-- Performing Test HAVE_O2_OPTIMISATION - 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 size_t
-- Check size of size_t - done
-- Found MPI_C: /share/apps/openmpi-1.8.3/lib/libmpi.so
-- Found MPI_CXX: /share/apps/openmpi-1.8.3/lib/libmpi_cxx.so;/share/apps/openmpi-1.8.3/lib/libmpi.so
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Performing Test OPENMP_UINT_TEST_RUNS
-- Performing Test OPENMP_UINT_TEST_RUNS - Success
CMake Warning at cmake/modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
cmake/modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
cmake/modules/FindBoost.cmake:1452 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:330 (find_package)
CMake Warning at cmake/modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
cmake/modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
cmake/modules/FindBoost.cmake:1452 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:330 (find_package)
CMake Warning at cmake/modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
cmake/modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
cmake/modules/FindBoost.cmake:1452 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:330 (find_package)
CMake Warning at cmake/modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version 106300
Call Stack (most recent call first):
cmake/modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
cmake/modules/FindBoost.cmake:1452 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:330 (find_package)
-- Boost version: 1.63.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- iostreams
-- timer
-- Found Eigen3: /home/jchang23/.local/include/eigen3 (Required is at least version "3.2.0")
-- Found PythonInterp: /home/jchang23/.local/bin/python2.7 (found suitable version "2.7.10", minimum required is "2.7")
-- Found PythonLibs: /home/jchang23/.local/lib/libpython2.7.a (found suitable exact version "2.7.10")
-- NumPy header version 1.11.3 found
-- Found PY_ply: /home/jchang23/.local/lib/python2.7/site-packages/ply-3.9-py2.7.egg/ply
-- Found SWIG: /home/jchang23/.local/bin/swig (found version "3.0.11")
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named ffc
-- UFC could not be found. (missing: UFC_INCLUDE_DIRS UFC_VERSION UFC_VERSION_OK UFC_SIGNATURE) (Required is at least version "2017.1")
-- Checking for package 'PETSc'
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- Checking for one of the modules 'craypetsc_real;PETSc'
-- PETSc could not be found. Be sure to set PETSC_DIR. (missing: PETSC_FOUND) (Required is at least version "3.7")
-- ParMETIS could not be found/configured. (missing: PARMETIS_LIBRARIES PARMETIS_TEST_RUNS PARMETIS_INCLUDE_DIRS PARMETIS_VERSION PARMETIS_VERSION_OK) (Required is at least version "4.0.2")
-- Checking for package 'SCOTCH-PT'
-- SCOTCH could not be found. Be sure to set SCOTCH_DIR. (missing: SCOTCH_LIBRARIES SCOTCH_INCLUDE_DIRS SCOTCH_TEST_RUNS)
-- Checking for package 'AMD'
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Checking for package 'UMFPACK'
-- Checking for package 'AMD'
-- Checking for package 'CHOLMOD'
-- Checking for package 'AMD'
-- Found BLAS: /usr/lib64/libblas.so
-- UMFPACK could not be found. Be sure to set UMFPACK_DIR. (missing: UMFPACK_INCLUDE_DIRS AMD_LIBRARIES UMFPACK_TEST_RUNS)
-- Checking for package 'CHOLMOD'
-- Checking for package 'AMD'
-- Found BLAS: /usr/lib64/libblas.so
-- CHOLMOD could not be found. Be sure to set CHOLMOD_DIR. (missing: CHOLMOD_INCLUDE_DIRS CHOLMOD_TEST_RUNS)
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS C)
-- Checking for Trilinos
CMake Warning at CMakeLists.txt:556 (find_package):
Could not find a package configuration file provided by "Trilinos" with any
of the following names:
TrilinosConfig.cmake
trilinos-config.cmake
Add the installation prefix of "Trilinos" to CMAKE_PREFIX_PATH or set
"Trilinos_DIR" to a directory containing one of the above files. If
"Trilinos" provides a separate development package or SDK, be sure it has
been installed.
-- Unable to find Trilinos (>= 12.4.0)
-- Trilinos could not be found
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Checking for package 'Sphinx'
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE SPHINX_VERSION_OK) (Required is at least version "1.1.0")
CMake Warning at CMakeLists.txt:649 (find_package):
Could not find a package configuration file provided by "VTK" with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
to a directory containing one of the above files. If "VTK" provides a
separate development package or SDK, be sure it has been installed.
--
-- The following features have been enabled:
* BUILD_SHARED_LIBS , Build DOLFIN with shared libraries.
* DOLFIN_AUTO_DETECT_MPI , Detect MPI automatically (turn this off to use the MPI compiler wrappers directly via setting CXX, CXX, FC).
* DOLFIN_WITH_LIBRARY_VERSION , Build with library version information.
* DOLFIN_ENABLE_GTEST , Enable C++ unit tests with Google Test if DOLFIN_ENABLE_TESTING is true (requires Internet connection to download Google Test when first configured).
* DOLFIN_ENABLE_DOCS , Enable generation of documentation.
* CMAKE_INSTALL_RPATH_USE_LINK_PATH , Add paths to linker search and installed rpath.
* DOLFIN_ENABLE_OPENMP , Compile with support for OpenMP.
* DOLFIN_ENABLE_MPI , Compile with support for MPI.
* DOLFIN_ENABLE_PETSC , Compile with support for PETSc.
* DOLFIN_ENABLE_PETSC4PY , Compile with support for PETSc4py.
* DOLFIN_ENABLE_SLEPC , Compile with support for SLEPc.
* DOLFIN_ENABLE_SLEPC4PY , Compile with support for SLEPc4py.
* DOLFIN_ENABLE_TRILINOS , Compile with support for Trilinos.
* DOLFIN_ENABLE_UMFPACK , Compile with support for UMFPACK.
* DOLFIN_ENABLE_CHOLMOD , Compile with support for CHOLMOD.
* DOLFIN_ENABLE_SCOTCH , Compile with support for SCOTCH.
* DOLFIN_ENABLE_PARMETIS , Compile with support for ParMETIS.
* DOLFIN_ENABLE_ZLIB , Compile with support for zlib.
* DOLFIN_ENABLE_PYTHON , Compile with support for Python.
* DOLFIN_ENABLE_SPHINX , Compile with support for Sphinx.
* DOLFIN_ENABLE_HDF5 , Compile with support for HDF5.
* DOLFIN_ENABLE_VTK , Compile with support for VTK.
-- The following OPTIONAL packages have been found:
* MPI , Message Passing Interface (MPI)
Enables DOLFIN to run in parallel with MPI
* OpenMP , Open Multi-Processing API
Enables DOLFIN to run in parallel with OpenMP
* BLAS , Basic Linear Algebra Subprograms , <
http://netlib.org/blas/>
* Threads
* ZLIB , Compression library , <
http://www.zlib.net>
-- The following REQUIRED packages have been found:
* Boost , Boost C++ libraries , <
http://www.boost.org>
* Eigen3 (required version >= 3.2.0) , Lightweight C++ template library for linear algebra , <
http://eigen.tuxfamily.org>
* PythonInterp (required version >= 2.7) , Interactive high-level object-oriented language , <
http://www.python.org>
Needed for the Python interface to DOLFIN
* PythonLibs (required version == 2.7.10) , Include paths and libraries for Python
* NumPy , Array processing for numbers, strings, records, and objects in Python. , <
http://www.numpy.org>
Needed for the Python interface to DOLFIN
* SWIG , Tool to wrap C/C++ libraries in high-level languages , <
http://swig.org>
Needed for the Python interface to DOLFIN
* PkgConfig
-- The following features have been disabled:
* CMAKE_USE_RELATIVE_PATHS , Use relative paths in makefiles and projects.
* DOLFIN_ENABLE_CODE_COVERAGE , Enable code coverage.
* DOLFIN_ENABLE_TESTING , Enable testing.
* DOLFIN_ENABLE_BENCHMARKS , Enable benchmark programs.
* DOLFIN_SKIP_BUILD_TESTS , Skip build tests for testing usability of dependency packages.
* DOLFIN_DEPRECATION_ERROR , Turn deprecation warnings into errors.
* DOLFIN_IGNORE_PETSC4PY_VERSION , Ignore version of PETSc4py.
-- The following OPTIONAL packages have not been found:
* PETSc (required version >= 3.7) , Portable, Extensible Toolkit for Scientific Computation , <
https://www.mcs.anl.gov/petsc/>
Enables the PETSc linear algebra backend
* SCOTCH , Programs and libraries for graph, mesh and hypergraph partitioning , <
https://www.labri.fr/perso/pelegrin/scotch>
Enables parallel graph partitioning
* UMFPACK , Sparse LU factorization library , <
http://faculty.cse.tamu.edu/davis/suitesparse.html>
* CHOLMOD , Sparse Cholesky factorization library for sparse matrices , <
http://faculty.cse.tamu.edu/davis/suitesparse.html>
* HDF5 , Hierarchical Data Format 5 (HDF5) , <
https://www.hdfgroup.org/HDF5>
* Trilinos , Object-oriented framework for large-scale problems , <
https://trilinos.org>
* Sphinx (required version >= 1.1.0) , Python documentation generator , <
http://www.sphinx-doc.org>
Needed to build documentation
* VTK , The Visualization Toolkit - A high level 3D visualization library , <
https://www.vtk.org>
Enables plotting with VTK as backend
-- The following REQUIRED packages have not been found:
* UFC (required version >= 2017.1) , Unified language for form-compilers (part of FFC) , <
https://bitbucket.org/fenics-project/ffc>
--
-- Generating SWIG interface.
-- --------------------------
--
-- Generating demo source files from reStructuredText
-- --------------------------------------------------
extract written to /home/jchang23/dolfin/demo/documented/auto-adaptive-poisson/python/demo_auto-adaptive-poisson.py
extract written to /home/jchang23/dolfin/demo/documented/biharmonic/python/demo_biharmonic.py
extract written to /home/jchang23/dolfin/demo/documented/built-in-meshes/python/demo_built-in-meshes.py
extract written to /home/jchang23/dolfin/demo/documented/cahn-hilliard/python/demo_cahn-hilliard.py
extract written to /home/jchang23/dolfin/demo/documented/eigenvalue/python/demo_eigenvalue.py
extract written to /home/jchang23/dolfin/demo/documented/hyperelasticity/python/demo_hyperelasticity.py
extract written to /home/jchang23/dolfin/demo/documented/maxwell-eigenvalues/python/demo_maxwell-eigenvalues.py
extract written to /home/jchang23/dolfin/demo/documented/mixed-poisson/python/demo_mixed-poisson.py
extract written to /home/jchang23/dolfin/demo/documented/nonlinear-poisson/python/demo_nonlinear-poisson.py
extract written to /home/jchang23/dolfin/demo/documented/nonmatching-interpolation/python/demo_nonmatching-interpolation.py
extract written to /home/jchang23/dolfin/demo/documented/poisson/python/demo_poisson.py
extract written to /home/jchang23/dolfin/demo/documented/singular-poisson-rst/python/demo_singular-poisson-rst.py
extract written to /home/jchang23/dolfin/demo/documented/auto-adaptive-poisson/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/biharmonic/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/built-in-meshes/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/eigenvalue/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/mixed-poisson/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/nonmatching-interpolation/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/poisson/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/auto-adaptive-poisson/cpp/AdaptivePoisson.ufl
extract written to /home/jchang23/dolfin/demo/documented/biharmonic/cpp/Biharmonic.ufl
extract written to /home/jchang23/dolfin/demo/documented/eigenvalue/cpp/StiffnessMatrix.ufl
extract written to /home/jchang23/dolfin/demo/documented/mixed-poisson/cpp/MixedPoisson.ufl
extract written to /home/jchang23/dolfin/demo/documented/nonmatching-interpolation/cpp/P1.ufl
extract written to /home/jchang23/dolfin/demo/documented/nonmatching-interpolation/cpp/P3.ufl
extract written to /home/jchang23/dolfin/demo/documented/poisson/cpp/Poisson.ufl
--
-- Generating demo source files
-- --------------------------------------------------
extract written to /home/jchang23/dolfin/demo/documented/auto-adaptive-poisson/python/demo_auto-adaptive-poisson.py
extract written to /home/jchang23/dolfin/demo/documented/biharmonic/python/demo_biharmonic.py
extract written to /home/jchang23/dolfin/demo/documented/built-in-meshes/python/demo_built-in-meshes.py
extract written to /home/jchang23/dolfin/demo/documented/cahn-hilliard/python/demo_cahn-hilliard.py
extract written to /home/jchang23/dolfin/demo/documented/eigenvalue/python/demo_eigenvalue.py
extract written to /home/jchang23/dolfin/demo/documented/hyperelasticity/python/demo_hyperelasticity.py
extract written to /home/jchang23/dolfin/demo/documented/maxwell-eigenvalues/python/demo_maxwell-eigenvalues.py
extract written to /home/jchang23/dolfin/demo/documented/mixed-poisson/python/demo_mixed-poisson.py
extract written to /home/jchang23/dolfin/demo/documented/nonlinear-poisson/python/demo_nonlinear-poisson.py
extract written to /home/jchang23/dolfin/demo/documented/nonmatching-interpolation/python/demo_nonmatching-interpolation.py
extract written to /home/jchang23/dolfin/demo/documented/poisson/python/demo_poisson.py
extract written to /home/jchang23/dolfin/demo/documented/singular-poisson-rst/python/demo_singular-poisson-rst.py
extract written to /home/jchang23/dolfin/demo/documented/auto-adaptive-poisson/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/biharmonic/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/built-in-meshes/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/eigenvalue/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/mixed-poisson/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/nonmatching-interpolation/cpp/main.cpp
extract written to /home/jchang23/dolfin/demo/documented/poisson/cpp/main.cpp
-- Performing Test HAVE_NO_MULTLINE
-- Performing Test HAVE_NO_MULTLINE - Success
-- Disabling generation of documentation because Sphinx is missing.
-- Configuring done
CMake Error at dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::filesystem" 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 dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::program_options" 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 dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::iostreams" 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 dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::timer" 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 dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::filesystem" 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 dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::program_options" 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 dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::iostreams" 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 dolfin/CMakeLists.txt:60 (add_library):
Target "dolfin" links to target "Boost::timer" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
-- Generating done
-- Build files have been written to: /home/jchang23/dolfin/build
========
But I thought I already installed boost with those four missing libraries, what I did for that was:
$ ./bootstrap.sh --with-libraries=filesystem,iostreams,program_options,timer --prefix=/home/jchang23/.local
$ ./b2
$ ./b2 install
And the message above says it detected said libraries, yet I still get the CMake errors saying those targets were not found. Any suggestions what to do here?
Thanks!
Justin