ARudik / feelpp

Automatically exported from code.google.com/p/feelpp
0 stars 0 forks source link

failed to compile on ubuntu 12.04 gcc 4.6 #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.update to latest rev
2.make

We end up with the following errors:

/home/trophime/Projects/feel/git/feelpp/feel/feelalg/solverlinearpetsc.cpp: In 
member function ‘void 
Feel::SolverLinearPetsc<T>::setPetscPreconditionerType()’:
/home/trophime/Projects/feel/git/feelpp/feel/feelalg/solverlinearpetsc.cpp:767:4
5: erreur: ‘PCGASM’ was not declared in this scope

This is certainly connected with the petsc version. Ubuntun 12.04 ships only 
3.1 version :( 

Original issue reported on code.google.com by christro...@googlemail.com on 19 Sep 2012 at 11:26

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 5d6e54514f79.

Original comment by christop...@feelpp.org on 19 Sep 2012 at 7:02

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 25008036fc13.

Original comment by christop...@feelpp.org on 19 Sep 2012 at 7:04

GoogleCodeExporter commented 9 years ago
I still get an error while compiling:

[ 13%] Building CXX object 
feel/CMakeFiles/feel++.dir/feelalg/functionspetsc.cpp.o
/home/gpena/Packages/feelpp/feel/feelalg/functionspetsc.cpp: In function 
‘std::string Feel::PetscConvertKSPReasonToString(KSPConvergedReason)’:
/home/gpena/Packages/feelpp/feel/feelalg/functionspetsc.cpp:191:10: error: 
‘KSP_CONVERGED_RTOL_NORMAL’ was not declared in this scope
/home/gpena/Packages/feelpp/feel/feelalg/functionspetsc.cpp:199:10: error: 
‘KSP_CONVERGED_ATOL_NORMAL’ was not declared in this scope
/home/gpena/Packages/feelpp/feel/feelalg/functionspetsc.cpp: In function 
‘std::string Feel::PetscConvertSNESReasonToString(SNESConvergedReason)’:
/home/gpena/Packages/feelpp/feel/feelalg/functionspetsc.cpp:238:10: error: 
‘SNES_DIVERGED_LINE_SEARCH’ was not declared in this scope
make[2]: *** [feel/CMakeFiles/feel++.dir/feelalg/functionspetsc.cpp.o] Error 1
make[1]: *** [feel/CMakeFiles/feel++.dir/all] Error 2

Original comment by penagonc...@gmail.com on 21 Sep 2012 at 3:05

GoogleCodeExporter commented 9 years ago
Goncalo

this should be fixed now in branch master and crb+wb 
let me know how it goes

Original comment by christop...@feelpp.org on 23 Sep 2012 at 9:36

GoogleCodeExporter commented 9 years ago
It worked fine :) However, there is a linking problem 'cause I get this:

[  0%] Built target feel_mesh_data
make[2]: *** No rule to make target `/usr/lib/libxml2.so', needed by 
`feel/libfeel++.so.1.0.0'.  Stop.
make[1]: *** [feel/CMakeFiles/feel++.dir/all] Error 2
make: *** [all] Error 2

and I have libxml2 in the system!

Any clue of what's wrong?

Gonçalo

Original comment by penagonc...@gmail.com on 27 Sep 2012 at 8:46