Dan Glick <d...@danielglick.com> wrote on 03/12/2013 01:55:29 AM:
>
> When I try to run a simple X10 program with X10_NPLACES=2, I get the
> error "unable to load x10rt_sockets" and two instances of the program
> run, each with place 0.
>
> I'm running x10-2.3.1_linx_x86 on a Fedora 17 VM; I compiled with the
> java back-end. I also tried compiling for C++, but got incompatible
> library errors; and I tried running x10dt on Windows, but that seemed to
> completely ignore NPLACES (whether set from the environment, or from the
> Eclipse run properties).
>
The libx10rt_sockets.so will be found in the lib directory of the X10
distribution (or in the lib directory of the
x10.dist.linux.x86_64.fragment_VERSION plugin in x10dt).
It is the same .so that is used by both the Java and C++ backends of X10.
If you are having incompatible library errors using the C++, then I would
expect you to have the same problems when trying to use the library with
the Java backend (the error message is being lost when the JVM attempt to
load the library, fails, and thus attempts to fall back on single place
execution).
In our distributions, we build the shared objects on a RHEL 6.x machine.
My guess is that you are missing compatibility libraries on Fedora17 to
work with RHEL 6 binaries. You could either install the missing
libraries, or rebuild X10 from source yourself (
http://www.x10-lang.org/x10-development/building-x10-from-source.html).
In either case, I would get the C++ backend working first (since the error
messages are more direct). Once the C++ backend is working on your system,
I would expect the library loading problem with the Java backend to also be
resolved.
--dave
> I confirmed that none of the jars that come with the distro seem to have
> x10rt_sockets, but I can't find anywhere else to download it. Any idea
> what I'm missing?
>
> Thanks,
> Dan
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users