Hi,
I fixed build errors when making parallel ambertools by removing decomp.o
in addition to decomp.mod in target libFpbsa.a:
libFpbsa.a: sanderdecomp.mod $(SANDERPBSAOBJS)
$(AR) libFpbsa.a $(SANDERPBSAOBJS)
$(RANLIB) libFpbsa.a
/bin/mv libFpbsa.a $(LIBDIR)
/bin/rm -f decomp.o decomp.mod
scott --------^^^^^^^^
sanderdecomp.mod: /bin/rm -f decomp.o decomp.mod
/bin/cp ../../../src/sander/decomp.mod .
This is a simple fix, but why was there symmetry breaking
between decomp.o and decomp.mod ?
What is the purpose of the strange target sanderdecomp.mod ?
Why not have pb_direct.o and pb_write.o depend directly on decomp.o
and on decomp.mod ?
scott
make[2]: Leaving directory `/tmp/pbstmp.4373894/amber/AmberTools/src/sff'
cd ../pbsa; make libinstall
make[2]: Entering directory `/tmp/pbstmp.4373894/amber/AmberTools/src/pbsa'
...
cpp -traditional -P -DBINTRAJ -DMPI -I/usr/local/mpi/mvapich2-1.5-gnu/include -DPBSA pb_direct.f > _pb_direct.f
mpif90 -c -O3 -ffree-form -o pb_direct.o _pb_direct.f
In file _pb_direct.f:287
use decomp, only: decpair
1
Fatal Error: Can't open module file 'decomp.mod' for reading at (1): No such file or directory
make[2]: [pb_direct.o] Error 1 (ignored)
...
cpp -traditional -P -DBINTRAJ -DMPI -I/usr/local/mpi/mvapich2-1.5-gnu/include -DPBSA pb_write.f > _pb_write.f
mpif90 -c -O3 -ffree-form -o pb_write.o _pb_write.f
In file _pb_write.f:452
use decomp, only: checkdec, printdec, printpdec
1
Fatal Error: Can't open module file 'decomp.mod' for reading at (1): No such file or directory
make[2]: [pb_write.o] Error 1 (ignored)
...
ar rv libpbsa.a interface.o pbsaapi.o myopen.o pb_read.LIBPBSA.o pb_force.o sa_driver.o pb_nlsolver.o pb_lsolver.o dsvdc.o timer.o pb_init.o pb_exmol.o np_force.o pb_direct.o pb_list.o pb_write.o pb_mpfrc.o decomp.o rgroup.o rfree.o
ar: creating libpbsa.a
ar: pb_direct.o: No such file or directory
...
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Sat Nov 06 2010 - 14:00:03 PDT