Re: [mpich-discuss] Problems building mpich-3.2.1 with PGI 18.4 Community Edition
Am 20.07.2018 um 17:24 schrieb Jeff Layton <[email protected]>:
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=''
Please don't set CPP, this is the preprocessor and not the C compiler itself. The GNU cpp should be installed though. NB: Usually it's sufficient to name the compilers without paths: $ ./configure --prefix=/home/laytonjb/bin/pgi-18.4-mpich-3.2.1 CC=pgcc CXX=pgc++ FC=pgf90 F77=pgf77 -- Reuti
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
participants (1)
-
Reuti