Hi, Liu,

It's a permission problem.  When you unzip the zipped sources on a linux
platform like triloka2, it's unable to set perms properly for compiler
driver files like x10.dist/bin/x10c++.  You can do either of the following
two things to resolve this:

1) after unzipping the sources but before building the x10v2.0.6 compiler
use chmod command to set execute permission on all the relevant files in
various bin directories, like --

> chmod 755 x10.dist/bin/x10c++

2) do svn checkout on a platform like triloka2 instead of using zipped
sources --

> for module in x10.common x10.dist x10.constraints x10.runtime x10.compiler
do
svn co http://x10.svn.sf.net/svnroot/x10/tags/SF_RELEASE_2_0_6/$module
done

This process ensures that all file perms are set as per build requirements.

Thank You.

-- Sreedhar

On Mon, Sep 13, 2010 at 1:24 PM, Zhi Yu Liu <liuzh...@cn.ibm.com> wrote:

> I got an error while build the x10-2.0.6 with command "ant dist
> -DX10RT_MPI=true" on triloka2.
> I download the source  tarball from
>
> http://sourceforge.net/projects/x10/files/x10/2.0.6/x10-2.0.6-src.zip/download
>
> Does anyone encounter the same problem or know how to fix it?
>
> Many thanks!
>
> The error is :
>
> build-cpp:
>     [exec] Regenerating XRX cc/h/inc files
>     [exec] mkdir -p gen
>     [exec] "/gsa/yktgsa-h2/19/zhiyu/x10-2.0.6/x10.dist"/bin/x10c++ -c
> -J-Xmx1024M -J-ea -rtdev -commandlineonly -sourcepath ../src-x10 -d
> ../src-cpp/gen \
>     [exec]         ../src-x10/x10/array/Array.x10
> ../src-x10/x10/array/BaseDist.x10 ../src-x10/x10/array/DistArray.x10
> ../src-x10/x10/array/Dist.x10 ../src-x10/x10/array/EmptyRegion.x10
> ../src-x10/x10/array/FullRegion.x10 ../src-x10/x10/array/MatBuilder.x10
> ../src-x10/x10/array/Mat.x10 ../src-x10/x10/array/Point.x10
> ../src-x10/x10/array/PolyMatBuilder.x10 ../src-x10/x10/array/PolyMat.x10
> ../src-x10/x10/array/PolyRegion.x10 ../src-x10/x10/array/PolyRow.x10
> ../src-x10/x10/array/PolyScanner.x10 ../src-x10/x10/array/RectLayout.x10
> ../src-x10/x10/array/RectRegion.x10 ../src-x10/x10/array/Region.x10
> ../src-x10/x10/array/Row.x10
> ../src-x10/x10/array/UnboundedRegionException.x10
> ../src-x10/x10/array/ValRow.x10 ../src-x10/x10/array/VarMat.x10
> ../src-x10/x10/array/VarRow.x10 ../src-x10/x10/compiler/ByRef.x10
> ../src-x10/x10/compiler/CUDADirectParams.x10
> ../src-x10/x10/compiler/CUDAUtilities.x10 ../src-x10/x10/compiler/CUDA.x10
> ../src-x10/x10/compiler/Header.x10 ../src-x10/x10/compiler/Immediate.x10
> ../src-x10/x10/compiler/InlineOnly.x10 ../src-x10/x10/compiler/Inline.x10
> ../src-x10/x10/compiler/Mutable.x10
> ../src-x10/x10/compiler/NativeClass.x10
> ../src-x10/x10/compiler/NativeCPPCompilationUnit.x10
> ../src-x10/x10/compiler/NativeCPPInclude.x10
> ../src-x10/x10/compiler/NativeCPPOutputFile.x10
> ../src-x10/x10/compiler/NativeDef.x10
> ../src-x10/x10/compiler/NativeRep.x10
> ../src-x10/x10/compiler/NativeString.x10
> ../src-x10/x10/compiler/Native.x10 ../src-x10/x10/compiler/NoInline.x10
> ../src-x10/x10/compiler/NoReturn.x10
> ../src-x10/x10/compiler/NoSuperCall.x10 ../src-x10/x10/compiler/Ops.x10
> ../src-x10/x10/compiler/Ref.x10
> ../src-x10/x10/compiler/RemoteOperation.x10
> ../src-x10/x10/compiler/SetOps.x10 ../src-x10/x10/compiler/Shared.x10
> ../src-x10/x10/compiler/StackAllocate.x10
> ../src-x10/x10/compiler/Transient.x10
> ../src-x10/x10/compiler/Uncounted.x10
> ../src-x10/x10/compiler/Uninitialized.x10
> ../src-x10/x10/compiler/Unroll.x10 ../src-x10/x10/io/ByteRailWriter.x10
> ../src-x10/x10/io/ByteValRailWriter.x10 ../src-x10/x10/io/ByteWriter.x10
> ../src-x10/x10/io/Console.x10 ../src-x10/x10/io/EOFException.x10
> ../src-x10/x10/io/FileNotFoundException.x10
> ../src-x10/x10/io/FileReader.x10 ../src-x10/x10/io/FileSystem.x10
> ../src-x10/x10/io/FileWriter.x10 ../src-x10/x10/io/File.x10
> ../src-x10/x10/io/FilterReader.x10 ../src-x10/x10/io/FilterWriter.x10
> ../src-x10/x10/io/InputStreamReader.x10 ../src-x10/x10/io/IOException.x10
> ../src-x10/x10/io/IORuntimeException.x10 ../src-x10/x10/io/Marshal.x10
> ../src-x10/x10/io/OutputStreamWriter.x10 ../src-x10/x10/io/Printer.x10
> ../src-x10/x10/io/PutbackReader.x10 ../src-x10/x10/io/Readable.x10
> ../src-x10/x10/io/ReaderIterator.x10 ../src-x10/x10/io/Reader.x10
> ../src-x10/x10/io/StringWriter.x10 ../src-x10/x10/io/Writable.x10
> ../src-x10/x10/io/Writer.x10 ../src-x10/x10/lang/Activity.x10
> ../src-x10/x10/lang/annotations/Annotation.x10
> ../src-x10/x10/lang/annotations/ClassAnnotation.x10
> ../src-x10/x10/lang/annotations/ExpressionAnnotation.x10
> ../src-x10/x10/lang/annotations/FieldAnnotation.x10
> ../src-x10/x10/lang/annotations/ImportAnnotation.x10
> ../src-x10/x10/lang/annotations/MethodAnnotation.x10
> ../src-x10/x10/lang/annotations/PackageAnnotation.x10
> ../src-x10/x10/lang/annotations/StatementAnnotation.x10
> ../src-x10/x10/lang/annotations/TypeAnnotation.x10
> ../src-x10/x10/lang/Any.x10 ../src-x10/x10/lang/ArithmeticException.x10
> ../src-x10/x10/lang/Arithmetic.x10
> ../src-x10/x10/lang/ArrayIndexOutOfBoundsException.x10
> ../src-x10/x10/lang/BadPlaceException.x10 ../src-x10/x10/lang/Bitwise.x10
> ../src-x10/x10/lang/Boolean.x10 ../src-x10/x10/lang/Byte.x10
> ../src-x10/x10/lang/Cell.x10 ../src-x10/x10/lang/Char.x10
> ../src-x10/x10/lang/ClassCastException.x10
> ../src-x10/x10/lang/ClockUseException.x10 ../src-x10/x10/lang/Clock.x10
> ../src-x10/x10/lang/Comparable.x10 ../src-x10/x10/lang/Complex.x10
> ../src-x10/x10/lang/Deque.x10 ../src-x10/x10/lang/Double.x10
> ../src-x10/x10/lang/Error.x10 ../src-x10/x10/lang/Exception.x10
> ../src-x10/x10/lang/flat.x10 ../src-x10/x10/lang/Float.x10
> ../src-x10/x10/lang/Future.x10 ../src-x10/x10/lang/IllegalArgumentExc
> eption.x10 ../src-x10/x10/lang/IllegalOperationException.x10
> ../src-x10/x10/lang/Indexable.x10
> ../src-x10/x10/lang/InterruptedException.x10 ../src-x10/x10/lang/Int.x10
> ../src-x10/x10/lang/Iterable.x10 ../src-x10/x10/lang/Iterator.x10
> ../src-x10/x10/lang/Long.x10 ../src-x10/x10/lang/Math.x10
> ../src-x10/x10/lang/MultipleExceptions.x10
> ../src-x10/x10/lang/NullPointerException.x10
> ../src-x10/x10/lang/NumberFormatException.x10
> ../src-x10/x10/lang/Object.x10 ../src-x10/x10/lang/OutOfMemoryError.x10
> ../src-x10/x10/lang/PlaceLocalHandle.x10 ../src-x10/x10/lang/Place.x10
> ../src-x10/x10/lang/Rail__NativeRep.x10 ../src-x10/x10/lang/Rail.x10
> ../src-x10/x10/lang/Reducible.x10 ../src-x10/x10/lang/RuntimeException.x10
> ../src-x10/x10/lang/Runtime.x10 ../src-x10/x10/lang/Settable.x10
> ../src-x10/x10/lang/Short.x10 ../src-x10/x10/lang/String.x10
> ../src-x10/x10/lang/System.x10 ../src-x10/x10/lang/Throwable.x10
> ../src-x10/x10/lang/UByte.x10 ../src-x10/x10/lang/UInt.x10
> ../src-x10/x10/lang/ULong.x10
> ../src-x10/x10/lang/UnsupportedOperationException.x10
> ../src-x10/x10/lang/UShort.x10 ../src-x10/x10/lang/ValRail__NativeRep.x10
> ../src-x10/x10/lang/ValRail.x10 ../src-x10/x10/lang/_.x10
> ../src-x10/x10/util/AbstractCollection.x10
> ../src-x10/x10/util/AbstractContainer.x10
> ../src-x10/x10/util/ArrayList.x10 ../src-x10/x10/util/Box.x10
> ../src-x10/x10/util/Builder.x10 ../src-x10/x10/util/CollectionIterator.x10
> ../src-x10/x10/util/Collection.x10
> ../src-x10/x10/util/concurrent/atomic/AtomicBoolean.x10
> ../src-x10/x10/util/concurrent/atomic/AtomicInteger.x10
> ../src-x10/x10/util/concurrent/atomic/AtomicLong.x10
> ../src-x10/x10/util/concurrent/atomic/AtomicReference.x10
> ../src-x10/x10/util/concurrent/atomic/Fences.x10
> ../src-x10/x10/util/Container.x10 ../src-x10/x10/util/DistributedRail.x10
> ../src-x10/x10/util/GrowableRail.x10 ../src-x10/x10/util/HashMap.x10
> ../src-x10/x10/util/HashSet.x10
> ../src-x10/x10/util/IndexedMemoryChunk__NativeRep.x10
> ../src-x10/x10/util/IndexedMemoryChunk.x10 ../src-x10/x10/util/Indexed.x10
> ../src-x10/x10/util/ListIterator.x10 ../src-x10/x10/util/List.x10
> ../src-x10/x10/util/MapIterator.x10 ../src-x10/x10/util/MapSet.x10
> ../src-x10/x10/util/Map.x10 ../src-x10/x10/util/NoSuchElementException.x10
> ../src-x10/x10/util/OptionsParser.x10 ../src-x10/x10/util/Option.x10
> ../src-x10/x10/util/Ordered.x10 ../src-x10/x10/util/Pair.x10
> ../src-x10/x10/util/RailBuilder.x10 ../src-x10/x10/util/Random.x10
> ../src-x10/x10/util/Set.x10 ../src-x10/x10/util/Stack.x10
> ../src-x10/x10/util/StringBuilder.x10 ../src-x10/x10/util/Timer.x10
> ../src-x10/x10/util/ValHashMap.x10 ../src-x10/x10/util/ValMap.x10
> ../src-x10/x10/util/ValRailBuilder.x10;
>     [exec] /bin/sh:
> /gsa/yktgsa-h2/19/zhiyu/x10-2.0.6/x10.dist/bin/x10c++: Permission denied
>     [exec] make: *** [gen/all-cpp-generated] Error 126
>
> BUILD FAILED
> /gsa/yktgsa-h2/19/zhiyu/x10-2.0.6/x10.dist/build.xml:163: The following
> error occurred while executing this line:
> /gsa/yktgsa-h2/19/zhiyu/x10-2.0.6/x10.runtime/build.xml:289: exec
> returned: 2
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to