<div dir="ltr">Thank you Satish. It works now.<div><br></div><div>Tabrez</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 1, 2019 at 9:39 AM Balay, Satish <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</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"><a href="https://gitlab.com/petsc/petsc/issues/391" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/issues/391</a><br>
<br>
Can you try the branch balay/addback_F_o_compile_target/maint<br>
[yet to test]<br>
<br>
Satish <br>
<br>
On Tue, 1 Oct 2019, Tabrez Ali via petsc-dev wrote:<br>
<br>
> Hello<br>
> <br>
> I am trying to compile a simple Fortran program and it works fine with<br>
> PETSc 3.10 but fails with the latest version, e.g., see below:<br>
> <br>
> $ make clean; make exe PETSC_DIR=/opt/petsc-3.10.5_clang_uni<br>
> flang -c -fPIC -Wall -Wno-unused-variable -g -O3<br>
>  -I/opt/petsc-3.10.5_clang_uni/include<br>
> -I/opt/petsc-3.10.5_clang_uni/arch-linux2-c-opt/include    -o m_foo.o<br>
> m_foo.F90<br>
> flang -c -fPIC -Wall -Wno-unused-variable -g -O3<br>
>  -I/opt/petsc-3.10.5_clang_uni/include<br>
> -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<br>
> -Wl,-rpath,/opt/petsc-3.10.5_clang_uni/arch-linux2-c-opt/lib<br>
> -L/opt/petsc-3.10.5_clang_uni/arch-linux2-c-opt/lib<br>
> -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/8<br>
> -L/usr/lib/gcc/x86_64-linux-gnu/8 -Wl,-rpath,/usr/lib/x86_64-linux-gnu<br>
> -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu<br>
> -L/lib/x86_64-linux-gnu -Wl,-rpath,/opt/flang/lib -L/opt/flang/lib<br>
> -Wl,-rpath,/opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/libfabric/lib<br>
> -L/opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/libfabric/lib<br>
> -Wl,-rpath,/opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/lib/intel64/gcc4.7<br>
> -L/opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/lib/intel64/gcc4.7<br>
> -lpetsc -llapack -lblas -lm -lpthread -lflangmain -lstdc++ -ldl -lflang<br>
> -lflangrti -lpgmath -lompstub -lm -lrt -lpthread -lgcc_s -lstdc++ -ldl<br>
> <br>
> $ make clean; make exe PETSC_DIR=/home/stali/petsc-dev<br>
> make: *** No rule to make target 'm_foo.o', needed by 'exe'.  Stop.<br>
> <br>
> Any ideas as to what could be wrong? Here's the Makefile ...<br>
> <br>
> 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}<br>
> <br>
> Thanks in advance.<br>
> <br>
> Tabrez<br>
> <br>
<br>
</blockquote></div>