The problem is that you should compile fenics against petsc-3.5. I bet you have 
petsc-3.4. 

I strongly suggest you to update the petsc.packgate to 3.5 and use the 
developement version of dolfin (set stable=false in dorsal.cfg).

The problem is that dolfin-1.4 is not compatible to petsc-3.5. If for any 
reason you absolutely need dolfin-1.4, you should apply this patch 

https://bitbucket.org/cmaurini/fenics-virtual/src/7a480a84b613cb356ca0eda49e5cef0f2b94ef08/vagrant/fenics14-petsc35/patch.diff?at=master
 

to compile against petsc-3.5

Otherwise, you find here a useful script to compile without dorsal:

https://bitbucket.org/cmaurini/fenics-virtual/src/7a480a84b613cb356ca0eda49e5cef0f2b94ef08/vagrant/fenics14-petsc35/provision-fenics14-petsc35.sh?at=master

If you have bad time with this, you can use directly this virtual machine 
through vagrant

https://vagrantcloud.com/cmaurini/boxes/trusty64-petsc35-fenics14

To use it, install vagrant and virtualbox and execute this line at the command 
line

vagrant init cmaurini/trusty64-petsc35-fenics14

Best,

Corrado 
Le 22 oct. 2014 à 18:32, André Timótheo <[email protected]> a écrit :

> How can I compile dolfin 1.4 via dorsal
> with tao solvers? 
> 
> I put on the dorsal script dolfin.package the options:
> 
> CONFOPTS="-DDOLFIN_ENABLE_TAO=true -DDOLFIN_ENABLE_CGAL:BOOL=OFF 
> -DCMAKE_SKIP_RPATH:BOOL=ON -DCGAL_DISABLE_ROUNDING_MATH_CHECK:BOOL=ON"
> 
> and there is a Failure...
> 
> [  5%] Building CXX object 
> dolfin/CMakeFiles/dolfin.dir/nls/TAOLinearBoundSolver.cpp.o
> In file included from 
> /home/parallels/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/TAOLinearBoundSolver.cpp:36:0:
> /home/parallels/Work/FEniCS/src/dolfin-1.4.0/dolfin/nls/TAOLinearBoundSolver.h:34:22:
>  fatal error: petsctao.h: No such file or directory
>  #include <petsctao.h>
>                       ^
> compilation terminated.
> make[2]: *** [dolfin/CMakeFiles/dolfin.dir/nls/TAOLinearBoundSolver.cpp.o] 
> Error 1
> make[2]: Leaving directory 
> `/home/parallels/Work/FEniCS/src/dolfin-1.4.0/dorsal_build_dir'
> make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2
> make[1]: Leaving directory 
> `/home/parallels/Work/FEniCS/src/dolfin-1.4.0/dorsal_build_dir'
> make: *** [all] Error 2
> make: Leaving directory 
> `/home/parallels/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.
> 
> I need to run scripts like demo_contact-vi-tao.py.
> 
> Thank you for your atention.
> Andre Machado
> _______________________________________________
> 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