pgf90-Error-Required tool pgprepro was not found

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?

Hi Adam,

If 5.2 doesn’t include pgprepro, why is pgf90 5.2 looking for it?

pgprepro wasn’t ready in time for the 5.2 release and support for it should have been removed from the driver. Unfortunately, we made a mistake and forgot to remove it. To print makefile dependancies you can use “-MM” which is supported in both 5.2 and 6.0.

  • Mat