Re: compile error on amd64 in src/ComputeTclBC.C

From: Sabuj Pattanayek (sabuj.pattanayek_at_vanderbilt.edu)
Date: Wed Mar 15 2006 - 15:54:02 CST

Thanks that worked. Also I found that namd doesn't like the
--enable-threads configure option for amd64 / x86_64, it works for x86
however. So I had to recompile mpich2 and then charm++ .

Gengbin Zheng wrote:
>
> try adding
> -DUSE_NON_CONST
> to TCLFLAGS
> in namd2/arch/Linux-amd64.tcl
>
> Gengbin
>
> Sabuj Pattanayek wrote:
>
>> Hi,
>>
>> I got a compile error this time on a different platform, amd64:
>>
>> -O2 -m64 -fexpensive-optimizations -ffast-math -o obj/ComputeTclBC.o
>> -c src/ComputeTclBC.C
>> src/ComputeTclBC.C: In constructor
>> `ComputeTclBC::ComputeTclBC(ComputeID)':
>> src/ComputeTclBC.C:37: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:37: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:39: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:39: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:43: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:43: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:45: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:45: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:47: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:47: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:49: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:49: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:51: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:51: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:53: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:53: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:55: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:55: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:57: error: invalid conversion from `int (*)(void*,
>> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
>> char**)'
>> src/ComputeTclBC.C:57: error: initializing argument 3 of
>> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
>> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
>> src/ComputeTclBC.C:62: error: invalid conversion from `const char*' to
>> `char*'
>> src/ComputeTclBC.C:65: error: invalid conversion from `const char*' to
>> `char*'
>> src/ComputeTclBC.C: In member function `virtual void
>> ComputeTclBC::doWork()':
>> src/ComputeTclBC.C:121: error: invalid conversion from `const char*'
>> to `char*'
>> make: *** [obj/ComputeTclBC.o] Error 1
>
>
>

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:41:45 CST