<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1531955427800_2361">Hello,</div><div id="yui_3_16_0_ym19_1_1531955427800_2971"><br></div><div id="yui_3_16_0_ym19_1_1531955427800_2972" dir="ltr">I'm trying to build mpich-3.2.1 with the PGI 18.4 Community Edition compilers. However, I get an error when running configure. The configure line is,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3555"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3548">./configure --prefix=/home/laytonjb/bin/pgi-18.4-mpich-3.2.1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3866"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3554">The error I get is,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3840"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3841">[laytonjb@laytonjb-Lenovo-G50-45 mpich-3.2.1]$ ./conf.jeff<br id="yui_3_16_0_ym19_1_1531955427800_3906">Configuring MPICH version 3.2.1 with  '--prefix=/home/laytonjb/bin/pgi-18.4-mpich-3.2.1' 'CC=/opt/pgi/linux86-64/18.4/bin/pgcc' 'CPP=/opt/pgi/linux86-64/18.4/bin/pgcc' 'CXX=/opt/pgi/linux86-64/18.4/bin/pgg++' 'FC=/opt/pgi/linux86-64/18.4/bin/pgfortran' 'F77=/opt/pgi/linux86-64/18.4/bin/pgf77'<br id="yui_3_16_0_ym19_1_1531955427800_3907">Running on system: Linux laytonjb-Lenovo-G50-45 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux<br id="yui_3_16_0_ym19_1_1531955427800_3908">checking whether the C compiler works... yes<br id="yui_3_16_0_ym19_1_1531955427800_3909">checking for C compiler default output file name... a.out<br id="yui_3_16_0_ym19_1_1531955427800_3910">checking for suffix of executables... <br id="yui_3_16_0_ym19_1_1531955427800_3911">checking whether we are cross compiling... no<br id="yui_3_16_0_ym19_1_1531955427800_3912">checking for suffix of object files... o<br id="yui_3_16_0_ym19_1_1531955427800_3913">checking whether we are using the GNU C compiler... no<br id="yui_3_16_0_ym19_1_1531955427800_3914">checking whether /opt/pgi/linux86-64/18.4/bin/pgcc accepts -g... yes<br id="yui_3_16_0_ym19_1_1531955427800_3915">checking for /opt/pgi/linux86-64/18.4/bin/pgcc option to accept ISO C89... none needed<br id="yui_3_16_0_ym19_1_1531955427800_3916">checking whether /opt/pgi/linux86-64/18.4/bin/pgcc understands -c and -o together... yes<br id="yui_3_16_0_ym19_1_1531955427800_3917">checking how to run the C preprocessor... /opt/pgi/linux86-64/18.4/bin/pgcc<br id="yui_3_16_0_ym19_1_1531955427800_3918">configure: error: in `/home/laytonjb/src/mpich-3.2.1':<br id="yui_3_16_0_ym19_1_1531955427800_3919">configure: error: C preprocessor "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check<br id="yui_3_16_0_ym19_1_1531955427800_3920">See `config.log' for more details<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3867"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3939">I've briefly looked through the config.log and this is all that stands out:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4541"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4614"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4542">$ grep -i error config.log<br id="yui_3_16_0_ym19_1_1531955427800_4596">pgcc-Error-Unknown switch: -qversion<br id="yui_3_16_0_ym19_1_1531955427800_4597">PGC/x86-64 Linux 18.4-0: compilation completed with severe errors<br id="yui_3_16_0_ym19_1_1531955427800_4598">PGC-S-0035-Syntax error: Recovery attempted by replacing identifier error by ';' (conftest.c: 14)<br id="yui_3_16_0_ym19_1_1531955427800_4599">PGC/x86-64 Linux 18.4-0: compilation completed with severe errors<br id="yui_3_16_0_ym19_1_1531955427800_4600">|                    Syntax error<br id="yui_3_16_0_ym19_1_1531955427800_4601">PGC-S-0035-Syntax error: Recovery attempted by replacing identifier error by ';' (conftest.c: 14)<br id="yui_3_16_0_ym19_1_1531955427800_4602">PGC/x86-64 Linux 18.4-0: compilation completed with severe errors<br id="yui_3_16_0_ym19_1_1531955427800_4603">|                    Syntax error<br id="yui_3_16_0_ym19_1_1531955427800_4604">configure:5951: error: in `/home/laytonjb/src/mpich-3.2.1':<br id="yui_3_16_0_ym19_1_1531955427800_4605">configure:5953: error: C preprocessor "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check<br id="yui_3_16_0_ym19_1_1531955427800_4606">HAVE_ERROR_CHECKING=''<br id="yui_3_16_0_ym19_1_1531955427800_4607">MPI_MAX_ERROR_STRING=''<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4543"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4903">I'm not sure how to fix this error. I've attached the config.log file in case this helps.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4925"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4933">Thanks for any and all help.</div><div dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4934">Jeff</div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4935"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4936"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4544"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4545"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4546"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_4547"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3937"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1531955427800_3553"><br></div></div></body></html>