Very big thanx to all. The problem was that there were no mpif90 wrappers in my MPI installation. Now the problem is fixed and everything compiles. Sergey.