I have both PGI 6.0 and 5.2 installed on a machine and I get the errors below when compiling with the -Mcpp=mm option.
pgf90 -Mcpp=mm myfile.f90
pgf90-Error-Required tool pgprepro was not found
pgf90… looked for pgprepro at /usr/local/pgi-5.2/linux86/5.2/bin/pgprepro
I’m using pgf90 5.2-4, as reported by pgf90 -V and it’s looking in the correct installation directory. The pgprepro executable simply doesn’t exist for 5.2 though. I does exist in /usr/local/pgi-6.0/linux86/6.0/bin/pgprepro.
If 5.2 doesn’t include pgprepro, why is pgf90 5.2 looking for it? If it does, why isn’t pgprepro there?