Re: [mpich-discuss] Problems building mpich-3.2.1 with PGI 18.4 Community Edition
In the configure statement you posted in your original post you set CPP (see below in this post) which results in exactly this error when set to the plain C compiler. Please double check that it’s no longer there.
error: C preprocessor "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check
-- Reuti
Am 20.07.2018 um 23:14 schrieb Jeff Hammond <[email protected]>:
The problem exists in PGI 18 but not PGI 17. This seems like a PGI bug rather than an MPICH one.
Jeff
On Fri, Jul 20, 2018 at 8:24 AM, Jeff Layton <[email protected]> wrote: I fixed this problem and I get the exact same error. Again, I grepped config.log and found the following.
$ grep -i error config.log pgcc-Error-Unknown switch: -qversion PGC/x86-64 Linux 18.4-0: compilation completed with severe errors PGC-S-0035-Syntax error: Recovery attempted by replacing identifier error by ';' (conftest.c: 14) PGC/x86-64 Linux 18.4-0: compilation completed with severe errors | Syntax error PGC-S-0035-Syntax error: Recovery attempted by replacing identifier error by ';' (conftest.c: 14) PGC/x86-64 Linux 18.4-0: compilation completed with severe errors | Syntax error configure:5951: error: in `/home/laytonjb/src/mpich-3.2.1': configure:5953: error: C preprocessor "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check HAVE_ERROR_CHECKING='' MPI_MAX_ERROR_STRING=''
I'm not an expert but it looks like configure sends an unknown option to pgcc (-qversion). Then there appear to be some problems in mpich when built with pgcc.
Any comments or thoughts?
Thanks!
Jeff
Dooh. Thanks - I'll try this and see what happens.
Thanks!
Jeff
Am 19.07.2018 um 01:19 schrieb Jeff Layton <[email protected]>:
Hello,
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,
./configure --prefix=/home/laytonjb/bin/pgi-18.4-mpich-3.2.1
The error I get is,
[laytonjb@laytonjb-Lenovo-G50-45 mpich-3.2.1]$ ./conf.jeff 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' pgg++ seems to be typo, duno whether this is related.
-- Reuti
'F77=/opt/pgi/linux86-64/18.4/bin/pgf77' 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 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether /opt/pgi/linux86-64/18.4/bin/pgcc accepts -g... yes checking for /opt/pgi/linux86-64/18.4/bin/pgcc option to accept ISO C89... none needed checking whether /opt/pgi/linux86-64/18.4/bin/pgcc understands -c and -o together... yes checking how to run the C preprocessor... /opt/pgi/linux86-64/18.4/bin/pgcc configure: error: in `/home/laytonjb/src/mpich-3.2.1': configure: error: C preprocessor "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check See `config.log' for more details
I've briefly looked through the config.log and this is all that stands out:
$ grep -i error config.log pgcc-Error-Unknown switch: -qversion PGC/x86-64 Linux 18.4-0: compilation completed with severe errors PGC-S-0035-Syntax error: Recovery attempted by replacing identifier error by ';' (conftest.c: 14) PGC/x86-64 Linux 18.4-0: compilation completed with severe errors | Syntax error PGC-S-0035-Syntax error: Recovery attempted by replacing identifier error by ';' (conftest.c: 14) PGC/x86-64 Linux 18.4-0: compilation completed with severe errors | Syntax error configure:5951: error: in `/home/laytonjb/src/mpich-3.2.1': configure:5953: error: C preprocessor "/opt/pgi/linux86-64/18.4/bin/pgcc" fails sanity check HAVE_ERROR_CHECKING='' MPI_MAX_ERROR_STRING=''
I'm not sure how to fix this error. I've attached the config.log file in case this helps.
Thanks for any and all help.
Jeff
<config.log>_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
-- Jeff Hammond [email protected] http://jeffhammond.github.io/
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
participants (1)
-
Reuti