<div dir="ltr"><div>To be more precise, probably you have in your arch/local.ssmp</div><div><br></div><div>CPP = gcc</div><div>CPPFLAGS   = -E<br></div><div><br></div><div>Although this is strange (I've never had these flags set in my toolchain), I get a similar problem if I do set in my arch file.</div><div>This is a bug in the CP2K makefile:</div><div><br></div><div>https://github.com/cp2k/cp2k/blob/700dfe71c0b99fbb8510f414e08a90aacc047890/Makefile#L444-L447<br></div><div><br></div><div>I will open a PR for that. Thanks for reporting.</div><div><br></div><div><br></div><div><br></div><br><br>Il giorno mercoledì 9 gennaio 2019 12:08:44 UTC+1, Alfio Lazzaro ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">OK, for some reason you set<div><br></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">CPP</span></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">in the arch file. Could you check under arch directory what is the value of CPP?</span></font></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">An easy solution would be to remove it.</span></font></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font><br>Il giorno mercoledì 9 gennaio 2019 09:39:41 UTC+1, Ronald Cohen ha scritto:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div>This shows clearly that the file cannot be called fypped:</div><div><br></div><div>cp qs_basis_gradient.f90 t.fypped</div><div>rcohen@tomcat3:~/CP2K/cp2k/<wbr>src$ gcc -E -cpp t.fypped</div><div>gcc: warning: t.fypped: linker input file unused because linking not done</div><div>rcohen@tomcat3:~/CP2K/cp2k/<wbr>src$ cp t.fypped t.f</div><div>rcohen@tomcat3:~/CP2K/cp2k/<wbr>src$ gcc -E -cpp t.f | head</div><div># 1 "t.f"</div><div># 1 "<built-in>"</div><div># 1 "<command-line>"</div><div># 1 "t.f"</div><div>!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---------!</div><div>!   CP2K: A general program to perform molecular dynamics simulations                              !</div><div>!   Copyright (C) 2000 - 2018  CP2K developers group                                               !</div><div>!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---------!</div><div><br></div><div>! ******************************<wbr>******************************<wbr>*****************</div><div><br></div><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space">---<br>Ron Cohen<br><a rel="nofollow">rec...@gmail.com</a><br>skypename: ronaldcohen</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space">twitter: @recohen3<br><div><br></div></div><br><br>
</div>
<div><br><blockquote type="cite"><div>On Jan 9, 2019, at 9:29 AM, Ronald Cohen <<a rel="nofollow">rec...@gmail.com</a>> wrote:</div><br><div><div style="word-wrap:break-word;line-break:after-white-space">It seems that gcc -E will not work on a file called x.fypped . If I call this file x.f90 and do gcc -E -cpp on it preprocesses. So it seems the toolchain doesn’t not work properly.<div><br></div><div>Ron</div><div><br><div>
<div style="font-family:Helvetica;font-style:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space">---<br>Ron Cohen<br><a rel="nofollow">rec...@gmail.com</a><br>skypename: ronaldcohen</div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space">twitter: @recohen3<br><div><br></div></div><br><br>
</div>
<div><br><blockquote type="cite"><div>On Jan 9, 2019, at 9:17 AM, Ronald Cohen <<a rel="nofollow">rec...@gmail.com</a>> wrote:</div><br><div><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It seems that the gcc -E doesn’t work:<div><br></div><div>/home/rcohen/CP2K/cp2k/tools/<wbr>toolchain/install/gcc-8.2.0/<wbr>bin/gcc -E -D__COMPILE_ARCH="\"local\"" -D__COMPILE_DATE="\"Wed Jan  9 08:49:48 CET 2019\"" -D__COMPILE_HOST="\"tomcat3\"" -D__COMPILE_REVISION="\"git:<wbr>89b110c40\"" -D__DATA_DIR="\"/home/rcohen/<wbr>CP2K/cp2k/data\"" -I/home/rcohen/CP2K/cp2k/src -D__SHORT_FILE__="\"qs_basis_<wbr>gradient.F\"" -I'/home/rcohen/CP2K/cp2k/src/<wbr>' qs_basis_gradient.fypped > qs_basis_gradient.f90</div><div><div>gcc: warning: qs_basis_gradient.fypped: linker input file unused because linking not done</div><div><br></div><div><br></div></div><div>It outputs a zero length file:</div><div><br></div><div><div style="font-family:Helvetica;font-size:12px">-rw-r--r--  1 rcohen tomcat   15467 Jan  9 08:49 qs_basis_gradient.fypped</div><div style="font-family:Helvetica;font-size:12px">-rw-r--r--  1 rcohen tomcat       0 Jan  9 08:55 qs_basis_gradient.f90</div><div style="font-family:Helvetica;font-size:12px"><br></div><div style="font-family:Helvetica;font-size:12px">It must work sometimes because some things get built! </div></div></div></blockquote><div><br></div><div>If I use /usr/bin/gcc (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) the same thing happens. </div><div><br></div><div>I do not see anything wrong with qs_basis_gradient.fypped . Why does gcc -E output nothing?</div><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div style="font-family:Helvetica;font-size:12px"><br></div><div style="font-family:Helvetica;font-size:12px">Ron</div><div><br></div></div></div></blockquote><div><br></div>

-- <br>
You received this message because you are subscribed to a topic in the Google Groups "cp2k" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/cp2k/gzmRqKNt62U/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/topic/cp2k/gzmRqKNt62U/unsubscribe';return true;" onclick="this.href='https://groups.google.com/d/topic/cp2k/gzmRqKNt62U/unsubscribe';return true;">https://groups.google.com/d/<wbr>topic/cp2k/gzmRqKNt62U/<wbr>unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a rel="nofollow">cp2k+...@googlegroups.com</a>.<br>
To post to this group, send email to <a rel="nofollow">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</div></blockquote></div><br></div></div></div></blockquote></div><br></div></blockquote></div></div></blockquote></div>