<div dir="ltr"><div class="gmail_quote"><div>Forgot to reply to all.</div><div><br></div><div>---</div><div><br></div><div dir="ltr">Matt,<div><br></div><div>No, that doesn't work either.</div><div><br></div><div>Tabrez</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 1, 2019 at 6:54 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Tue, Oct 1, 2019 at 6:38 AM Tabrez Ali via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> wrote:<br></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 dir="ltr">Hello<div><br></div><div>I am trying to compile a simple Fortran program and it works fine with PETSc 3.10 but fails with the latest version, e.g., see below:</div><div><br></div><div><font face="monospace">$ make clean; make exe PETSC_DIR=/opt/petsc-3.10.5_clang_uni<br>flang -c -fPIC -Wall -Wno-unused-variable -g -O3 -I/opt/petsc-3.10.5_clang_uni/include -I/opt/petsc-3.10.5_clang_uni/arch-linux2-c-opt/include -o m_foo.o m_foo.F90<br>flang -c -fPIC -Wall -Wno-unused-variable -g -O3 -I/opt/petsc-3.10.5_clang_uni/include -I/opt/petsc-3.10.5_clang_uni/arch-linux2-c-opt/include -o bar.o bar.F90<br>flang -fPIC -Wall -Wno-unused-variable -g -O3 -o exe m_foo.o bar.o -Wl,-rpath,/opt/petsc-3.10.5_clang_uni/arch-linux2-c-opt/lib -L/opt/petsc-3.10.5_clang_uni/arch-linux2-c-opt/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib/gcc/x86_64-linux-gnu/8 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -Wl,-rpath,/opt/flang/lib -L/opt/flang/lib -Wl,-rpath,/opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/libfabric/lib -L/opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/libfabric/lib -Wl,-rpath,/opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/lib/intel64/gcc4.7 -L/opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/lib/intel64/gcc4.7 -lpetsc -llapack -lblas -lm -lpthread -lflangmain -lstdc++ -ldl -lflang -lflangrti -lpgmath -lompstub -lm -lrt -lpthread -lgcc_s -lstdc++ -ldl<br><br></font></div><div><font face="monospace">$ make clean; make exe PETSC_DIR=/home/stali/petsc-dev<br>make: *** No rule to make target 'm_foo.o', needed by 'exe'. Stop.</font></div><div><br></div><div>Any ideas as to what could be wrong? Here's the Makefile ...</div><div><font face="monospace"><br></font></div><div><font face="monospace">include ${PETSC_DIR}/lib/petsc/conf/variables<br>include ${PETSC_DIR}/lib/petsc/conf/rules<br>OBJS = m_foo.o bar.o<br>exe: ${OBJS}<br> ${FLINKER} -o exe ${OBJS} ${PETSC_LIB}</font></div></div></blockquote><div><br></div><div>Can you try putting the include statements at the end?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks in advance.</div><div><br></div><div>Tabrez</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div>
</div></div>