Assembler error for pgf77 and pgf90

For even the simplest fortran programs I always get the following assembler error messages upon compiling any *.f program that otherwise works for g77 or f77:

/tmp/gfp77zK1tAL.s: Assembler messages:
/tmp/pgf77zK1tAL.s:12: Error: suffix or operands invalid for ‘push’
/tmp/pgf77zK1tAL.s:47: Error: suffix or operands invalid for ‘pop’

and for pgf90:

/tmp/gfp90zK1tAL.s: Assembler messages:
/tmp/pgf90zK1tAL.s:23: Error: suffix or operands invalid for ‘push’
/tmp/pgf90zK1tAL.s:70: Error: suffix or operands invalid for ‘pop’

The code will compile with the -S option to produce a *.s file, but it will neither assemble nor link under any option or no option specified.

The versions of pgf77 and pgf90 are:

/usr/pgi/linux86/5.1/bin/pgf77 and
/usr/pgi/linux86/5.1/bin/pgf90 respectively.



Thanks

miltie

Hi Milte,

While this type of code generator bug can occur, it usually only happens with very high optimization and very few source code are effected. Since it happens with any fortran program you compile, its more likely a configuration or installation issue.

What OS are you using? What optimization are you using? Can you compile one of your simple programs with “-v” and post the output?

Thanks,
Mat