Error-Unknow switch

Hi,

I’m trying to build CMAQ on a cluster and am near the end of the build (trying to compile CCTM). Unfortunately the build stalls after giving the following errors:

pgf90-Error-Unknown switch: -extend_source
pgf90-Error-Unknown switch: -vec-report0
pgf90-Error-Unknown switch: -nodefines
pgf90-Error-Unknown switch: -cm
pgf90-Error-Unknown switch: -w95


I’m compiling using Portland Group Fortran Compiler 10.5, and the cluster is running CentOS 4.5.

Any help or insight will be greatly appreciated.

Eric

The message is self-explanatory. You are choosing compiler options that are not recognized by the PGI compiler.

You appear to be using a makefile configured for the Intel compiler. You either have to select a configuration suited to the PGI compiler, if one is provided in the makefile, or modify the makefile yourself.

Even worse, if there are options that are recognized by both the compilers but with different meanings, you may not get the best executable program, as one aims to produce quite often.

Tried again using Intel Fortan 90 and it worked.

Thanks for the help,
Eric