FreeFEM compilation

What if you let PETSc compile MPICH? Are you sure there is no other instances of PETSc.so (the FreeFEM plugin) somewhere else on the machine? Where does the error happen (inside FreeFEM sources or on a directory somewhere else)?