Hi, Jeff, There was an important omission in the release notes, namely, that System.out, System.err, and System.in have been deprecated in favor of x10.io.Console.OUT, x10.io.Console.ERR, and x10.io.Console.IN, respectively.
We apologize for the confusion. A new version of the 1.7.3 release (with just the change to the release notes) will be uploaded to the X10 release sites shortly. Igor Jeff Kuehn <ku...@ornl.gov> wrote on 03/23/2009 05:06:13 PM: > 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=hellohello.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=hellohello.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 -- Igor Peshansky (note the spelling change!) IBM T.J. Watson Research Center XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) X10: Parallel Productivity and Performance (http://x10.sf.net/) ------------------------------------------------------------------------------ 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 X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users