Hi John,

As shown in the following from x10.runtime/build.xml, compiling x10 source
is done by x10.dist/bin/x10c command.

<arg value="'${x10.dist.location}/bin/x10c' -J-Xmx1024M ${x10c.optimize}
${x10c.experimental} ${x10c.eliminate_dead_variables}
${x10c.copy_propagation} ${x10c.no_checks} -d '${gen}' -J-ea -rtdev
-sourcepath . -STATIC_CHECKS -commandlineonly -c @'${xrx.filelist}'" />

x10c command is generated before building x10.runtime and if you see the
following lines in the command, there should be no problem.
ANTLR_JAR='antlr-runtime_4.5.0.201505151407.jar'
classpath="${classpath}${LIB_DIR}${FILE_SEP}x10c.jar${PATH_SEP}${LIB_DIR}${FILE_SEP}${LPG_JAR}${PATH_SEP}${LIB_DIR}${FILE_SEP}${ANTLR_JAR}${PATH_SEP}${WALA_JARS}"

In case you don't see them, what happens if you try "ant clean" first.

-- Mikio

2016-06-28 4:53 GMT+09:00 John Robinson <jsro...@gmail.com>:

>
> 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
>
>
------------------------------------------------------------------------------
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

Reply via email to