Re: Linux Parallel compilation Linux Mpich PGI

From: Viktor Hornak <>
Date: Mon 27 May 2002 10:56:24 -0400

Fabrice Yerly wrote:

> Dear amber users,
> I try to compile amber6 on a Debian Linux Cluster, using MPich and the
> Portland compiler. I inspired from the web page
>, and I copied the
> machine.pgf77_mpich file for the compilation.
> The file farg.f in the sander directory is missing. Does anybody know where
> to find it?

Dear Fabrice,

you need to use the workaround which is posted on PG website
(, FAQ: How do I fix a
": undefined reference to `f__xargc'" problem?) to link object files
which were previously compiled by pgf77 and g77.
The explanation and the contents of farg.f is posted there:
       integer function mpir_iargc()
       mpir_iargc = iargc()
       subroutine mpir_getarg( i, s )
       integer i
       character*(*) s
       call getarg(i,s)

Hope this helps,

Viktor Hornak
CSB computational facility     Phone: (631)632-1439
SUNY at Stony Brook            Fax:   (631)632-1555
Stony Brook, NY 11794-5115     E-mail: 
Received on Mon May 27 2002 - 07:56:24 PDT
Custom Search