Re: NAMD related

From: Anilkumar Naik (anilkumar.j.naik_at_gmail.com)
Date: Tue Jun 11 2013 - 02:20:42 CDT

Hi,

How to change below "xlc" with "gcc"? I mean, what all we need to change
in-order to use "gcc".

==========================
NAMD_ARCH = Linux-PPC
CHARMARCH = net-linux-ppc-smp-xlc64
CXX = xlC -q64 -D_NO_MALLOC_H #-DMEMUSAGE_USE_MSTATS
CXXOPTS = -O3 -qnohot -DCMK_OPTIMIZE
CXXTHREADOPTS =
CC = xlc -q64
COPTS = -O3
=======================

Thanks for help.

Regards,
Anilkumar

On Tue, Jun 11, 2013 at 12:44 PM, Anilkumar Naik <anilkumar.j.naik_at_gmail.com
> wrote:

> Hi,
>
> I did testing with a small program:
> test.c:
> nt main(int argc, char **argv)
> {
> Tcl_Main(argc, argv, 0);
> return 0;
> }
>
> 1)
> xlc test.c -L/usr/lib64 -ltcl8.5 -ldl
>
> /usr/bin/ld: skipping incompatible /usr/lib64/libtcl8.5.so when searching
> for -ltcl8.5
> /usr/bin/ld: skipping incompatible /usr/lib64/libtcl8.5.so when searching
> for -ltcl8.5
> /usr/bin/ld: cannot find -ltcl8.5
>
> 2)
> $cc test.c -L/usr/lib64 -ltcl8.5 -ldl
> $ls
> a.out
>
> 3)
> gcc test.c -L/usr/lib64 -ltcl8.5 -ldl
> $ls
> a.out
>
> May be xlc is skipping incompatible libtcl8.5.so?
>
> Regards,
> Anilkumar
>
>
>
>
> On Tue, Jun 11, 2013 at 12:13 PM, Anilkumar Naik <
> anilkumar.j.naik_at_gmail.com> wrote:
>
>> Hi,
>>
>> Sorry for repeated query. But this is necessary to inform all of you the
>> problem. So can experts rectify our mistakes.
>>
>> TCL installaed packages:
>> rpm -qa | grep tcl
>> tcl-8.5.7-6.el6.ppc64
>> tcl-devel-8.5.7-6.el6.ppc64
>> tcl-pgtcl-1.6.2-3.el6.ppc64
>>
>>
>> Below error at psfgen.o:
>> =============================
>> xlc -q64 -Isb/src -Iplugins/include -DSTATIC_PLUGIN -DPSFGEN_USEPLUGINS
>> -I/usr/include -DNAMD_TCL -O3 -DNAMD_VERSION=\"CVS-2013-06-10\"
>> -DNAMD_PLATFORM=\"Linux-PPC-smp\" -DREMOVE_PROXYRESULTMSG_EXTRACOPY
>> -DNODEAWARE_PROXY_SPANNINGTREE -DUSE_NODEPATCHMGR -o psfgen obj/tcl_main.o
>> obj/tcl_psfgen.o obj/charmm_file.o obj/charmm_parse_topo_defs.o
>> obj/extract_alias.o obj/hash.o obj/hasharray.o obj/memarena.o
>> obj/pdb_file.o obj/pdb_file_extract.o obj/psf_file.o obj/psf_file_extract.o
>> obj/topo_defs.o obj/topo_mol.o obj/topo_mol_output.o
>> obj/topo_mol_pluginio.o obj/stringhash.o obj/dcdplugin.o obj/jsplugin.o
>> obj/namdbinplugin.o obj/pdbplugin.o obj/psfplugin.o -L/usr/lib64/
>> libtcl8.5.so -ldl -lm^M
>> obj/tcl_main.o:(.text+0x14): undefined reference to `Tcl_Main'^M
>> obj/tcl_psfgen.o:(.text+0x38): undefined reference to `Tcl_Merge'^M
>> ==============================
>>
>> Regards,
>> Anilkumar
>>
>>
>> On Tue, Jun 11, 2013 at 10:46 AM, Anilkumar Naik <
>> anilkumar.j.naik_at_gmail.com> wrote:
>>
>>> Thanks for reply.
>>>
>>> TCL installed and LD_LIBRARY_PATH is set. But still having these errors--001a11c1de8e1d571204dedbbc61--

This archive was generated by hypermail 2.1.6 : Wed Dec 31 2014 - 23:21:17 CST