Hai Chuan Wang <wangh...@cn.ibm.com> wrote on 10/28/2010 11:14:26 PM:
> Hi, > > I'm building a simple x10 app in my Cygwin environment. > In the C++ path, I used "-x10rt standalone" in x10c++. > The compilation has no problem, but I always need "runx10" to launch the > executable. > Otherwise, it throws the error > "0: xlupc transport: missing environment variable: MP_CHILD" > > Is there standalone runtime mode of C++ backend in X10 Cygwin? Hi, Hai Chuan, Yes, the standalone transport is available on Cygwin, but getting to it is somewhat tricky at the moment. The dynamic linker on some platforms, including Windows, needs to know in advance what libraries a particular shared library going to be referencing directly (rather than via dlopen). The Cygwin build chooses to link x10.dll with the default transport shared library, so even if you specify -x10rt standalone, the X10 library still links with pgas_sockets. This will be fixed eventually, but for now, you need to rebuild the X10 runtime shared library with standalone as the default transport. To do that, specify DEFAULT_X10RT_LIB=standalone when building on Cygwin. FYI, the default transport in the trunk has been switched to "sockets", which does not require runx10. Igor -- Igor Peshansky (note the spelling change!) IBM T.J. Watson Research Center X10: Parallel Productivity and Performance (http://x10-lang.org/) XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) "I hear and I forget. I see and I remember. I do and I understand" -- Xun Zi ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users