[AMBER] Amber12 parallel installation error

From: Kanin Wichapong <kanin.wichapong.gmail.com>
Date: Wed, 10 Dec 2014 15:43:05 +0100

Dear Amber Users,


 I tried to install parrallel version of Amber12. However, I got some
problems. First, I got the error;


 cifparse.c:180:7: error: format not a string literal and no format
arguments [-Werror=format-security]
fprintf(fp, null_char);
^


 I found the suggestion in the mailing list to change line 180 in
cifparse.c to fputs(null_char, fp); and recomplie. I did so, but then I had
a new error (exactly as in the mailing list);


 ChargeFit.c: In function ‘AssignGridTopologies’:

ChargeFit.c:80:7: error: format not a string literal and no format
arguments [-Werror=format-security]

sprintf(myfit->tpname.map[i], tp->source);

^

ChargeFit.c:82:2: error: format not a string literal and no format
arguments [-Werror=format-security]

sprintf(myfit->eprule.map[i], tp->eprulesource);

^

ChargeFit.c: In function ‘ReadEPotGrid’:

ChargeFit.c:328:10: warning: ignoring return value of ‘fgets’, declared
with attribute warn_unused_result [-Wunused-result]

fgets(line, 128, inp);

^

ChargeFit.c:346:9: warning: ignoring return value of ‘fscanf’, declared
with attribute warn_unused_result [-Wunused-result]

fscanf(inp, "%d%lf%lf%lf", &i, &lvec[0], &lvec[1], &lvec[2]);

^

ChargeFit.c:347:9: warning: ignoring return value of ‘fscanf’, declared
with attribute warn_unused_result [-Wunused-result]

fscanf(inp, "%d%lf%lf%lf", &j, &lvec[3], &lvec[4], &lvec[5]);

^

ChargeFit.c:348:9: warning: ignoring return value of ‘fscanf’, declared
with attribute warn_unused_result [-Wunused-result]

fscanf(inp, "%d%lf%lf%lf", &k, &lvec[6], &lvec[7], &lvec[8]);

^

ChargeFit.c:354:11: warning: ignoring return value of ‘fscanf’, declared
with attribute warn_unused_result [-Wunused-result]

fscanf(inp, "%d%lf%lf%lf%lf", &j, &nucchg[i], &crd->loc[3*i],

^

ChargeFit.c:369:8: warning: ignoring return value of ‘fscanf’, declared
with attribute warn_unused_result [-Wunused-result]

fscanf(inp, "%f", &ftmp[k]);


 I followed the advise in the mailing list by using command mpicc -show and
here is the output


 cc -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro
-I/usr/include/mpich -L/usr/lib/x86_64-linux-gnu -lmpich -lopa -lmpl -lrt
-lcr -lpthread

you give the suggestion to *remove the "-Werror=format-security". *However,
where (in which file) or how I can remove the "-Werror=format-security"? Or
Are there any other solutions to install the parallel version of Amber12?
Either using configure_mpich or configure_openmpi script in
$AMBERHOME/AmberTools/src,
I get the same error during installation of pallalel version of Amber12.


 Thank you in advance for your help and suggestions.


Best Regards,

Kanin Wichapong
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Dec 10 2014 - 07:00:02 PST
Custom Search