[petsc-users] Superlu_dist installation problem

Satish Balay balay at mcs.anl.gov
Tue Mar 10 00:37:13 CDT 2015


Superlu_dist requires the following patch to work with '-Werror=format-security' compiler option..

Satish

------------

$ git diff SRC/memory.c
diff --git a/SRC/memory.c b/SRC/memory.c
index a9dcee5..902cbd1 100755
--- a/SRC/memory.c
+++ b/SRC/memory.c
@@ -36,7 +36,7 @@ superlu_abort_and_exit_dist(char *msg)
 {
     /*fprintf(stderr, msg);
     fflush(stderr);*/
-    printf(msg);
+    printf("%s",msg);
     exit (-1);
 }

On Tue, 10 Mar 2015, Michele Rosso wrote:

> Hi,
> 
> I tried to install petsc-3.5.3 + superlu_dist using the attached script
> that used to work.
> Now the configure fails because of superlu_dist (see attached
> configure.log).
> What am I doing wrong?
> 
> Thanks,
> Michele
> 
> 



More information about the petsc-users mailing list