charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Andy Somogyi <somogyie AT umail.iu.edu>
- To: charm AT cs.uiuc.edu
- Subject: [charm] charm++ as shared library
- Date: Tue, 23 Aug 2011 20:50:07 -0400
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Hi all,
trying to get a shared library built with charm++
Built charm++ with --enable-shared
after some serious hackery in the makefile, i.e. manually tracking down the
linkage dependencies and so forth, I finally got a .so built.
Now, down to one last problem:
libconv-core.so: undefined symbol: __executable_start
I'm building on x86_64 Linux, using gcc 4.1, only COPTS I have are -g -fPIC
This actually works on OSX, and get a fully functional shared lib.
I've also tried adding -L/MY_CHARM/charm/lib to the options below so the
linker would pick up the .a static libs, and this fails with an error of
mylib.so: undefined symbol: skt_connect
which is odd since this symbol is defined in libconv-util.a, with an nm
result of 0000000000000e51 T skt_connect
my make section essentially looks like:
mylib.so: $(INCDIR) $(DSTDIR) $(OBJS) $(LIBS)
$(CHARMC) -verbose -ld++-option \
"$(COPTI)$(CHARMINC) $(COPTI)$(INCDIR) $(COPTI)$(SRCDIR) $(CXXOPTS)" \
"$(CHARM_MODULES)" -language charm++ \
$(OBJS) \
$(PYTHONLIBS) \
obj/SharedLibModuleInit.o \
$(HOME)/opt/charm/lib/libmemory-default.o \
$(HOME)/opt/charm/lib/libthreads-default.o \
$(HOME)/opt/charm/lib/libldb-neighbor.o \
-lsupc++ -lstdc++ \
-lck -lconv-util -lconv-core -lconv-cplus-y \
-lm -o mylib.so
So, in any case, all I want is a shared lib (has to be a shared lib, it has
lots of python extension types) that includes code that used charm++. Does
not really matter if I statically or dynamically link with the charm++ libs.
Any ideas... please?
- [charm] charm++ as shared library, Andy Somogyi, 08/23/2011
- Re: [charm] [ppl] charm++ as shared library, Gengbin Zheng, 08/23/2011
Archive powered by MHonArc 2.6.16.