<div dir="ltr">Thank you very much! I tried the A way you suggested and now ScaLAPACK was installed successfully. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Tiziano Müller <<a href="mailto:tiziano...@chem.uzh.ch">tiziano...@chem.uzh.ch</a>> 于2020年7月30日周四 下午11:08写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ok, I think you're running into a compatibility problem with the <br>
Scalapack-Version (2.0.2) in our toolchain and the OpenMPI-Version <br>
you've installed on your system (/usr/local/bin/mpif90), based on the <br>
error message from your make.log:<br>
<br>
/home/wangzl/cp2k-7.1/tools/toolchain/build/scalapack-2.0.2/BLACS/SRC/cgamn2d_.c:224:12: <br>
error: expected expression before ‘_Static_assert’<br>
<br>
and what an Internet-search turned up:<br>
<br>
<a href="https://bugs.gentoo.org/684750" rel="noreferrer" target="_blank">https://bugs.gentoo.org/684750</a><br>
<br>
There are different ways to proceed if that is the case:<br>
<br>
A) you call install_cp2k_toolchain.sh with<br>
<br>
./install_cp2k_toolchain.sh --with-openmpi<br>
<br>
or<br>
<br>
./install_cp2k_toolchain.sh --with-mpich<br>
<br>
to have it build a compatible OpenMPI or MPICH version and not use the <br>
one from /usr/local.<br>
<br>
B) you downgrade your OpenMPI installation in /usr/local/bin to <4.0<br>
C) you use the latest CP2K version from git with:<br>
<br>
git clone --recursive <a href="https://github.com/cp2k/cp2k.git" rel="noreferrer" target="_blank">https://github.com/cp2k/cp2k.git</a><br>
D) you modify scripts/install_scalapack.sh to apply the patch provided <br>
in <br>
<a href="https://github.com/Reference-ScaLAPACK/scalapack/commit/14fb599e1675e70667858eec1febeebbbb2f9ac1" rel="noreferrer" target="_blank">https://github.com/Reference-ScaLAPACK/scalapack/commit/14fb599e1675e70667858eec1febeebbbb2f9ac1</a><br>
E) you install your own Scalapack 2.1.x in /usr/local and use<br>
./install_cp2k_toolchain.sh --with-scalapack=system<br>
...<br>
<br>
Hope this helps,<br>
best regards,<br>
Tiziano<br>
<br>
On 30.07.20 16:39, <a href="mailto:zho...@gmail.com" target="_blank">zho...@gmail.com</a> wrote:<br>
> Thank you for your suggesstion! The make.log and configure.log files are <br>
> attached below. This scalapack installation failure problem has bothered <br>
> me for several days, but I still haven't found a way to solve it. I need <br>
> get your help so that I can learn about the use of CP2K. Thanks!<br>
> <br>
> 在2020年7月30日星期四 UTC+8 下午3:56:37<<a href="mailto:tiz...@chem.uzh.ch" target="_blank">tiz...@chem.uzh.ch</a>> 写道:<br>
> <br>
> please post the complete build/scalapack-2.1.0/build/make.log (or the<br>
> part where one can see the original compiler error for sgamx2d_.c).<br>
> <br>
> Best regards,<br>
> Tiziano<br>
> <br>
> On 29.07.20 15:34, <a href="mailto:zho...@gmail.com" target="_blank">zho...@gmail.com</a> wrote:<br>
> > Thank you for your kind suggesstion!I checked the configure.log,<br>
> but I<br>
> > am still not sure what contributes to the error. I touched the<br>
> > configure.log below, could you help me analyze it? Thanks!<br>
> > 在2020年7月29日星期三 UTC+8 下午3:01:27<<a href="mailto:fa...@gmail.com" target="_blank">fa...@gmail.com</a>> 写道:<br>
> ><br>
> > Hi,<br>
> ><br>
> > You have to check the appropriate log file to find the error:<br>
> ><br>
> > build/scalapack-2.1.0/build/configure.log<br>
> ><br>
> > Best,<br>
> > Fabian<br>
> ><br>
> > On Wednesday, 29 July 2020 04:14:05 UTC+2, <a href="mailto:zho...@gmail.com" target="_blank">zho...@gmail.com</a><br>
> wrote:<br>
> ><br>
> > Hi Everyone,<br>
> > I meet a difficulty in compling CP2K using toolchain. Here is<br>
> > the error in installing ScaLAPACK.<br>
> > ==================== Installing ScaLAPACK ====================<br>
> > scalapack-2.0.2.tgz is found<br>
> > Installing from scratch into<br>
> > /home/wangzl/cp2k-7.1.0/tools/toolchain/install/scalapack-2.0.2<br>
> > ERROR: (./scripts/install_scalapack.sh, line 47) Non-zero exit<br>
> > code detected.<br>
> > and the error in make.log is following<br>
> > make[2]: *** [CMakeFiles/scalapack.dir/build.make:661:<br>
> > CMakeFiles/scalapack.dir/BLACS/SRC/sgamx2d_.c.o] Error 1<br>
> > make[1]: *** [CMakeFiles/Makefile2:877:<br>
> > CMakeFiles/scalapack.dir/all] Error 2<br>
> > I tried to search sgamx2d_.c.o in<br>
> > CMakeFiles/scalapack.dir/BLACS/SRC but fail to find. I am<br>
> > puzzling now. Can anyone help me? Thanks!<br>
> ><br>
> > --<br>
> > You received this message because you are subscribed to the Google<br>
> > Groups "cp2k" group.<br>
> > To unsubscribe from this group and stop receiving emails from it,<br>
> send<br>
> > an email to <a href="mailto:cp2k%...@googlegroups.com" target="_blank">cp...@googlegroups.com</a><br>
> > <mailto:<a href="mailto:cp2k%...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>>.<br>
> > To view this discussion on the web visit<br>
> ><br>
> <a href="https://groups.google.com/d/msgid/cp2k/a49aa622-01a8-473b-bcb9-3df62a079e24n%40googlegroups.com" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/cp2k/a49aa622-01a8-473b-bcb9-3df62a079e24n%40googlegroups.com</a><br>
> <br>
> ><br>
> <<a href="https://groups.google.com/d/msgid/cp2k/a49aa622-01a8-473b-bcb9-3df62a079e24n%40googlegroups.com?utm_medium=email&utm_source=footer" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/cp2k/a49aa622-01a8-473b-bcb9-3df62a079e24n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.<br>
> <br>
> <br>
> -- <br>
> Tiziano Müller<br>
> University of Zurich<br>
> Department of Chemistry<br>
> Winterthurerstrasse 190<br>
> CH-8057 Zürich<br>
> <br>
> Tel: +41 44 63 54234<br>
> <a href="http://www.chem.uzh.ch" rel="noreferrer" target="_blank">www.chem.uzh.ch</a> <<a href="http://www.chem.uzh.ch" rel="noreferrer" target="_blank">http://www.chem.uzh.ch</a>><br>
> <a href="mailto:tiz...@chem.uzh.ch" target="_blank">tiz...@chem.uzh.ch</a><br>
> <br>
> -- <br>
> You received this message because you are subscribed to the Google <br>
> Groups "cp2k" group.<br>
> To unsubscribe from this group and stop receiving emails from it, send <br>
> an email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp...@googlegroups.com</a> <br>
> <mailto:<a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>>.<br>
> To view this discussion on the web visit <br>
> <a href="https://groups.google.com/d/msgid/cp2k/0fd19522-e60f-4a08-9654-8e68312221b6n%40googlegroups.com" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/cp2k/0fd19522-e60f-4a08-9654-8e68312221b6n%40googlegroups.com</a> <br>
> <<a href="https://groups.google.com/d/msgid/cp2k/0fd19522-e60f-4a08-9654-8e68312221b6n%40googlegroups.com?utm_medium=email&utm_source=footer" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/cp2k/0fd19522-e60f-4a08-9654-8e68312221b6n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.<br>
<br>
-- <br>
Tiziano Müller<br>
University of Zurich<br>
Department of Chemistry<br>
Winterthurerstrasse 190<br>
CH-8057 Zürich<br>
<br>
Tel: +41 44 63 54234<br>
<a href="http://www.chem.uzh.ch" rel="noreferrer" target="_blank">www.chem.uzh.ch</a><br>
<a href="mailto:tiziano...@chem.uzh.ch" target="_blank">tiziano...@chem.uzh.ch</a><br>
<br>
-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k%2Bun...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/536671f7-6185-4385-4a1f-7c45fb44ffcf%40chem.uzh.ch" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/cp2k/536671f7-6185-4385-4a1f-7c45fb44ffcf%40chem.uzh.ch</a>.<br>
</blockquote></div>