Ouch.  That's probably it - thanks, Nate.

FWIW, I've never succeeded in building a 32-bit binary on a 64-bit
architecture using -m32.  However, I'll try -m64 on our machine and see
if I can build something that Jim can use.

If the new build is usable, we'll probably have to make *_macos_x86_64
releases as well from now on.
        Igor

nate.nyst...@gmail.com wrote on 11/03/2009 11:03:47 AM:

> > ...
> > compilers/x10-1.7.7/lib/libx10.a, file is not of required architecture
> 
> This is probably a 32- vs. 64-bit problem.  10.6 defaults to 64-bit
> now.  Maybe pass -m64 or -m32 to g++.
> 
> Nate
> 
> 
> 
> 
> On Tue, Nov 3, 2009 at 09:49, Jim LaGrone <jlagr...@cs.uh.edu> wrote:
> > The webpage you reference states:
> >
> > "Depending on which implementation of X10RT you want to use (see X10RT
> > Implementations for details), you may need to get the latest PGAS
> > binaries for your system off the X10 downloads page, and untar them
> > into pgas2/common/work under x10-trunk (or to some other directory, in
> > which case you'll need to setX10LIB in your environment to point to
> > that directory)."
> >
> > I don't see a pgas2/common/work directory. Should the PGAS binaries be
> > untarred in the x10-dist/ directory?
> >
> >
> > On 3 Nov 2009, at 9:19 AM, Igor Peshansky wrote:
> >
> >> Jim LaGrone <jlagr...@cs.uh.edu> wrote on 11/03/2009 09:49:55 AM:
> >>
> >>> Sorry, I got confused. I'm using 10.6, Snow Leopard. That must be 
the
> >>> problem. I'll just use another OS for C++ unless you know some trick
> >>> for building the source on Mac. I haven't had much success with that
> >>> yet.
> >>
> >> No trick.  You just need the latest version of XCode.  The
> >> instructions
> >> at http://x10.codehaus.org/Building+from+SVN+head should work (just
> >> replace "trunk" with "branches/x10-1.7" in the checkout commands).
> >>        Igor
> >>
> >>> On 3 Nov 2009, at 8:46 AM, Igor Peshansky wrote:
> >>>
> >>>> It is 10.5.8, according to system_profiler:
> >>>>
> >>>>   System Software Overview:
> >>>>
> >>>>     System Version: Mac OS X 10.5.8 (9L30)
> >>>>     Kernel Version: Darwin 9.8.0
> >>>>
> >>>> It's obviously finding the libraries correctly, but somehow is not
> >>>> recognizing the format...
> >>>>
> >>>> It would be a bit disturbing if the libraries built on 10.5 do not
> >>>> work with 10.6...  We'll get a 10.6 machine here and investigate.
> >>>>       Igor
> >>>>
> >>>> Jim LaGrone <jlagr...@cs.uh.edu> wrote on 11/03/2009 09:32:44 AM:
> >>>>
> >>>>> I used wget to download the files. I untarred them in the same
> >>>>> directory.
> >>>>>
> >>>>> I assume you meant 10.5.6, not 10.5.8. Compiling with x10c seems 
to
> >>>>> go
> >>>>> fine. The problem seems to be with x10c++. I get the following to
> >>>>> begin the output:
> >>>>>
> >>>>> delta:tests$ x10c++ -MAIN_CLASS=Test Test.x10 -commandlineonly -
> >>>>> report
> >>>>> postcompile=1
> >>>>> Executing post-compiler g++ -g -I/Users/jlagrone/GradSchool/
> >>>>> Research/
> >>>>> hpcs-compilers/x10-1.7.7/lib/include -I/Users/jlagrone/GradSchool/
> >>>>> Research/hpcs-compilers/x10-1.7.7 -I/Users/jlagrone/GradSchool/
> >>>>> Research/hpcs-compilers/x10-1.7.7/gen 
-I/Users/jlagrone/GradSchool/
> >>>>> Research/hpcs-compilers/x10-1.7.7/include -I. -DTRANSPORT=sockets 
-
> >>>>> Wno-
> >>>>> long-long -Wno-unused-parameter -pthread -msse2 -mfpmath=sse -o /
> >>>>> Users/
> >>>>> jlagrone/GradSchool/Research/workspace/X10-code/tests/Test
> >>>>> Test.cc -
> >>>>> L/
> >>>>> 
Users/jlagrone/GradSchool/Research/hpcs-compilers/x10-1.7.7/lib/lib
> >>>>> -L/
> >>>>> Users/jlagrone/GradSchool/Research/hpcs-compilers/x10-1.7.7 -L/
> >>>>> Users/
> >>>>> jlagrone/GradSchool/Research/hpcs-compilers/x10-1.7.7/lib -lx10 -
> >>>>> lupcrts_sockets -ldl -lm -lpthread
> >>>>> x10c++: ld: warning: in /Users/jlagrone/GradSchool/Research/hpcs-
> >>>>> compilers/x10-1.7.7/lib/libx10.a, file is not of required
> >>>>> architecture
> >>>>>     ld: warning: in /Users/jlagrone/GradSchool/Research/hpcs-
> >>>>> compilers/x10-1.7.7/lib/libupcrts_sockets.a, file is not of
> >>>>> required
> >>>>> architecture
> >>>>>     Undefined symbols:
> >>>>>     "x10aux::RuntimeType::BooleanType", referenced from:
> >>>>>     x10aux::RuntimeType const* x10aux::getRTT<bool>()in cc8mZksb.o
> >>>>>     "x10aux::RuntimeType::DoubleType", referenced from:
> >>>>>     x10aux::RuntimeType const* x10aux::getRTT<double>()in
> >>>>> cc8mZksb.o
> >>>>> ...
> >>>>>
> >>>>> I know this is supposed to be unsupported, so thanks for the help.
> >>>>>
> >>>>> Jim
> >>>>>
> >>>>>
> >>>>> On 2 Nov 2009, at 10:32 PM, Igor Peshansky wrote:
> >>>>>
> >>>>>> Strange.  I've built on 10.5.8, but it shouldn't matter, should
> >>>>>> it?
> >>>>>>
> >>>>>> I've just verified that downloading the files out on the web site
> >>>>>> and untarring both into the same directory allow me to compile 
one
> >>>>>> of the samples with no errors.
> >>>>>>
> >>>>>> Here are the exact files I've used:
> >>>>>>
> >>>>>>
> >>>>
> >> 
http://iweb.dl.sourceforge.net/project/x10/x10/1.7.7/x10-1.7.7_macos_x86.tgz
> >>>>>>
> >>>>
> >> 
http://dist.codehaus.org/x10/binaryReleases/1.7.7/pgas-1.7.7_macos_x86.tgz
> >>>>>>
> >>>>>> Hope this works for you.
> >>>>>>      Igor
-- 
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/)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to