Boost logo

Boost-Build :

Subject: Re: [Boost-build] Mpi address model flag
From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2010-02-18 13:47:18


On Feb 18, 2010, at 11:41 AM, Vladimir Prus wrote:

> On Thursday 18 February 2010 20:16:55 K. Noel Belcourt wrote:
>
>> I'm trying to get the trunk Sun MPI tests working. Because I build
>> address-model-64 for Sun, I seem to need to invoke MPI with -m64 or
>> else I get library link errors because the missing -m64 causes MPI to
>> return the 32 bit libraries. Is there a general way to make MPI use
>> the address-model-64 flag from the toolset we build with? That is,
>> can MPI be made to run with the current address-model flag from
>> sun.jam? I don't see an easy way to do this without hard-coding the
>> flag somewhere.
>
> Do you mean that the commands that return includes/libraries for MPI
> has to be passed the -m64 flag?

Yes. Otherwise MPI will default to 32 bit and return 32 bit
libraries if -m64 is not passed.

> Are you using 64-bit by specifying
> address-model=64 on the command line?

Here's the command line I run for the nightly tests.

python run.py --proxy="http://wwwproxy.sandia.gov:80" --
runner="Sandia-sun" --bjam-toolset=sun --pjl-toolset=gcc --
toolsets=sun-5.10 --bjam-options="-j27 stdlib=sun-stlport address-
model=64"

-- Noel


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk