On Tue, 06 Jan 2015 15:52:04 +0100
Juan Luis Cano <[email protected]> wrote:

> On 2015-01-05 22:32, Garth N. Wells wrote:
> > I think is is great.
> >
> > I haven’t tested yet, but a suggestion to make the process simpler
> > is to let PETSc build suitesparse, etc. PETSc is a C library but
> > can be installed with pip (it has a Python-based build system). It
> > can take care of a number of dependencies (solvers, graph
> > partitioners, etc).
> 
> Thanks for the suggestion Garth. You are right PETSc simplifies 
> considerably the build process with the proper options. I had to add
> a line to FindPETSc.cmake to account for site-packages[1].
> 
> Right now my problem is that PETSc is by default configured without
> Cusp support and this makes the compilation halt, but I am not sure
> this is the desired behavior: there is a program whose exit status is
> 1 but just because it's checking for the PETSC_HAVE_CUSP variable.

This is ok. PETSc with CUSP is not needed. Actually, CUSP backend is
not well maintained and will be probably removed one day.

The problem seems to be

=========================================================================
CMake Error at cmake/modules/FindSCOTCH.cmake:124 (file):
file STRINGS file
"/home/juanlu/miniconda3/conda-bld/work/dolfin-1.4.0/SCOTCH_INCLUDE_DIRS-NOTFOUND/scotch.h"
cannot be read.
Call Stack (most recent call first):
CMakeLists.txt:396 (find_package)
 
 
CMake Error at cmake/modules/FindSCOTCH.cmake:125 (string):
string sub-command REGEX, mode MATCH needs at least 5 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:396 (find_package)
 
 
CMake Error at cmake/modules/FindSCOTCH.cmake:126 (string):
string sub-command REGEX, mode MATCH needs at least 5 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:396 (find_package) 
=========================================================================

but I'm not sure why it breaks the build. Nevertheless nobody probably
is going to try fixing it unless you try it with with DOLFIN dev or
upcoming DOLFIN 1.5.0 and -DSCOTCH_DEBUG:BOOL=ON flag.

As a workaround you may try configuring without SCOTCH

 -DDOLFIN_ENABLE_SCOTCH:BOOL=OFF

or specifying its location

 -DSCOTCH_DIR:PATH=/path/to/scotch

Jan

> Here are the CMakeError.log and the output of the build process:
> 
> https://gist.github.com/Juanlu001/976e8dc7dd9050cf5d2c
> 
> Should I just install Cusp and let it go?
> 
> Juan Luis
> 
> [1] 
> https://github.com/Juanlu001/conda-recipes/blob/juanlu001/fenics/dolfin/find_petsc.patch
> _______________________________________________
> fenics-support mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics-support

_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to