[CPMD-list] compiling warings but it works
Axel Kohlmeyer
akohlmey at cmm.chem.upenn.edu
Sat Mar 24 17:01:18 CET 2007
On Sat, 24 Mar 2007, liu liuxiandong wrote:
LL> Dear all,
LL>
LL> I make CPMD-3.11.1 on Xeon-CPU linux cluster, and got the following
LL> warnings. But the compilation is successful and the cpmd.x indeed works for
LL> several tests. I am not sure what the warings mean. Thanks for any
LL> suggestions.
it means, that the c-code in CPMD is written in the old
so-called K&R style (i.e. pre-ANSI) syntax for maximum
compatibility. by now all reasonable machines should be
supporting ANSI C, so this would no longer be needed, but
as usual, it would need some volunteers to change and test
it. those warnings, however, are harmless (for as long as
all ANSI C compilers still support K&R style).
cheers,
axel.
LL> Best.
LL>
LL>
LL> The CONFIGURE content is,
LL>
LL> #INFO#
LL> IRAT=2
LL> CFLAGS='-O3 -Wall'
LL> CPP='/lib/cpp -P -C -traditional'
LL> CPPFLAGS='-D__Linux -D__PGI -DFFT_DEFAULT -DPOINTER8 \
LL> -DPARALLEL -DMYRINET -DLINUX_IFC -DMP_LIBRARY=__MPI
LL> -DINTEL_MKL'
LL> FFLAGS='-c -w90 -w95 -O3 -unroll -tpp7 -cm'
LL> LFLAGS='-static-libcxa -Xlinker -Bstatic -lsvml
LL> -L/opt/intel/mpi/2.0/lib64 -lmpi -L/opt/intel/cmkl/8.0/lib/em64t
LL> -lmkl_lapack -lmkl_em64t -lguide -Vaxlib -Xlinker -Bdynamic -lpthread'
LL> FFLAGS_GROMOS=' $(FFLAGS)'
LL> if [ $debug ]; then
LL> FC='mpiifort -c -g'
LL> CC='mpiicc -g -Wall'
LL> LD='mpiifort -g'
LL> else
LL> FC='mpiifort -c '
LL> CC='mpiicc'
LL> LD='mpiifort -i-static'
LL> fi
LL> -------------------------------------------------------------------------------------------
LL> The warings are,
LL>
LL> ./sysdepend.c(57): remark #1418: external definition with no prior
LL> declaration
LL> double derf_(double *value)
LL> ^
LL>
LL> ./sysdepend.c(59): remark #310: old-style parameter list (anachronism)
LL> double erf();
LL> ^
LL>
LL> ./sysdepend.c(59): remark #1419: external declaration in primary source file
LL> double erf();
LL> ^
LL>
LL> ./sysdepend.c(63): remark #1418: external definition with no prior
LL> declaration
LL> double derfc_(double *value)
LL> ^
LL>
LL> ./sysdepend.c(65): remark #310: old-style parameter list (anachronism)
LL> double erfc();
LL> ^
LL>
LL> ./sysdepend.c(65): remark #1419: external declaration in primary source file
LL> double erfc();
LL> ^
LL>
LL> ./sysdepend.c(415): remark #1418: external definition with no prior
LL> declaration
LL> void silentstdout_(void)
LL> ^
LL>
LL> ./sysdepend.c(446): remark #1418: external definition with no prior
LL> declaration
LL> void printmemsize_(void)
LL> ^
LL>
LL> ./sysdepend.c(503): remark #1418: external definition with no prior
LL> declaration
LL> double timef_() {
LL> ^
LL>
LL> ./sysdepend.c(552): remark #310: old-style parameter list (anachronism)
LL> const char *s;
LL> ^
LL>
LL> ./sysdepend.c(553): remark #310: old-style parameter list (anachronism)
LL> const int sz;
LL> ^
LL>
LL> ./sysdepend.c(551): remark #1418: external definition with no prior
LL> declaration
LL> char *f77strdup(s,sz)
LL> ^
LL>
LL> ./sysdepend.c(565): remark #310: old-style parameter list (anachronism)
LL> char *n;
LL> ^
LL>
LL> ./sysdepend.c(566): remark #310: old-style parameter list (anachronism)
LL> int sz;
LL> ^
LL>
LL> ./sysdepend.c(564): remark #1418: external definition with no prior
LL> declaration
LL> void rmfile_(n,sz)
LL> ^
LL>
LL> ./sysdepend.c(570): remark #180: argument is incompatible with formal
LL> parameter
LL> name = f77strdup(n,sz);
LL> ^
LL>
LL> ./sysdepend.c(583): remark #310: old-style parameter list (anachronism)
LL> const char *o;
LL> ^
LL>
LL> ./sysdepend.c(584): remark #310: old-style parameter list (anachronism)
LL> const char *n;
LL> ^
LL>
LL> ./sysdepend.c(585): remark #310: old-style parameter list (anachronism)
LL> int os;
LL> ^
LL>
LL> ./sysdepend.c(586): remark #310: old-style parameter list (anachronism)
LL> int ns;
LL> ^
LL>
LL> ./sysdepend.c(582): remark #1418: external definition with no prior
LL> declaration
LL> void cpfile_(o, n, os, ns)
LL> ^
LL>
LL> ./sysdepend.c(600): remark #1682: implicit conversion of a 64-bit integral
LL> type to a smaller integral type (potential portability problem)
LL> sz = fread(iobuf, 1, IOBUFSIZE, op);
LL>
LL> CLOSURE
LL>
--
=======================================================================
Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu http://www.cmm.upenn.edu
Center for Molecular Modeling -- University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.
More information about the CPMD-list
mailing list