# Error in FreeFEM compilation

**URL:** <https://community.freefem.org/t/error-in-freefem-compilation/4283>\
**Category:** FreeFEM installation\
**Created:** [May 19, 2026, 10:13pm UTC](https://community.freefem.org/t/error-in-freefem-compilation/4283 "2026-05-19T22:13:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aszaboa](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aszaboa/32/2918_2.png) [@aszaboa](https://community.freefem.org/u/aszaboa)\
**Post date:** [May 19, 2026, 10:13pm UTC](https://community.freefem.org/t/error-in-freefem-compilation/4283/1 "2026-05-19T22:13:56Z")

</div>

Hi,

I am trying to compile FreeFEM with PETSc. However, I run into the following error during the FreeFEM installation:

In file included from /home/janefore/freefem/petsc/arch-FreeFem/include/HPDDM\_coarse\_operator.hpp:41,  
from /home/janefore/freefem/petsc/arch-FreeFem/include/HPDDM\_coarse\_operator\_impl.hpp:27,  
from /home/janefore/freefem/petsc/arch-FreeFem/include/HPDDM\_preconditioner.hpp:46,  
from /home/janefore/freefem/petsc/arch-FreeFem/include/HPDDM\_schwarz.hpp:64,  
from /home/janefore/freefem/petsc/arch-FreeFem/include/HPDDM.hpp:638,  
from common\_hpddm.hpp:90,  
from hpddm.cpp:15:  
/home/janefore/freefem/petsc/arch-FreeFem/include/HPDDM\_inexact\_coarse\_operator.hpp: In member function ‘HPDDM::InexactCoarseOperator\<Solver, S, K\>::return\_type HPDDM::InexactCoarseOperator\<Solver, S, K\>::buildThree(HPDDM::CoarseOperator\<Solver, S, K\>\* const&, const std::vector\<std::vector\<std::pair\<short unsigned int, short unsigned int\> \> \>&, const std::map\<std::pair\<short unsigned int, short unsigned int\>, short unsigned int\>&, const std::unordered\_map\<short unsigned int, std::tuple\<short unsigned int, unsigned int, std::vector\<short unsigned int, std::allocator \> \> \>&)’:  
/home/janefore/freefem/petsc/arch-FreeFem/include/HPDDM\_inexact\_coarse\_operator.hpp:1559:34: error: ‘EIGENSOLVER’ was not declared in this scope  
1559 | s\_-\>template solveGEVP(overlapNeumann, &weighted);

I am not sure what is the reason for this. I am attacking the configure and compilation log. Any help is appreciated!

[make\_build.log](https://community.freefem.org/uploads/short-url/2knAXiFWJyCVkNKnZovXLblQU4h.log) (381.4 KB)

[config.log](https://community.freefem.org/uploads/short-url/rNlFW3Dg8zVh9tASiUKbgdClTIl.log) (157.2 KB)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [May 20, 2026, 2:27pm UTC](https://community.freefem.org/t/error-in-freefem-compilation/4283/2 "2026-05-20T14:27:39Z")

</div>

Should be fixed in [Fix compilation with HPDDM but no ARPACK · FreeFem/FreeFem-sources@5a9a809 · GitHub](https://github.com/FreeFem/FreeFem-sources/commit/5a9a809abdf3d3a8aa7aff77c2fd80e17583f127). Thanks for the report.

---

<div class="post-metadata">

**Author:** ![aszaboa](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aszaboa/32/2918_2.png) [@aszaboa](https://community.freefem.org/u/aszaboa)\
**Post date:** [May 20, 2026, 5:40pm UTC](https://community.freefem.org/t/error-in-freefem-compilation/4283/3 "2026-05-20T17:40:56Z")

</div>

I tested it and the fix works for me! Thanks @prj for the quick fix!
