Asu
October 22, 2008, 3:22pm
1
Hello, I am a new user of pgi compiler. I get the following message when compiling ‘Hello world’ program:
/tmp/pgf90b-ZbdpLCBpFg.s: Assembler messages:
/tmp/pgf90b-ZbdpLCBpFg.s:20: Error: suffix or operands invalid for `push’
My OS is 64bit SUSE and pgf90 -V returns: pgf90 7.0-4 32-bit target on x86 Linux
Any comments are appreciated. Thank you.
Hi Asu,
Which version SuSE and what architecture (Intel, AMD) are you running? Also, can you post the output of your compile with the addition of the flag “-v” (lower-case)? “-v” is “verbose” and will show all the compiler phases.
Thanks,
Mat
Asu
October 22, 2008, 4:37pm
3
Many thanks. My system is openSUSE 10.3 (X86-64) with Intel Core 2. I get the following messages with -v:
/usr/pgi/linux86/7.0-4/bin/newcg/pgf901 test.f90 -opt 1 -nohpf -nostatic -x 119 0x100000 -x 19 0x400000 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -x 57 0xfb0000 -x 58 0x78031040 -x 48 3328 -stdinc /usr/pgi/linux86/7.0-4/include:/usr/local/include:/usr/lib/gcc/x86_64-suse-linux/4.2.1/include:/usr/lib/gcc/x86_64-suse-linux/4.2.1/include:/usr/include -def unix -def __unix -def unix -def linux -def __linux -def linux -def i386 -def __i386 -def i386 -def __NO_MATH_INLINES -def linux86 -def __THROW= -def extension = -def SSE -def MMX -def SSE2 -def SSE3 -def SSSE3 -freeform -vect 48 -output /tmp/pgf90Zhfczr-2dkn7.ilm
0 inform, 0 warnings, 0 severes, 0 fatal for main
PGF90/x86 Linux 7.0-4: compilation successful
/usr/pgi/linux86/7.0-4/bin/newcg/pgf902 /tmp/pgf90Zhfczr-2dkn7.ilm -fn test.f90 -opt 1 -x 51 0x20 -x 119 0xa10000 -x 119 0x100000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 16 -x 119 0x40000000 -x 19 0x400000 -x 28 0x40000 -x 70 0x8000 -x 122 1 -x 59 4 -tp core2 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -astype 0 -x 124 1 -cmdline ‘+pgf90 test.f90 -v’ -asm /tmp/pgf90lhfcHCz023CL.s
0 inform, 0 warnings, 0 severes, 0 fatal for main
PGF90/x86 Linux 7.0-4: compilation successful
/usr/bin/as /tmp/pgf90lhfcHCz023CL.s -o /tmp/pgf90JhfcPafjwJFL.o
/tmp/pgf90lhfcHCz023CL.s: Assembler messages:
/tmp/pgf90lhfcHCz023CL.s:20: Error: suffix or operands invalid for `push’
pgf90-Fatal-Nasm completed with exit code 1
Unlinking /tmp/pgf90Zhfczr-2dkn7.ilm
Unlinking /tmp/pgf90lhfcHCz023CL.s
Hi Asu,
Since 7.0-4 came out before openSuSE 10.3, the installer doesn’t recognize this system and missed a need configuration detail. It’s easily fixed by adding the line “set EXTRAASARGS=–32;” to your “$PGI/linux86/7.0-4/bin/localrc” file so that the assembler flag “–32” is added to the “/usr/bin/as” line.
Asu
October 23, 2008, 1:36pm
5
PGI 7.0-4 for 64 bit system has been installed on my machine and the compiler now works. Thanks very much.