← Back to team overview

dolfin team mailing list archive

Re: [Dorsal] dorsal on leopard

 

On 8/3/10 10:22 PM, Garth N. Wells wrote:
> On Tue, 2010-08-03 at 12:26 -0400, Paul Barbone wrote:
>> Hello all,
>>
>> I'm excited to give this a try. 
>>
>> In the meantime, I've been (trying) to install dorsal on leopard 
>> (10.5.8).  The snowleopard.package seems to almost work with the 
>> following modifications:
>>
>> default PETSC_ARCH=darwin9.2.0-cxx-opt
>> default GMP_ARCH=none-apple-darwin
>>
>>
>> I also had to comment out the scotch package (per Garth Wells' advice). 
>>
>>
>> I'm now stuck at compiling DofMapBuilder.cpp, which ends with the 
>> message (among many):
>>
>> /usr/include/c++/4.0.0/tr1/hashtable:1363: warning: control reaches end 
>> of non-void function
>> scons: *** [dolfin/fem/DofMapBuilder.os] Error 1
>> scons: building terminated because of errors.
>> dolfin/fem/DofMapBuilder.os failed: Error 1
>>
> 
> We use a new feature of C++ which is broken in older compilers (e.g. gcc
> 4.0.0).
> 
> Harish: macports has loads of gcc (and openmpi) versions. Can Dorsal
> tell user to get gcc from macports and then use that?

Yes, and it has probably already got it. I have something called
gcc-mp-4.4 (-mp being macports) on my machine which I didn't explicitly
install. Setting

export CC=gcc-mp-4.4
export CXX=g++-mp-4.4

in leopard.platform ought to work.

Harish



Follow ups

References