Hi <div>I am getting same error is it been solved?<br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, 28 July 2021 at 04:00:34 UTC+8 volk...@gmail.com wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr"><div>Dear Fabian:</div><div>thank you for the kind email.</div></div><div dir="ltr"><div><br></div><div>>
For 8.2: the command 'make ARCH=Linux-x86-64-gfortran.ssmp' is
wrong, use the same syntax as for 7.1 and 8.1: 'make
ARCH=Linux-x86-64-gfortran VERSION=ssmp' <br></div><div><br></div><div></div></div><div dir="ltr"><div><b>Answer: Thank you ..clear</b></div></div><div dir="ltr"><div><br></div><div>
>For 8.1: add -fopenmp to the lines CFLAGS and FCFLAGS in
/cp2k-8.1/Cygwin-i686-gfortran.sopt
</div><div><br></div></div><div dir="ltr"><div>
<b>Answer: <br></b></div><div><b></b></div><div><b>I set <br></b></div><div><b>CPPFLAGS = -fopenmp</b></div><div><b></b></div><div><b>
</b>CFLAGS does not exit in the sopt <b><br></b></div><div><b>but <br></b></div><div>what the heck<b><br></b></div><div><b>I added the line<br></b></div><div><b>CFLAGS = -fopenmp</b></div><div><b><br></b></div><div><b>and also I set</b></div><div><b>FCFLAGS = -O2 -ffast-math -funroll-loops -ftree-vectorize -ffree-form -fopenmp $(DFLAGS) </b>
</div><div><br></div><div><b>still I get <br></b></div></div><div dir="ltr"><div><br></div><div>/cp2k-8.1/src/grid/common/grid_library.c:28:2: error: #error "OpenMP is required. Please add -fopenmp to your C compiler flags."<br> 28 | #error "OpenMP is required. Please add -fopenmp to your C compiler flags."<br> | ^~~~~<br>make[3]: *** [/cp2k-8.1/Makefile:508: grid_library.o] Error 1<br>make[2]: *** [/cp2k-8.1/Makefile:144: all] Error 2<br>make[1]: *** [/cp2k-8.1/Makefile:130: sopt] Error 2<br>make: *** [Makefile:121: all] Error 2<br></div><div><b><br></b></div></div><div dir="ltr"><div><b>
</b><div><b>..
-fopenmp is not recognized regardless</b><br></div><div></div>
</div></div><div dir="ltr"><div><br></div><div></div><div>>"run 'git submodule update --init
--recursive'"</div><div><br></div></div><div dir="ltr"><div><b>ANSWER:<br></b></div><div><b>
</b><div><b>under CYGWIN I tried to command <br></b></div></div></div><div dir="ltr"><div><div><b>"git submodule update --init
--recursive"</b></div></div></div><div dir="ltr"><div><div><b>and got<br></b>
</div><div><b>"-bash: git: command not found"</b></div><b>
</b></div><div><b><br></b></div><div><b>Shoul I go to SIGWIN update and search through databases</b></div><div><b>that somewhere there should be THREE libraries titled</b></div><div><b>
</b><div><b></b></div><div><b>1) "run.LIB" <br></b></div><div><b>2) "git.LIB" <br></b></div><div><b>3) "
--init
--recursive.LIB" <br></b></div><div><b></b></div><div><b>to be installed in a "collective" way, all together? </b></div>
</div><div><br></div><div></div><div>please instruct ....very curious!!!<br></div><br><div></div><div>Thank you.</div><div>sincerely</div><div></div><div>victor<br></div><div><br></div><div><br></div><div> <br>
</div><div><br></div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 27, 2021 at 8:50 PM Fabian Ducry <<a href data-email-masked rel="nofollow">fabia...@gmail.com</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi</p>
<p>I'm not sure what is misleading. The error message tells you what
to do:<br>
</p>
<p> For 7.1: go to /cp2k-7.1.0 and run 'git submodule update --init
--recursive', then try again</p>
<p>For 8.1: add -fopenmp to the lines CFLAGS and FCFLAGS in
/cp2k-8.1/Cygwin-i686-gfortran.sopt</p>
<p>For 8.2: the command 'make ARCH=Linux-x86-64-gfortran.ssmp' is
wrong, use the same syntax as for 7.1 and 8.1: 'make
ARCH=Linux-x86-64-gfortran VERSION=ssmp'</p>
<p>Cheers<br>
</p>
<p>Fabian<br>
</p>
<div>On 27.07.2021 19:17, Victor Volkov
wrote:<br>
</div>
<blockquote type="cite">
<div>why cp2k instructions are misleading</div>
<div>for any version<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> /cp2k-7.1.0<br>
$ make ARCH=Cygwin-i686-gfortran VERSION=sopt<br>
Discovering programs ...<br>
/cp2k-7.1.0/exts/Makefile.inc:2: *** "No DBCSR submodule
available, please run 'git submodule update --init
--recursive'". Stop.<br>
make[1]: *** [/cp2k-7.1.0/Makefile:123: sopt] Error 2<br>
make: *** [Makefile:118: all] Error 2</div>
<div><br>
</div>
<div>/cp2k-8.1<br>
$ make ARCH=Cygwin-i686-gfortran VERSION=sopt<br>
Discovering programs ...<br>
Version sopt is now an alias for ssmp with OMP_NUM_THREADS=1.<br>
Removing stale archives for ssmp ...<br>
Resolving dependencies for ssmp ...<br>
make -C /cp2k-8.1/exts/dbcsr -f .cp2k/Makefile \<br>
INCLUDEMAKE=/cp2k-8.1/arch/Cygwin-i686-gfortran.ssmp \<br>
LIBDIR=/cp2k-8.1/lib/Cygwin-i686-gfortran/ssmp/exts/dbcsr \<br>
OBJDIR=/cp2k-8.1/obj/Cygwin-i686-gfortran/ssmp/exts/dbcsr \<br>
ACC="" \<br>
ACCFLAGS=""<br>
Removing stale archives ...<br>
Resolving dependencies ...<br>
gcc -c /cp2k-8.1/src/grid/common/grid_library.c<br>
/cp2k-8.1/src/grid/common/grid_library.c:28:2: error: #error
"OpenMP is required. Please add -fopenmp to your C compiler
flags."<br>
28 | #error "OpenMP is required. Please add -fopenmp to your
C compiler flags."<br>
| ^~~~~<br>
make[3]: *** [/cp2k-8.1/Makefile:508: grid_library.o] Error 1<br>
make[2]: *** [/cp2k-8.1/Makefile:144: all] Error 2<br>
make[1]: *** [/cp2k-8.1/Makefile:130: sopt] Error 2<br>
make: *** [Makefile:121: all] Error 2</div>
<div><br>
</div>
<div><br>
</div>
<div>/cp2k-8.2<br>
$ make ARCH=Linux-x86-64-gfortran.ssmp<br>
Discovering programs ...<br>
/cp2k-8.2/Makefile:51:
/cp2k-8.2/arch/Linux-x86-64-gfortran.ssmp.ssmp: No such file or
directory<br>
make[2]: *** No rule to make target
'/cp2k-8.2/arch/Linux-x86-64-gfortran.ssmp.ssmp'. Stop.<br>
make[1]: *** [/cp2k-8.2/Makefile:126: ssmp] Error 2<br>
make: *** [Makefile:121: all] Error 2<br>
<br>
<br>
</div>
<div><br>
</div>
<div><br>
</div>
-- <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 data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/994368cf-21a8-4cd1-b0b9-ba6ed7040829n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/d/msgid/cp2k/994368cf-21a8-4cd1-b0b9-ba6ed7040829n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1663225373160000&usg=AOvVaw09HBStCo3hPBpgqR1-T56E">https://groups.google.com/d/msgid/cp2k/994368cf-21a8-4cd1-b0b9-ba6ed7040829n%40googlegroups.com</a>.<br>
</blockquote>
</div>
<p></p>
-- <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 data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>.<br></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/c647b735-f232-46b4-4c8d-d168aa6138cc%40gmail.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/d/msgid/cp2k/c647b735-f232-46b4-4c8d-d168aa6138cc%2540gmail.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1663225373160000&usg=AOvVaw1EcwdVMmrBoDpxkXrIJyjO">https://groups.google.com/d/msgid/cp2k/c647b735-f232-46b4-4c8d-d168aa6138cc%40gmail.com</a>.<br>
</blockquote></div>
</blockquote></div>
<p></p>
-- <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+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/091992b6-e808-4ec8-ae36-99dfc70417ebn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/091992b6-e808-4ec8-ae36-99dfc70417ebn%40googlegroups.com</a>.<br />