Hi,
I figured that out from another thread on the mailing list. I think it would be helpful to mention that in the readme file or the download link. It is confusing that the default in dorsal.cfg is set to build the released version but the dependencies are updated so that they don't work with the stable release. Perhaps older versions of dorsal should be made available at bitbuckit if people want Fenics 1.4 I tried changing the versions of petsc and related packages in the .package files but it was tedious as I don't know the checksum and had to find out by downloading the tarballs and run md5sum on them. And then slepc still didn't build) Finally I built the development version, but I have to add sympy to the platform file (Trusty.platform) otherwise dolfin wouldn't build. Thanks. P.S I am wondering why I ran out of ram when I tried installing dolfin manually but it went very smoothly with dorsal. > Date: Mon, 1 Dec 2014 10:11:29 +0100 > Subject: Re: [FEniCS-support] Petsc errors in building dolfin with dorsal > From: [email protected] > To: [email protected] > CC: [email protected] > > On Fri, Nov 28, 2014 at 10:08 PM, kam kammon <[email protected]> wrote: > > Hi, > > > > I am trying to install Fenics on Ubuntu 14.04 (64 bit) using the dorsal > > script. Everything works well except for dolfin, which aborts at 72% with > > these errors. Please help. > > > > Building CXX object dolfin/CMakeFiles/dolfin.dir/nls/PETScSNESSolver.cpp.o > > /home/bee/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/PETScSNESSolver.cpp: In > > member function ‘void > > dolfin::PETScSNESSolver::init(dolfin::NonlinearProblem&, > > dolfin::GenericVector&)’: > > /home/bee/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/PETScSNESSolver.cpp:245:29: > > error: invalid conversion from ‘PetscErrorCode (*)(SNES, Vec, _p_Mat**, > > _p_Mat**, MatStructure*, void*) {aka int (*)(_p_SNES*, _p_Vec*, _p_Mat**, > > _p_Mat**, MatStructure*, void*)}’ to ‘PetscErrorCode (*)(SNES, Vec, Mat, > > Mat, void*) {aka int (*)(_p_SNES*, _p_Vec*, _p_Mat*, _p_Mat*, void*)}’ > > [-fpermissive] > > &_snes_ctx); > > ^ > > In file included from > > /home/bee/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/PETScSNESSolver.h:29:0, > > from > > /home/bee/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/PETScSNESSolver.cpp:42: > > /home/bee/Work/FEniCS/include/petscsnes.h:327:29: error: initializing > > argument 4 of ‘PetscErrorCode SNESSetJacobian(SNES, Mat, Mat, PetscErrorCode > > (*)(SNES, Vec, Mat, Mat, void*), void*)’ [-fpermissive] > > PETSC_EXTERN PetscErrorCode SNESSetJacobian(SNES,Mat,Mat,PetscErrorCode > > (*)(SNES,Vec,Mat,Mat,void*),void*); > > ^ > > /home/bee/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/PETScSNESSolver.cpp: In > > member function ‘void > > dolfin::PETScSNESSolver::set_bounds(dolfin::GenericVector&)’: > > /home/bee/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/PETScSNESSolver.cpp:605:20: > > error: ‘SNES_VI_INF’ was not declared in this scope > > VecSet(ub, SNES_VI_INF); > > ^ > > /home/bee/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/PETScSNESSolver.cpp:617:20: > > error: ‘SNES_VI_INF’ was not declared in this scope > > VecSet(lb, SNES_VI_INF); > > ^ > > make[2]: *** [dolfin/CMakeFiles/dolfin.dir/nls/PETScSNESSolver.cpp.o] Error > > 1 > > make[2]: Leaving directory > > `/home/bee/Work/FEniCS/src/dolfin-1.4.0/dorsal_build_dir' > > make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2 > > make[1]: Leaving directory > > `/home/bee/Work/FEniCS/src/dolfin-1.4.0/dorsal_build_dir' > > make: *** [all] Error 2 > > make: Leaving directory > > `/home/bee/Work/FEniCS/src/dolfin-1.4.0/dorsal_build_dir' > > Failure with exit status: 2 > > Exit message: There was a problem building dolfin-1.4.0. > > The problem is that DOLFIN 1.4.0 does not work with PETSc 3.5.2, which > is now in Dorsal. Try building the development version of FEniCS > instead by setting STABLE_BUILD=false in dorsal.cfg. Let us know if > you need 1.4.0 and we can try to help you out. > > Johannes
_______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
