← Back to team overview

dolfin team mailing list archive

Re: Issues when compiling DOLFIN without MPI

 

On Wed, Aug 20, 2008 at 5:08 AM, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
>
>
> Marie Rognes wrote:
>> Garth N. Wells wrote:
>>>
>>>
>>> Marie Rognes wrote:
>>>> I'm trying to compile dolfin with PETSc and SLEPc, but without MPI:
>>>>
>>>>      ./scons.local enableMpi=no withPetscDir=$PETSC_DIR
>>>>     withSlepcDir=$SLEPC_DIR
>>>>
>>>> This gives the following error:
>>>>
>>>
>>> Hopefully this is fixed now, although my PETSc is built with MPI, so I
>>> can't be sure. Let me know if it's ok or otherwise.
>>
>>
>> I get through the compilation stage now, so that's good :)
>>
>> However, if I try to "import dolfin", I get:
>>
>>        Python 2.5.2 (r252:60911, Jun 19 2008, 15:12:17)
>>    [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
>>    Type "help", "copyright", "credits" or "license" for more information.
>>     >>> import dolfin
>>    Traceback (most recent call last):
>>      File "<stdin>", line 1, in <module>
>>      File
>>
>> "/home/meg/src/dolfin/dolfin/local/lib/python2.5/site-packages/dolfin/__init__.py",
>>
>>    line 13, in <module>
>>        from assemble import *
>>      File
>>
>> "/home/meg/src/dolfin/dolfin/local/lib/python2.5/site-packages/dolfin/assemble.py",
>>
>>    line 22, in <module>
>>        from dolfin import *
>>      File
>>
>> "/home/meg/src/dolfin/dolfin/local/lib/python2.5/site-packages/dolfin/dolfin.py",
>>
>>    line 7, in <module>
>>        import _dolfin
>>    ImportError: /home/meg/src/dolfin/dolfin/local/lib/libdolfin.so:
>>    undefined symbol: MPIUNI_TMP
>>
>
> Looks like a linking problem to PETSc. Can you compile C++ DOLFIN programs?

Almost  certainly it is an incomplete link line when libdolfin.so is
constructed. When PETSc
is built without MPI, it creates an extra library (libmpiuni) which
must be linked against to
get these symbols.

   Matt

> Garth
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener


Follow ups

References