[mpich-discuss] Cannot build mpich2-1.0.8p1 (nemesis) with PGI 8.0-4 on Linux x86_64

Gus Correa gus at ldeo.columbia.edu
Wed Apr 1 13:59:25 CDT 2009


Hi Scott, list

Thank you for the suggestion.
Finding out the right compiler flags is always a pain,
so it is always worth trying what worked for other people.

I tried to build with "-c9x" added to the CFLAGS.
Unfortunately the same error happens.

According to Dave Goodell, the fix really requires making changes
in the configure script to handle the PGI compilers correctly.

As far as I can tell, pgcc abides by the C99 standard
(or whatever part of it) by default.
Again, please correct me if I am wrong.

If I do "pgcc -show" it gives me a long list of
compiler configuration variables, among which these two,
which suggest to me that the c99 (a.k.a. c9x in pgcc parlance)
language standard is the default:

C99                 =-x 123 0x80000000
CARGS               Switches to C compiler
                     =-x 123 0x80000000 -x 123 4 -x 2 0x400 -x 119 0x20 
-alwaysinline /home/sw/pgi/8.0-4/linux86-64/8.0-4/lib/libintrinsics.il 4
C

Thank you,
Gus Correa
---------------------------------------------------------------------
Gustavo Correa
Lamont-Doherty Earth Observatory - Columbia University
Palisades, NY, 10964-8000 - USA
---------------------------------------------------------------------

Scott Atchley wrote:
> Hi Gus,
> 
> I do not know if this is applicable or not, but we have the following in 
> our MPICH2-MX README:
> 
>> If you are compiling with Portland Group compilers, you will need to 
>> also set:
>>
>> $ export CFLAGS=-c9x
> 
> I do not remember why we added it and I have not tested it with the 
> latest Portland compilers.
> 
> Scott



More information about the mpich-discuss mailing list