<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">If possible, can you include a copy of your configure.log which you used to configure petsc? It will give useful information about your machine and compilers. What system did this work with successfully? Also please attach the makefile directly rather than including its contents as text, it is much easier to read.</div><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Feb 15, 2021, at 20:47, Swarnava Ghosh <<a href="mailto:swarnava89@gmail.com" class="">swarnava89@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear Petsc developers and users,</div><div class=""><br class=""></div><div class="">I am having some issue with building my code with the following makefile. I was earlier able to build this with the same makefile on a different machine. Would you please help me out on this issue?</div><div class=""><br class=""></div><div class="">Contents of makefile:</div><div class="">==============================================<br class=""></div><div class="">all:sparc<br class=""><br class="">CPPFLAGS = -I ./inc -I ${MKLROOT}/include -L ${MKLROOT}/lib/ -llapack-addons -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread<br class=""><br class="">SOURCECPP = ./src/<a href="http://main.cc" class="">main.cc</a> ./src/<a href="http://initObjs.cc" class="">initObjs.cc</a> ./src/<a href="http://readfiles.cc" class="">readfiles.cc</a> ./src/<a href="http://energy.cc" class="">energy.cc</a> ./src/<a href="http://ExchangeCorrelation.cc" class="">ExchangeCorrelation.cc</a> ./src/<a href="http://occupation.cc" class="">occupation.cc</a> ./src/<a href="http://poisson.cc" class="">poisson.cc</a> ./src/<a href="http://chebyshev.cc" class="">chebyshev.cc</a> ./src/<a href="http://scf.cc" class="">scf.cc</a> ./src/<a href="http://mixing.cc" class="">mixing.cc</a> ./src/<a href="http://forces.cc" class="">forces.cc</a> ./src/<a href="http://relaxatoms.cc" class="">relaxatoms.cc</a> ./src/<a href="http://multipole.cc" class="">multipole.cc</a> ./src/<a href="http://electrostatics.cc" class="">electrostatics.cc</a> ./src/<a href="http://tools.cc" class="">tools.cc</a><br class=""><br class="">SOURCEH = ./inc/sddft.h ./inc/isddft.h<br class=""><br class="">OBJSC = ./src/main.o ./src/initObjs.o ./src/readfiles.o ./src/energy.o ./src/ExchangeCorrelation.o ./src/occupation.o ./src/poisson.o ./src/chebyshev.o ./src/scf.o ./src/mixing.o ./src/forces.o ./src/relaxatoms.o ./src/multipole.o ./src/electrostatics.o ./src/tools.o<br class=""><br class="">LIBBASE = ./lib/sparc<br class=""><br class="">CLEANFILES = ./lib/sparc <br class=""><br class="">include ${PETSC_DIR}/lib/petsc/conf/variables<br class="">include ${PETSC_DIR}/lib/petsc/conf/rules<br class=""><br class="">sparc: ${OBJSC} chkopts<br class=""> ${CLINKER} -Wall -o ${LIBBASE} ${OBJSC} ${PETSC_LIB}<br class="">       ${RM} $(SOURCECPP:%.cc=%.o)</div><div class=""><br class=""></div><div class="">===========================================<br class=""></div><div class="">Error:</div><div class="">/home/swarnava/petsc/linux-gnu-intel/bin/mpicxx -o src/main.o -c -g     -I/home/swarnava/petsc/include -I/home/swarnava/petsc/linux-gnu-intel/include    `pwd`/src/<a href="http://main.cc" class="">main.cc</a><br class="">/home/swarnava/Research/Codes/SPARC/src/<a href="http://main.cc" class="">main.cc</a>(24): catastrophic error: cannot open source file "sddft.h"<br class="">  #include "sddft.h"<br class="">                    ^<br class=""></div><div class="">====================================================</div><div class=""><br class=""></div><div class="">It's not able to see the header file though I have -I ./inc in  CPPFLAGS. The directory containing makefile has the directory "inc" with the headers and "src" with the .cc files.</div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Swarnava<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div>
</div></blockquote></div><br class=""></div></body></html>