I was not able to build x10 (with CUDA support) without modifying the file "
x10/x10.runtime/build.xml
<https://github.com/x10-lang/x10/blob/SF_RELEASE_2_6_0/x10.runtime/build.xml>"
.
The error that was generated during build (ant -DX10RT_CUDA=true
-Doptimize=true -DCUDA dist xrx-xdoc) was:
*
*
gen-xrx:
[echo] Building Java sources for XRX
[echo] Compiling X10 source files x10/array/Array.x10 .....
*
*
[echo] x10c -O @/tmp/XRXChanges1207263189
[exec] Exception in thread "main" java.lang.Error: Unresolved
compilation problems:
[exec] The import org.antlr cannot be resolved
*
*
To build without errors it was necessary to add the following to lines to
"x10/x10.runtime/build.xml" :
<property name="antlr.jar"
value="${lib}/antlr-runtime_4.5.0.201505151407.jar"/>
<pathelement path="${antlr.jar}"/>
The context diff (git diff x10.runtime/build.xml) is as follows:
diff --git a/x10.runtime/build.xml b/x10.runtime/build.xml
index 901c1ab..69da868 100644
--- a/x10.runtime/build.xml
+++ b/x10.runtime/build.xml
@@ -22,6 +22,7 @@
<property name="math.jar" value="${lib}/commons-math3-3.5.jar"/>
<property name="log.jar" value="${lib}/commons-logging-1.2.jar"/>
<property name="hazelcast.jar" value="${lib}/hazelcast-3.3.1.jar"/>
*+ <property name="antlr.jar"
value="${lib}/antlr-runtime_4.5.0.201505151407.jar"/>*
<property name="shrike.jar"
value="${lib}/com.ibm.wala.shrike_1.3.1.201101071300.jar"/>
<property name="bdwgc.dir"
location="${basedir}/src-cpp/bdwgc-${bdwgc.version}"/>
<property name="bdwgc.tar" value="bdwgc-${bdwgc.version}.tar.gz"/>
@@ -48,6 +49,7 @@
<pathelement path="${math.jar}"/>
<pathelement path="${log.jar}"/>
<pathelement path="${hazelcast.jar}"/>
*+ <pathelement path="${antlr.jar}"/>*
</path>
<path id="mainproject.classpath">
<pathelement location="${build}"/>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users