Compile PETSc with AMBER

Satish Balay balay at mcs.anl.gov
Tue Sep 16 14:37:46 CDT 2008


You can try using the following to avoid duplicate targets in PETSc
and AMBER. The previous AMBER targets should continue to work after
this change.

include ${PETSC_DIR}/bmake/common/variables

Satish


On Tue, 16 Sep 2008, Chen, Changjun wrote:

> Dear Sir,
>      I am Changjun Chen in Michigan State University, as a postdoc in Prof. Guowei's group in Mathematics department.
> Today I try to compile PETSc with AMBER (Molecular Simulation Package), but failed. When I add one line into Makefile of AMBER, like the following
> 
> include ${PETSC_DIR}/bmake/common/base
> 
> I got the error message:
> 
> ../config.h:82: warning: overriding commands for target `.f.o'
> /home/cjchen/soft/petsc/bmake/linux-gnu-c-debug/petscrules:18: warning: ignoring old commands for target `.f.o'
> ../config.h:86: warning: overriding commands for target `.c.o'
> /home/cjchen/soft/petsc/bmake/common/rules:269: warning: ignoring old commands for target `.c.o'
> Makefile:275: warning: overriding commands for target `clean'
> /home/cjchen/soft/petsc/bmake/common/rules:95: warning: ignoring old commands for target `clean'
> 
> It seems some compile rules in PETSc are repeated in AMBER, now no code could be compiled, even for those belong to AMBER themselves.
> Could you kindly give me some suggestion?
> Thank you!
> 
> Sincerely,
> Changjun
> 
> 




More information about the petsc-users mailing list