Please remove everything that you installed by hand. FreeFEM will automatically build PETSc, which itself will build MPICH, and things will work. You are mixing things currently, and since you do not know how to make them work, I’d suggest you stick to the default installation procedure.