i do not know why?help me!!!

/usr/local/mpich/bin/mpif77 -c -O2 -Mcray=pointer -tp p6 -pc 32 -Mnoframe -byteswapio swrad.f 2> swrad.lis
make[1]: [swrad.o] Error 1 (ignored)
f77: `-b’ must come at the start of the command line

Hi HuJR,

mpif77 is a wrapper script used to simplify MPI compilation. It appears that your mpif77 script is configured to use the ‘f77’ compiler not ‘pgf77’. You’ll need to reconfigure mpif77 or rebuild your MPICH library (See MPICH T&T page for help).

Note that you do not need to use mpif77. Rather you can compile using pgf77 directly by adding the include path to mpi.h.

pgf77 -I/usr/local/mpich/include -c -O2 -Mcray=pointer -tp p6 -pc 32 -Mnoframe -byteswapio swrad.f

You can link with pgf77 as well by adding the link path “-L/usr/local/mpich/” and the needed MPICH libraries (-lmpich -lfmpich).

Hope this helps,