Re: Compiling on Linux-PPC970-Myrinet-MPI-xlC

From: Chris Samuel (csamuel_at_vpac.org)
Date: Wed Mar 16 2005 - 04:37:07 CST

Gengbin wrote:

> How about comment out the top 3 lines in src/CollectionMaster.C:

That's exactly what I meant by disabling LFS, and it worked a treat,
that file now compiles. :-)

Unfortunately it now bombs out trying to compile ComputeTclBC.C, but
I'm at home now and not supposed to be working, so it'll have to wait
for tomorrow now!

I'm trying to build against the SuSE supplied tcl-devel RPM,
tcl-devel-8.4.6-26.3 .

Here's what the compiler whinges about:

mpiCC -I/usr/local/src/NAMD/NAMD2-CVS/charm/mpi-linux-ppc64-gm2-xlc64/include -DCMK_OPTIMIZE=1 -Isrc -Iinc -I/Projects/namd2/plugins/LINUXPPC64 -I/Projects/namd2/plugins/LINUXPPC64/molfile -I/Projects/namd2/plugins/include -I/root/plugins/LINUXPPC64 -I/root/plugins/LINUXPPC64/molfile -I/root/plugins/include -DNAMD_PLUGINS -DNAMD_TCL -DNAMD_FFTW -DNAMD_VERSION=\"2.5\" -DNAMD_PLATFORM=\"Linux-ppc64-MPI\" -O0 -q64 -qnowarn64 -DNO_STRSTREAM_H -o obj/ComputeTclBC.o -c src/ComputeTclBC.C
"src/ComputeTclBC.C", line 36.38: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char *[])".
"src/ComputeTclBC.C", line 36.38: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 38.41: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char *[])".
"src/ComputeTclBC.C", line 38.41: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 42.39: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char *[])".
"src/ComputeTclBC.C", line 42.39: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 44.39: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char *[])".
"src/ComputeTclBC.C", line 44.39: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 46.41: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char *[])".
"src/ComputeTclBC.C", line 46.41: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 48.40: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char **)".
"src/ComputeTclBC.C", line 48.40: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 50.41: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char **)".
"src/ComputeTclBC.C", line 50.41: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 52.44: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char **)".
"src/ComputeTclBC.C", line 52.44: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 54.42: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char **)".
"src/ComputeTclBC.C", line 54.42: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 56.45: 1540-0256 (S) A parameter of type "extern "C" int (*)(void *, Tcl_Interp *, int, const char **)" cannot be initialized with an expression of type "int (ClientData, Tcl_Interp *, int, char **)".
"src/ComputeTclBC.C", line 56.45: 1540-1205 (I) The error occurred while converting to parameter 3 of "Tcl_CreateCommand(Tcl_Interp *, const char *, extern "C" int (*)(void *, Tcl_Interp *, int, const char **), ClientData, extern "C" void (*)(void *))".
"src/ComputeTclBC.C", line 62.39: 1540-0257 (S) An object or reference of type "char *" cannot be initialized with an expression of type "const char *".
"src/ComputeTclBC.C", line 65.35: 1540-0257 (S) An object or reference of type "char *" cannot be initialized with an expression of type "const char *".
"src/ComputeTclBC.C", line 121.33: 1540-0257 (S) An object or reference of type "char *" cannot be initialized with an expression of type "const char *".
"/usr/include/g++/bits/sstream.tcc", line 57.76: 1540-2908 (W) The subscript -1 is less than zero. The subscript of an array should be greater than or equal to zero.
"/usr/include/g++/bits/sstream.tcc", line 46.5: 1540-0700 (I) The previous message was produced while processing "std::basic_stringbuf<char,std::char_traits<char>,std::allocator<char> >::pbackfail(int_type)".
"/usr/include/g++/sstream", line 62.11: 1540-0700 (I) The previous message was produced while processing "class std::basic_stringbuf<char,std::char_traits<char>,std::allocator<char> >".
"/usr/include/g++/sstream", line 407.11: 1540-0700 (I) The previous message was produced while processing "class std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char> >".
"src/InfoStream.h", line 32.7: 1540-0700 (I) The previous message was produced while processing "class infostream".
make: *** [obj/ComputeTclBC.o] Error 1

cheers!
Chris

-- 
 Christopher Samuel - (03)9925 4751 - VPAC Systems & Network Admin
 Victorian Partnership for Advanced Computing http://www.vpac.org/
 Bldg 91, 110 Victoria Street, Carlton South, VIC 3053, Australia

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:40:36 CST