Le 2 sept. 2013 à 21:10, Garth N. Wells a écrit :

> On 2 September 2013 14:47, Timothée Lecomte <[email protected]> 
> wrote:
>> Dear all,
>> 
>> I am using Fenics on MacOS X (Snow Leopard). I used to have it working fine
>> until recently when I updated some packages from Homebrew (a package manager
>> for MacOS, similar to MacPorts).
> 
> I had something similar a few days ago with MacPorts - OpenMPI was
> updates and everything broke. OSX is a disaster is this respect.
> 
>> I then rebuilt Fenics using Dorsal, and I
>> get the following error :
>> 
>> $ python
>> Python 2.7.5 (default, Aug 28 2013, 10:09:22)
>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> from dolfin import *
>> Attempting to use an MPI routine before initializing MPICH
>> <python exits>
>> 
>> I have the following packages built with Homebrew: MPICH 3.0.4 Boost 1.54
>> (with MPI support) CGAL 4.2 Python 2.7.5 Swig 2.0.10 Parmetis 4.0.2 Vtk
>> 5.10.1
>> 
>> <snip>
>> 
>> I suspect there is something wrong with MPICH3 but I tried to revert to
>> MPICH2 1.5 without success.
>> 
> 
> I use MPICH3 under Linux - it works fine.


Ok, thanks.

> 
>> Can you please help solve this issue ?
>> 
> 
> You might want to check your GCC versions - from your Python output,
> it looks like some packages have been built with the Apple (and very
> old) version of GCC.
> 
> Garth


Here are the versions of the various compilers on the machine:

- gcc (same for g++): gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
- mpicc (same for mpic++): mpicc for MPICH version 3.0.4; gcc version 4.2.1 
(Apple Inc. build 5666) (dot 3)
- gfortran: gcc version 4.8.1 (GCC) 
- mpif77 (same for mpif90): mpif77 for MPICH version 3.0.4; gcc version 4.8.1 
(GCC)

Indeed gfortran comes from a newer gcc package (but cc and g++ from that 
version have not been installed). So do you think I should install all of gcc 
4.8 instead of the current mix of the default Apple compilers (4.2) and 4.8 ? 
Apart from the current problem with Dolfin and MPI, I never had any issue with 
that setup.

Thank you very much for your help !

Best regards,

Timothée
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to