From: Richard G. <rgo...@ya...> - 2009-06-14 22:14:12
|
Hi Igor Yes... my fault. I should have mentioned the complete architecture, including HW platform. I defined X10_PLATFORM and X10LIB (pointing to PGAS for Solaris/Sparc) just to see what would happen. I was expecting to find errors during link step but, in fact, errors popped up during compilation, as you can see below: [exec] g++ -g -I/srv/software/x10/1.7.4/pgas-1.7.4_sunos_sparc/include -I. -Igen -ansi -pedantic -Wall -Wextra -Wno-long-long -Wno-unused-parameter -c x10aux/boolean_utils.cc -o x10aux/boolean_utils.o [exec] In file included from x10aux/basic_functions.cc:3: [exec] ./x10aux/math.h: In function `bool x10aux::math::isinf(double)': [exec] ./x10aux/math.h:53: error: `::isinf' has not been declared [exec] ./x10aux/math.h: In function `bool x10aux::math::isinf(float)': [exec] ./x10aux/math.h:53: error: `::isinff' has not been declared [exec] ./x10aux/math.h: In function `bool x10aux::math::isfinite(double)': [exec] ./x10aux/math.h:69: error: `::isfinite' has not been declared [exec] ./x10aux/math.h: In function `bool x10aux::math::isfinite(float)': [exec] ./x10aux/math.h:69: error: `::isfinitef' has not been declared [exec] ./x10aux/math.h: In function `int x10aux::math::signbit(double)': [exec] ./x10aux/math.h:71: error: `::signbit' has not been declared [exec] ./x10aux/math.h: In function `int x10aux::math::signbit(float)': [exec] ./x10aux/math.h:71: error: `::signbitf' has not been declared [exec] gmake: *** [x10aux/basic_functions.o] Error 1 [exec] gmake: *** Waiting for unfinished jobs.... I found the following article which could be helpful somehow: https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_14/lib/Support/IsInf.cpp Meanwhile, I'm reverting to Linux. It will demand some effort because my Linux box is now a production box and I'm not planning to use it for development. So, I will have to install a Linux zone on top of Solaris. I was not planning to become a well skilled Solaris sysadmin :( Kind Regards Richard Gomes Igor Peshansky wrote: > Hi, Richard, > > Ah, the fact that you we using x86 was the crucial bit of information > missing from the previous emails. Getting you a Solaris/x86 build is > problematic, since we don't really have a machine with this > configuration. Given the constraints of the team, I doubt we'll be > able to support such a configuration, though I could try installing > Solaris in a virtual machine at some point -- no promises on when that > will happen, though. > > Thanks for the contributions. It's usually best to contribute in the > form of patches (diffs) against SVN HEAD. Also, the easiest way to > track those patches is not on the mailing list, but rather as a JIRA > item. So, please open a JIRA issue for Solaris/x86 support, and attach > your patches there. But see below for comments on your changes. > > FYI, most of our scripts already require make to be GNU make and find > to be GNU find. We've been fixing xargs usage to be less dependent > on the GNU xargs (ditto for tar), but may have missed a few cases -- > patches are welcome. > > The "Unrecognized platform" message is a sanity check in the x10c and > x10c++ scripts. You can override it by setting "X10_PLATFORM=sunos_x86" > in your environment. This should let you proceed past the generation > of the C++ sources for the libraries, but you will not be able to build > them anyway, because of the lack of the PGAS build for your system. > > We are planning to release API spec for the part of the PGAS API needed > by the X10 compiler, so that others can try different library > implementations. Once that happens, you could also try implementing > such a library on Solaris by using another (hopefully already existing) > transport layer. > > In any case, if you can try running some of your experiments with Linux > while the Solaris/x86 build is unavailable, we'd be interested in what > you find. > > Thanks for your interest in X10. > Igor > > Richard Gomes <rgo...@ya...> wrote on 06/13/2009 03:53:42 PM: > > >> Hi Igor, >> >> My platform is not sunos_sparc but sunos_x86. I suppose I will not be >> able make use of the files you deployed. >> >> Anyway, below you can see the changes I've done. >> I'm attaching the referenced files for your information. >> >> >> 1. ./x10.runtime.17/build.xml >> >> I'm using gcc toolchain instead of Sun toolchain, so I changed make by >> > gmake. > >> <property name="make.exe" value="gmake"/> >> >> >> 2. ./x10.runtime.17/src-cpp/Makefile >> Still due to gcc toolchain, I had to change find by gfind and xargs by >> > gxargs. > >> XARGS=gxargs >> FIND=gfind >> ... and wherever these equivalences are used. >> >> >> >> 3. When I tried to build... >> export LOCAL_POLYGLOT_JAR=../polyglot/lib/polyglot-epl.jar >> cd polyglot && ant clobber eclipse-plugin-jar >> >> >> ... works fine but ... >> >> >> cd x10.dist && ant distclean dist >> > > >> ... does not like my platform :( as you ca see below: >> >> gen-xrx: >> [echo] Building Java sources for XRX >> [echo] x10c -c Dummy.x10 x10/array/BaseArray.x10 >> x10/array/BaseDist.x10 x10/array/BaseRegion.x10 x10/array/DistArray. >> x10 x10/array/EmptyRegion.x10 x10/array/FastArray.x10 >> x10/array/FullRegion.x10 x10/array/Layout.x10 >> ... a bunch of others ... >> x10/util/concurrent/atomic/AtomicInteger.x10 >> x10/util/concurrent/atomic/AtomicLong.x10 >> x10/util/concurrent/atomic/AtomicReference.x10 >> x10/util/concurrent/atomic/Fences.x10 >> [exec] Unrecognized platform: 'SunOS,i86pc,i386' >> >> Notice: I haven't even downloaded the file you uploaded because the >> platforms dont match and I havent defined X10LIB environment variable. >> >> Regards >> >> Richard Gomes >> >> >> >> Igor Peshansky wrote: >> Hi, Richard, >> >> It's best to keep these discussions on-list, so that others can benefit >> from them. >> >> I have just uploaded a Solaris/Ultrasparc build of PGAS, as well as a >> build of X10 from SVN HEAD (post-1.7.4, so it may be somewhat unstable). >> Feel free to try building from the 1.7.4 sources instead. I'm not >> officially announcing this release, since it's unsupported, but if you >> make changes for stability on Solaris, please consider contributing >> them back to the X10 project. >> >> We do have a test suite, but its invocation and results are somewhat >> hard to interpret when run from the command line. Try invoking >> x10.tests/bin/xtestScript++ from x10.tests/examples (use the absolute >> path to the script; you'll also need to supply it with a list of >> tests -- I usually use -list "`find . -name \*.x10`"). That will >> produce a couple of log files (*run* and *err*) in the ./log >> subdirectory. >> >> It would be interesting to find out what exactly you plan to do with >> X10. >> Igor >> >> Richard Gomes <rgo...@go...> wrote on 06/12/2009 07:16:24 >> > AM: > >> Hi Igor, >> >> Thanks a lot for your message. >> >> At the moment I'm moving my developement environment (and other stuff) >> from Debian Lenny to Solaris 10. >> >> After you give me a green light I will try to build X10 for Solaris >> and I will be able to concentrate more efforts on X10. >> Please let me know if you have a test suite intended to validate >> PGAS+X10 functionality. >> >> Kind Regards >> >> Richard Gomes >> http://www.jquantlib.org/index.php/User:RichardGomes >> >> On Thursday 11 June 2009 13:50:00 you wrote: >> >> Richard Gomes <rgo...@ya...> wrote on 06/09/2009 11:12:53 >> >> AM: >> >> Hi guys, >> >> Is there a release for Solaris 10 ? >> If not, what should I do to build/install using gcc? >> FYI, I have gcc/gmake and some other GNU tools installed and they >> already proved to work fine. >> >> Hi, Richard, >> >> Currently, there is no Solaris release. >> >> The main problem with moving to a new platform is making a binary >> build of the (A)PGAS runtime available for that platform. Since >> that runtime is not open-sourced, the build will have to be done >> by us. I will scare up a Solaris PGAS build in the next few days >> and post it on the download page. Once that is done, you could >> try to build the rest. Also note that our runtime was not tested >> on Solaris, so we can provide functionality or performance >> guarantees. >> >> I am now testing a Solaris build of the whole X10 system. >> Igor >> |