[petsc-users] error when trying to compile with HPDDM

Jose E. Roman jroman at dsic.upv.es
Fri Jan 6 03:09:18 CST 2023


This happens because you have typed 'make -j128'. If you just do 'make', PETSc will choose a reasonable value (-j59 in your case).

Satish: do we want to support this use case? Then a possible fix is:

diff --git a/config/BuildSystem/config/packages/slepc.py b/config/BuildSystem/config/packages/slepc.py
index b7c80930750..2688403f908 100644
--- a/config/BuildSystem/config/packages/slepc.py
+++ b/config/BuildSystem/config/packages/slepc.py
@@ -63,7 +63,7 @@ class Configure(config.package.Package):
     self.addMakeRule('slepcbuild','', \
                        ['@echo "*** Building SLEPc ***"',\
                           '@${RM} ${PETSC_ARCH}/lib/petsc/conf/slepc.errorflg',\
-                          '@(cd '+self.packageDir+' && \\\n\
+                          '+@(cd '+self.packageDir+' && \\\n\
            '+carg+self.python.pyexe+' ./configure --prefix='+prefix+' '+configargs+' && \\\n\
            '+barg+'${OMAKE} '+barg+') || \\\n\
              (echo "**************************ERROR*************************************" && \\\n\


> El 5 ene 2023, a las 21:06, Alfredo Jaramillo <ajaramillopalma at gmail.com> escribió:
> 
> Hi Pierre, no, I don't really need that flag. I removed it and the installation process went well. I just noticed a "minor" detail when building SLEPc:
> 
> "gmake[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule"
> 
> so the compilation of that library went slow.
> 
> Thanks,
> Alfredo



More information about the petsc-users mailing list