Hello,
When I tried compiling a new version of amber11 checked out of the
tree today, it failed when trying to build pbsa (specifically
simplepbsa). It complained about multiple definitions of the "main"
function (one of which I believe is in a fortran compiler library)
(see error messages below).
make[3]: Leaving directory
`/lustre/scratch/swails/newamber/02.09.10/amber11/src/f2c'
ftn -o simplepbsa simplepbsa.o gopt.o libpbsa.a \
/lustre/scratch/swails/newamber/02.09.10/amber11/lib/libsff.a
../lib/nxtsec.o
/lustre/scratch/swails/newamber/02.09.10/amber11/lib/carpack.a
/lustre/scratch/swails/newamber/02.09.10/amber11/lib/lapack.a
/lustre/scratch/swails/newamber/02.09.10/amber11/lib/blas.a
/lustre/scratch/swails/newamber/02.09.10/amber11/lib/f2c.a
/opt/cray/xt-asyncpe/3.3/bin/ftn: INFO: linux target is being used
simplepbsa.o: In function `main':
./simplepbsa.c:16: multiple definition of `main'
/opt/pgi/9.0.3/linux86-64/9.0-3/lib/f90main.o:f90main.c:(.text+0x0):
first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 91 in
/opt/pgi/9.0.3/linux86-64/9.0-3/lib/f90main.o to 4031 in simplepbsa.o
make[2]: *** [simplepbsa] Error 2
make[2]: Leaving directory
`/lustre/scratch/swails/newamber/02.09.10/amber11/src/pbsa'
make[1]: *** [libpbsa] Error 2
make[1]: Leaving directory
`/lustre/scratch/swails/newamber/02.09.10/amber11/src/nab'
make: *** [serial] Error 2
This was done on kraken using the PGI compilers (ftn/cc are the cray
wrappers for pgf90 and pgcc). Using the intel 11 compilers on my
machine gave the same kind of error. It compiled just fine, however,
using the gnu compilers. The errors from the intel compilers are
shown below.
ifort -o simplepbsa simplepbsa.o gopt.o libpbsa.a \
/home/swails/newamber/02.09.10/amber11/lib/libsff.a ../lib/nxtsec.o
/home/swails/newamber/02.09.10/amber11/lib/carpack.a
/home/swails/newamber/02.09.10/amber11/lib/f2c.a
-L/opt/intel/Compiler/11.0/083/mkl/lib/em64t -Wl,--start-group
/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_lp64.a
/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_sequential.a
/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_core.a
-Wl,--end-group -lpthread -lsvml
simplepbsa.o: In function `main':
simplepbsa.c:(.text+0x0): multiple definition of `main'
/opt/intel/Compiler/11.0/083/lib/intel64/for_main.o:/export/users/nbtester/efi2linux_nightly/branch-11_0/20090319_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x0):
first defined here
/opt/intel/Compiler/11.0/083/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-11_0/20090319_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x38):
undefined reference to `MAIN__'
make[2]: *** [simplepbsa] Error 1
make[2]: Leaving directory `/home/swails/newamber/02.09.10/amber11/src/pbsa'
make[1]: *** [libpbsa] Error 2
make[1]: Leaving directory `/home/swails/newamber/02.09.10/amber11/src/nab'
make: *** [serial] Error 2
I know this is relatively new code, so I don't want to go messing
around trying to find a solution and wind up breaking something else.
Any ideas?
Thanks!
Jason
--
---------------------------------------
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Tue Feb 09 2010 - 11:00:02 PST