On Sun, Nov 2, 2014 at 5:26 PM, Jan Blechta <[email protected]> wrote:
> On Thu, 30 Oct 2014 12:48:52 -0400 (EDT)
> Andy Youstic <[email protected]> wrote:
>
>> Greetings,
>>
>> Ah, thanks. That worked for me. But now...I've got another stopping
>> point:
>>
>> /usr/local/src/fenics/dolfin-1.4.0/dolfin/la/PETScLUSolver.cpp: In
>> member function ‘void
>> dolfin::PETScLUSolver::set_petsc_operators()’:
>> /usr/local/src/fenics/dolfin-1.4.0/dolfin/la/PETScLUSolver.cpp:453:
>> error: ‘SAME_PRECONDITIONER’ was not declared in this
>> scope /usr/local/fenics/include/petscksp.h:260: error: too many
>> arguments to function ‘PetscErrorCode KSPSetOperators(_p_KSP*,
>> _p_Mat*,
>> _p_Mat*)’ /usr/local/src/fenics/dolfin-1.4.0/dolfin/la/PETScLUSolver.cpp:458:
>> error: at this point in
>> file /usr/local/fenics/include/petscksp.h:260: error: too many
>> arguments to function ‘PetscErrorCode KSPSetOperators(_p_KSP*,
>> _p_Mat*,
>> _p_Mat*)’ /usr/local/src/fenics/dolfin-1.4.0/dolfin/la/PETScLUSolver.cpp:464:
>> error: at this point in file make[2]: ***
>> [dolfin/CMakeFiles/dolfin.dir/la/PETScLUSolver.cpp.o] Error 1
>> make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving
>> directory `/usr/local/src/fenics/dolfin-1.4.0/dorsal_build_dir'
>> make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2 make[1]:
>> Leaving directory
>> `/usr/local/src/fenics/dolfin-1.4.0/dorsal_build_dir' make: *** [all]
>> Error 2 make: Leaving directory
>> `/usr/local/src/fenics/dolfin-1.4.0/dorsal_build_dir'
>
> Seems like you're trying to compile DOLFIN 1.4.0 with PETSc 3.5.
> Supported combinations are
>
> - either DOLFIN 1.4.0 + PETSc 3.3,3.4
> - or DOLFIN dev + PETSc 3.3,3.4,3.5,dev
This is correct. The problem is that we recently updated PETSc in
Dorsal to the latest version (3.5.2) to be able to use the TAO
solvers. We forgot that this doesn't work with DOLFIN 1.4.0. For a
quick fix, you have two options:
- Use the development version of DOLFIN instead of 1.4.0. This can be
done by setting STABLE_BUILD=false in dorsal.cfg.
- Revert to PETSc 3.4 in Dorsal. This can be done by reverting
petsc{-hpc}.package (and slepc.package) to revision 19472eb:
git checkout 19472eb FEniCS/packages/petsc.package
FEniCS/packages/petsc-hpc.package FEniCS/packages/slepc.package
Johannes
> Jan
>
>>
>> Johannes, any thoughts?
>>
>> Regards,
>>
>> Andy
>>
>>
>> ----- Original Message -----
>> From: "Johannes Ring" <[email protected]>
>> To: "Andy Youstic" <[email protected]>
>> Cc: [email protected]
>> Sent: Tuesday, October 28, 2014 2:52:36 AM
>> Subject: Re: [FEniCS-support] Can't seem to build fenics using
>> doral.sh -- CentOS6
>>
>> On Mon, Oct 27, 2014 at 8:06 PM, Andy Youstic <[email protected]> wrote:
>> > We've recently had a request to install the fenics suite on one of
>> > our linux workstations and am encountering difficulty. We get down
>> > to VTK and get the following error (appears to be from cmake
>> > regarding python includes). I'm not sure what to troubleshoot here.
>> > Any help would be appreciated. Thanks in advance.
>> >
>> > Fetching vtk-5.8.0
>> > Verifying vtk-5.8.0
>> > vtk-5.8.0.tar.gz: OK
>> > Unpacking vtk-5.8.0
>> > Building vtk-5.8.0
>> > -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES
>> > PYTHON_INCLUDE_DIRS) -- Found Tclsh: /usr/bin/tclsh
>> > -- Found TCL: /usr/lib64/libtcl.so
>> > -- Found TCLTK: /usr/lib64/libtcl.so
>> > -- Found TK: /usr/lib64/libtk.so
>> > -- Filter ZLIB is ON
>> > CMake Error: The following variables are used in this project, but
>> > they are set to NOTFOUND. Please set them or make sure they are set
>> > and tested correctly in the CMake files: PYTHON_INCLUDE_DIR
>> > (ADVANCED) used as include directory in
>> > directory /usr/local/src/fenics/VTK/Wrapping used as include
>> > directory in directory /usr/local/src/fenics/VTK/Common used as
>> > include directory in directory /usr/local/src/fenics/VTK/Filtering
>> > used as include directory in
>> > directory /usr/local/src/fenics/VTK/Imaging used as include
>> > directory in directory /usr/local/src/fenics/VTK/Graphics used as
>> > include directory in
>> > directory /usr/local/src/fenics/VTK/GenericFiltering used as
>> > include directory in directory /usr/local/src/fenics/VTK/IO used as
>> > include directory in directory /usr/local/src/fenics/VTK/Rendering
>> > used as include directory in
>> > directory /usr/local/src/fenics/VTK/VolumeRendering used as include
>> > directory in directory /usr/local/src/fenics/VTK/Hybrid used as
>> > include directory in directory /usr/local/src/fenics/VTK/Widgets
>> > used as include directory in
>> > directory /usr/local/src/fenics/VTK/Infovis used as include
>> > directory in directory /usr/local/src/fenics/VTK/Geovis used as
>> > include directory in directory /usr/local/src/fenics/VTK/Views used
>> > as include directory in directory /usr/local/src/fenics/VTK/Charts
>> > used as include directory in
>> > directory /usr/local/src/fenics/VTK/Wrapping/Python PYTHON_LIBRARY
>> > (ADVANCED) linked by target "vtkWrapPython" in
>> > directory /usr/local/src/fenics/VTK/Wrapping linked by target
>> > "vtkpython" in directory /usr/local/src/fenics/VTK/Wrapping/Python
>> >
>> > -- Configuring incomplete, errors occurred!
>> > Failure with exit status: 1
>> > Exit message: There was a problem configuring vtk-5.8.0.
>>
>> I looks like cmake is unable to locate the Python include directory
>> and Python libraries. Are you using the rhel6.platform file? In that
>> case it is assumed that you have installed the python-devel package.
>> Did you do that?
>>
>> Johannes
>>
>>
>>
>> _______________________________________________
>> 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
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support