cmake/modules/ResolveCompilerPaths.cmake issue

Issue #555 invalid
Thomas Hisch created an issue

I get the following error while calling cmake in the master branch of dolfin:

-- Checking for package 'PETSc'
-- PETSC_DIR is /var/lib/jenkins/miniconda/envs/fenics16_petsc36/petsc
-- PETSC_ARCH is build
-- Found petscconf.h
CMake Error at cmake/modules/ResolveCompilerPaths.cmake:109 (list):
  list sub-command REMOVE_DUPLICATES requires list to be present.
Call Stack (most recent call first):
  cmake/modules/FindPETSc.cmake:167 (resolve_includes)
  CMakeLists.txt:418 (find_package)


-- Performing test PETSC_TEST_RUNS - Failed
-- Performing test PETSC_TEST_3RD_PARTY_LIBS_RUNS - Failed
-- Performing Test PETSC_CUSP_FOUND
-- Performing Test PETSC_CUSP_FOUND - Failed
-- PETSc configured without Cusp support
-- PETSc could not be found. Be sure to set PETSC_DIR and PETSC_ARCH. (missing:  PETSC_LIBRARIES PETSC_INCLUDE_DIRS PETSC_TEST_RUNS PETSC_VERSION PETSC_VERSION_OK) (Required is at least version "3.3")

The installed version of cmake is 3.2.3 (I've also tried it with 3.0.2 - same problem)

Comments (4)

  1. Chris Richardson

    I think the RESOLVE_DUPLICATES is being called with an empty list, caused by the FindPETSc.cmake not picking up any include flags on line 156. Possibly there is a problem with your PETSc installation? You can try editing the FindPETSc.cmake file to print more diagnostics with a message() command

  2. Thomas Hisch reporter

    I don't think that there is a problem with my PETSc installation. Compilation of dolfin 1.5 with petsc/slepc 3.5 worked fine with my setup scripts. I'll send the log output to fenics-support.

  3. Thomas Hisch reporter

    I checked out an old forked version of the dolfin repo, which did not contain the fixes for petsc/slepc 3.6. Sry about the noise.

  4. Log in to comment