We're having a problem with the new Linux x86 release, which can be
demonstrated with a simple "hello world" program:
class hello {
public static def main(args:Rail[String]) : void {
System.out.println("Hello World!");
}
}
When we compile this under 1.7.2, the compile completes without
error and the simple program executes without difficulty:
$ x10c++ -verbose -post 'g++ -m32' -commandlineonly -MAIN_CLASS=hello hello.x10
"/opt/sun/64/jdk1.6.0_12/bin/java" -Xmx128m -classpath
"/home/kxi/bin/X10/1.7.2/lib/x10cpp.jar:/home/kxi/bin/X10/1.7.2/classes:/home/kxi/bin/X10/1.7.2/lib/x10c.jar:/home/kxi/bin/X10/1.7.2/lib/x10.jar:/home/kxi/bin/X10/1.7.2/lib/polyglot3.jar:/home/kxi/bin/X10/1.7.2/lib/lpg.jar"
polyglot.ext.x10cpp.main.Main -ext x10cpp -assert -noserial -sourcepath
"/home/kxi/bin/X10/1.7.2/lib/x10.jar" '-post' 'g++ -m32' '-commandlineonly'
'-MAIN_CLASS=hello' 'hello.x10'
$ runx10 ./hello
Hello World!
However, doing the same thing with the new 1.7.3 results in a compilation
failure as follows:
$ x10c++ -verbose -post 'g++ -m32' -commandlineonly -MAIN_CLASS=hello hello.x10
"/opt/sun/64/jdk1.6.0_12/bin/java" -Xmx128m -classpath
"/home/kxi/bin/X10/1.7.3/lib/x10cpp.jar:/home/kxi/bin/X10/1.7.3/classes:/home/kxi/bin/X10/1.7.3/lib/x10c.jar:/home/kxi/bin/X10/1.7.3/lib/x10.jar:/home/kxi/bin/X10/1.7.3/lib/polyglot3.jar:/home/kxi/bin/X10/1.7.3/lib/lpg.jar"
polyglot.ext.x10cpp.main.Main -ext x10cpp -assert -noserial -sourcepath
"/home/kxi/bin/X10/1.7.3/lib/x10.jar" '-post' 'g++ -m32' '-commandlineonly'
'-MAIN_CLASS=hello' 'hello.x10'
/tmp/x10test/hello.x10:3: Could not find x10.lang.System.out
1 error.
The error occurs almost immediately, but the compile command doesn't
return for several more seconds. Furthermore this can also be repeated
with the Java-hosted compiler:
$ x10c -verbose -post 'g++ -m32' hello.x10
"/opt/sun/64/jdk1.6.0_12/bin/java" -Xmx128m -classpath
"/home/kxi/bin/X10/1.7.3/lib/x10c.jar:/home/kxi/bin/X10/1.7.3/lib/x10.jar:/home/kxi/bin/X10/1.7.3/lib/polyglot3.jar:/home/kxi/bin/X10/1.7.3/lib/lpg.jar"
polyglot.main.Main -post 'java -jar
"/home/kxi/bin/X10/1.7.3/lib/ecj.jar" -1.5 -nowarn' -ext x10 -assert -noserial
-sourcepath "/home/kxi/bin/X10/1.7.3/lib/x10.jar" '-post' 'g++ -m32'
'hello.x10'
/tmp/x10test/hello.x10:3: Could not find x10.lang.System.out
1 error.
Notes:
* The test system is dual core laptop running 64bit Fedora 10.
* Using Sun's JDK 1.6.0_07 and _12, both 32 bit and 64 bit, both the 1.7.2 and
1.7.3 results are repeatable.
* PGAS runtime are installed under the same directory as the X10 compiler
scripts.
* JAVA_HOME is set to point to appropriate Sun JDK.
* X10LIB is unset.
* X10_FROM_SRC is unset.
Any suggestions appreciated...
Best Regards,
--Jeff
========================================================================
Jeffery A. Kuehn, Senior HPC Evaluation Researcher
Computer Science and Mathematics Division, Application Performance Tools
National Center for Computational Sciences, Scientific Computing Group
Institute for Advanced Architectures and Algorithms
Extreme Scale System Center
Oak Ridge National Laboratory
One Bethel Valley Road MS6164
Oak Ridge, TN 37831
P:865.241.6134 F:865.241.4811
========================================================================
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not 'Eureka!' (I found it!) but 'That's funny....'"
--Isaac Asimov
David P Grove wrote:
> We're happy to announce that X10 version 1.7.3 is now available for
> download. For more information, please see the 1.7.3 release page at
> http://x10.codehaus.org/X10+1.7.3+Release.
>
> The release notes are appended:
>
> This release includes both the C++ and Java code generation backends.
>
> The C++ backend is now in the publicly-visible SourceForge SVN repository.
>
> This release makes the following language change since 1.7.2:
> - "to" is no longer used for casts, use "as"
> - X10 now supports "at" statements
>
> The following features described in the 1.7 language manual do not
> currently work with the Java backend and will be fixed in the subsequent
> releases:
>
> - Type parameters on closures
> - Non-static type definitions as class or interface members
> (static type defs do work)
> - Type definitions as package members (i.e., in the outermost scope of
> a compilation unit)
> - AST externalization to XML
> - Shared local variables
> - Extern methods
>
> Additionally, the following features described in the 1.7 language
> manual do not currently work with the C++ backend and will be fixed in
> the subsequent releases:
>
> - Garbage collection
> - Generic virtual methods
> - Exception stack traces on Cygwin and AIX
> - Finally blocks with return, break or continue.
>
> Here's a list of known issues with the C++ backend:
>
> - Default values are not assigned to some value types
> - Static initialization is sometimes incorrectly ordered (at the moment
> it's very brittle, though somewhat controllable by the link order of
> files)
> - Operator overloading does not work correctly sometimes
> - Hash codes are not computed correctly for some classes
>
> A detailed list of the 126 issues addressed in the 1.7.3 release can be
> found in JIRA: http://jira.codehaus.org/browse/XTENLANG/fixforversion/14695
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> X10-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users