Fail to find boost
HI!
I'm trying to build FEniCS using Dorsal on RedHat rel5.
When trying to build the dolfin 0.9.10 package, it fails to find boost.
I have defined the environment variable BOOST_DIR to point to the path where the latest version of boost is installed. Boost seems to be found when building the ufc package, but is not found when building the dolfin package.
It looks like the FindBoost.cmake file fails to find anything in the newest location, and reverts to the default location that points to a version of boost that is too old.
Apparently find_package(Boost 1.36 REQUIRED) works while find_package(Boost 1.36 COMPONENTS filesystem program_options system thread REQUIRED) does not.
Note that in order to get a successful build of ufc package, the BOOST_DIR had to point to /mydir/
Below is the output from dorsal.sh
Building dolfin-0.9.10
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
-- Performing Test HAVE_PIPE
-- Performing Test HAVE_PIPE - Success
-- Performing Test HAVE_PEDANTIC
-- Performing Test HAVE_PEDANTIC - Success
-- Performing Test HAVE_STD
-- Performing Test HAVE_STD - Success
-- Performing Test HAVE_DEBUG
-- Performing Test HAVE_DEBUG - Success
-- Performing Test HAVE_O2_
-- Performing Test HAVE_O2_
CMake Error at /ifi/midgard/
Unable to find the requested Boost libraries.
Boost version: 1.33.1
Boost include path: /usr/include
Detected version of Boost is too old. Requested version was 1.36 (or
newer).
The following Boost libraries could not be found:
No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.
-- Checking for package 'Armadillo'
-- Performing Test ARMADILLO_TEST_RUNS
-- Performing Test ARMADILLO_TEST_RUNS - Success
-- Found Armadillo: /ifi/utgard/
-- Found LibXml2: /local/
-- Found PythonInterp: /usr/bin/python2.6
-- Found PythonLibs: /usr/lib64/
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named numpy
-- Found SWIG: /usr/bin/swig (found version "1.3.29")
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_
-- Performing Test OpenMP_
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_
-- Performing Test OpenMP_
-- Found OpenMP: -fopenmp
-- Performing Test OPENMP_
-- Performing Test OPENMP_
-- Found MPI: /usr/lib64/
-- Performing Test PARMETIS_TEST_RUNS
-- Performing Test PARMETIS_TEST_RUNS - Success
-- Found ParMETIS: /ifi/utgard/
-- Checking for package 'SCOTCH-PT'
-- Performing test SCOTCH_TEST_RUNS
-- Performing test SCOTCH_TEST_RUNS - Success
-- Found SCOTCH: /ifi/utgard/
-- Checking for package 'AMD'
-- Found AMD: /usr/lib64/
-- Checking for package 'BLAS'
-- Found BLAS: /usr/lib64/
-- Checking for package 'UMFPACK'
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'CHOLMOD'
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'LAPACK'
-- Found LAPACK: /usr/lib64/
-- Performing Test CHOLMOD_TEST_RUNS
-- Performing Test CHOLMOD_TEST_RUNS - Success
-- Found CHOLMOD: /usr/lib64/
-- Performing Test UMFPACK_TEST_RUNS
-- Performing Test UMFPACK_TEST_RUNS - Success
-- Found UMFPACK: /usr/include/
-- Checking for package 'CHOLMOD'
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'LAPACK'
-- Checking for package 'Trilinos'
-- Checking for package 'MTL4'
-- Checking for package 'BLAS'
-- Performing Test MTL4_TEST_RUNS
-- Performing Test MTL4_TEST_RUNS - Failed
-- MTL4 could not be found. Be sure to set MTL4_DIR (missing: MTL4_TEST_RUNS)
-- Checking for package 'PETSc'
-- PETSC_DIR is /ifi/utgard/
-- PETSC_ARCH is empty
-- Found petscconf.h
-- Performing Test PETSC_TEST_RUNS
-- Performing Test PETSC_TEST_RUNS - Success
-- PETSc test runs
-- Found PETSc: /ifi/utgard/
-- Checking for package 'SLEPc'
-- SLEPC_DIR is /ifi/utgard/
-- Performing Test SLEPC_TEST_RUNS
-- Performing Test SLEPC_TEST_RUNS - Success
-- SLEPc test runs
-- Found SLEPc: /ifi/utgard/
-- Checking for package 'CGAL'
-- Performing Test CGAL_TEST_RUNS
-- Performing Test CGAL_TEST_RUNS - Success
-- Found CGAL: /ifi/utgard/
-- Found ZLIB: /usr/include (found version "1.2.3")
-- Checking for package 'CPPUNIT'
-- CPPUNIT could not be found. Be sure to set CPPUNIT_DIR. (missing: CPPUNIT_LIBRARIES CPPUNIT_
--
-- The following optional packages were found:
-- -------
-- (OK) OPENMP
-- (OK) MPI
-- (OK) PETSC
-- (OK) SLEPC
-- (OK) UMFPACK
-- (OK) CHOLMOD
-- (OK) SCOTCH
-- (OK) PARMETIS
-- (OK) CGAL
-- (OK) ZLIB
-- (OK) PYTHON
--
-- The following optional packages were not enabled:
-- -------
-- (--) GMP
--
-- The following optional packages could not be found:
-- -------
-- (**) TRILINOS
-- (**) MTL4
--
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named ufc
CMake Warning at dolfin/
Unable to import UFC. Install latest UFC or check that PYTHONPATH is set
appropriately. Python will be disabled.
-- Configuring incomplete, errors occurred!
Failure with exit status: 1
Exit message: There was a problem configuring dolfin-0.9.10.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Dorsal Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Fabrice Prieur for more information if necessary.