problem compiling Trilinos and SyFi

Asked by Bento

Hi,

I am building Fenics with the latest Dorsal release (1.0-beta) on a Maverick platform. Most packages run smoothly, but I am having problems in building Trilinos and SyFi. Can someone help me with this? Below are the error messages that I get.
Thank you!
When building Trilinos, it breaks with the following error message (after a lot of regular output):

Setting up testing support ...

Configuring individual enabled Trilinos packages ...

***
*** WARNING: There were no packages configured so no libraries or tests/examples will be built!
***

-- Configuring done
-- Generating done
-- Build files have been written to: /home/bento/Work/FEniCS/src/trilinos-10.6.4-Source/dorsal_build_dir
make: Leaving directory `/home/bento/Work/FEniCS/src/trilinos-10.6.4-Source/dorsal_build_dir'
make: Entering directory `/home/bento/Work/FEniCS/src/trilinos-10.6.4-Source/dorsal_build_dir'
make: *** No rule to make target `install'. Stop.
make: Leaving directory `/home/bento/Work/FEniCS/src/trilinos-10.6.4-Source/dorsal_build_dir'
Failure with exit status: 2
Exit message: There was a problem building trilinos-10.6.4-Source.

When building SyFi, I get the following message:

Fetching syfi-0.6.2
Unpacking syfi-0.6.2
Building syfi-0.6.2
CMake Error: The source directory "/home/till/Work/FEniCS/src/syfi-0.6.2" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Failure with exit status: 1
Exit message: There was a problem configuring syfi-0.6.2.

Question information

Language:
English Edit question
Status:
Solved
For:
Dorsal Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Ring
Solved:
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

You need to include more of the Trilinos configuration output. It is impossible to see why it fails with the output listed above.

You should also use the latest development version of Dorsal to get the latest version of Trilinos:

  bzr branch lp:dorsal

This might fix your problems with Trilinos and it should also fix the problems with SyFi.

Revision history for this message
Bento (tbarmeier-deactivatedaccount) said :
#2

Hi Johannes,
thank you for your answer. I tried using the development branch and Trilinos and SyFi now build. But now I have a problem in building Dolfin (it worked before):

Fetching dolfin-1.0-beta
Unpacking dolfin-1.0-beta
Building dolfin-1.0-beta
-- Checking for package 'Armadillo'
-- Checking for package 'SCOTCH-PT'
-- Performing test SCOTCH_TEST_RUNS
-- Performing test SCOTCH_TEST_RUNS - Success
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- 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'
-- Checking for package 'CHOLMOD'
-- Checking for package 'AMD'
-- Checking for package 'BLAS'
-- Checking for package 'LAPACK'
-- Checking for package 'Trilinos'
CMake Warning at /home/bento/Work/FEniCS/include/trilinos/TrilinosConfig.cmake:59 (MESSAGE):
  TrilinosConfig.cmake has moved. It now exists at a location under the
  installation prefix where the find_package command looks by default
  (<prefix>/lib/cmake/Trilinos). This compatibility file exists at the old
  location (<prefix>/include) to present this message and load the file from
  its new location.

  The find_package() call that loaded this file did so because its cached
  result variable, Trilinos_DIR, is set to

    /home/bento/Work/FEniCS/include/trilinos

  I'm locally setting Trilinos_DIR to

    /home/bento/Work/FEniCS/include/lib/cmake/Trilinos

  and loading TrilinosConfig.cmake from its new location. One may suppress
  this warning by setting the above value in the cache. However, the
  application needs modification permanently fix the issue. The
  find_package() call that loaded this file may have the form

    find_package(Trilinos REQUIRED PATHS ${TRILINOS_PATH}/include)

  Change it to the form

    set(CMAKE_PREFIX_PATH ${TRILINOS_PATH} ${CMAKE_PREFIX_PATH})
    find_package(Trilinos REQUIRED)

  to find TrilinosConfig.cmake in its new location in future builds while
  still honoring the TRILINOS_PATH option for this application.
Call Stack (most recent call first):
  cmake/modules/FindTrilinos.cmake:12 (find_package)
  CMakeLists.txt:251 (find_package)

CMake Error at /home/bento/Work/FEniCS/include/trilinos/TrilinosConfig.cmake:81 (INCLUDE):
  include could not find load file:

    /home/bento/Work/FEniCS/include/lib/cmake/Trilinos/TrilinosConfig.cmake
Call Stack (most recent call first):
  cmake/modules/FindTrilinos.cmake:12 (find_package)
  CMakeLists.txt:251 (find_package)

-- Checking for package 'MTL4'
-- Checking for package 'BLAS'
-- Performing Test MTL4_TEST_RUNS
-- Performing Test MTL4_TEST_RUNS - Success
-- Found MTL4: /home/bento/Work/FEniCS/include
-- Checking for package 'PETSc'
-- PETSC_DIR is /home/bento/Work/FEniCS
-- PETSC_ARCH is empty
-- Found petscconf.h
-- PETSc test runs
-- Found PETSc: /home/bento/Work/FEniCS/lib/libpetsc.so
-- Checking for package 'SLEPc'
-- SLEPC_DIR is /home/bento/Work/FEniCS
-- SLEPc test runs
-- Checking for package 'CGAL'
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS)
CMake Warning at CMakeLists.txt:287 (message):
  HDF5 found, but is not configured to run in parallel.

-- Checking for package 'CPPUNIT'
-- Checking for package 'Sphinx'
--
-- The following optional packages were found:
-- -------------------------------------------
-- (OK) OPENMP
-- (OK) MPI
-- (OK) PETSC
-- (OK) SLEPC
-- (OK) TRILINOS
-- (OK) MTL4
-- (OK) UMFPACK
-- (OK) CHOLMOD
-- (OK) SCOTCH
-- (OK) PARMETIS
-- (OK) CGAL
-- (OK) ZLIB
-- (OK) PYTHON
-- (OK) SPHINX
--
-- The following optional packages were not enabled:
-- -------------------------------------------------
-- (--) GMP
--
-- The following optional packages could not be found:
-- ---------------------------------------------------
-- (**) HDF5
--
-- Enabling generation of documentation.
-- Initializing sphinx projects
-- Enabling generation of html-documentation
-- Configuring incomplete, errors occurred!
Failure with exit status: 1
Exit message: There was a problem configuring dolfin-1.0-beta.

Revision history for this message
Best Johannes Ring (johannr) said :
#3

Try to delete dorsal_build_dir in the DOLFIN source directory and then rerun Dorsal.

Revision history for this message
Bento (tbarmeier-deactivatedaccount) said :
#4

Thanks Johannes Ring, that solved my question.