[petsc-dev] get moving on gnu make version of PETSc compiler

Satish Balay balay at mcs.anl.gov
Tue Sep 17 13:57:40 CDT 2013


On Tue, 17 Sep 2013, Satish Balay wrote:

> > >>>>>>>>>
> > 
> >           CC arch-linux2-c-debug/obj/src/ts/impls/implicit/alpha/alpha.o
> > src/snes/f90-mod/petscsnesmod.F:11.72:
> > 
> >         use petscksp                                                    
> >                                                                         1
> > Fatal Error: Can't open module file 'petscksp.mod' for reading at (1): No such file or directory
> > make[2]: *** [arch-linux2-c-debug/obj/src/snes/f90-mod/petscsnesmod.o] Error 1
> > make[2]: *** Waiting for unfinished jobs....
> > make[1]: *** [gnumake] Error 2
> > <<<<<<<

> > Perhaps the targets don't have the correct dependencies for these 'module' related sourcefiles?
> 
> Does the cmake build sequentialize the fortran part of the build [thus avoiding this issue?]

Adding in the following [partial] dependencies gets the build working
for me. But I'm not sure what the correct way to add this would be..

Satish

------

balay at petsc^/sandbox/balay/petsc.clone((4920dd4...)) $ git diff
diff --git a/gmakefile b/gmakefile
index bd3ef2e..543c229 100644
--- a/gmakefile
+++ b/gmakefile
@@ -134,6 +134,9 @@ $(OBJDIR)/%.o : %.cu | $$(@D)/.DIR
        $(PETSC_COMPILE.cu) $< -o $@ # Compile first so that if there is an error, it comes from a normal compile
        @$(PETSC_GENDEPS.cu) $< -o $(@:%.o=%.d) # Generate the dependencies for later
 
+$(OBJDIR)/src/snes/f90-mod/petscsnesmod.o:$(OBJDIR)/src/ksp/f90-mod/petsckspmod.o
+$(OBJDIR)/src/ts/f90-mod/petsctsmod.o:$(OBJDIR)/src/snes/f90-mod/petscsnesmod.o
+
 $(OBJDIR)/%.o : %.F | $$(@D)/.DIR
 ifeq ($(FC_MODULE_OUTPUT_FLAG),)
        cd $(PETSC_ARCH)/include && $(FC) -c $(FC_FLAGS) $(FFLAGS) $(FCPPFLAGS) $(FC_DEPFLAGS) ../../$< -o ../../$@




More information about the petsc-dev mailing list