There are no OpenMP implementation for clang, so it is nothing strange in
clang not finding that. The problem is that it tries to find it in the
first place.

How have you installed DOLFIN? If you have installed it from source try
adding

-DDOLFIN_ENABLE_OPENMP=OFF

to your cmake call. Then after you have recompiled and installed dolfin run
instant-clean

Johan




On Wed, Oct 9, 2013 at 12:18 PM, erwan liberge <[email protected]> wrote:

> Hello,
>
> I have the same error on MAC OS.
>
> Please find the compile.log in the attached file.
>
> Thank you in advance
>
> Erwan
>
>
> 2013/10/8 Johan Hake <[email protected]>
>
>> Are you using gcc or clang as your c++ compiler?
>>
>> Could you also add the whole linker statement that generates the error?
>>
>> Johan
>>
>>
>> On Tue, Oct 8, 2013 at 10:26 AM, Anders Logg <[email protected]> wrote:
>>
>>> On Mon, Oct 07, 2013 at 08:58:07AM +0000, Achim Schroll wrote:
>>> > Dear FEniCS developers,
>>> >
>>> > On my brand new OS X 10.8.5 running Xcode 5.0 (5A1413) and system
>>> python 2.7.2
>>> > I have problems compiling ANY expression in FEniCS.
>>> >
>>> > The script
>>> >
>>> >
>>> > from dolfin import *
>>> >
>>> > mesh = UnitSquareMesh(10, 8)
>>> >
>>> > V = FunctionSpace(mesh, "Lagrange", 1)
>>> >
>>> >
>>> > f = Expression('6.0')
>>> >
>>> >
>>> > gives the error
>>> >
>>> > RuntimeError: In instant.recompile: The module did not compile with
>>> command
>>> > 'make VERBOSE=1
>>> >
>>> > The tail of the log-file says:
>>> >
>>> > ld: library not found for -lgomp
>>> > clang: error: linker command failed with exit code 1 (use -v to see
>>> invocation)
>>> > make[2]: ***
>>> [_dolfin_compile_code_43000e665a7c3f7f41664f21e875223b.so] Error 1
>>> > make[1]: *** [CMakeFiles/
>>> > _dolfin_compile_code_43000e665a7c3f7f41664f21e875223b.dir/all] Error 2
>>> > make: *** [all] Error 2
>>> >
>>> > Is that an issue with the outdated version of python 2.7.2 and if so
>>> can you
>>> > tell me how to update python?
>>> > The fenics web says NOT to use python.org:
>>> >
>>> > The FEniCS binary is built against system Python and will not work
>>> with Python
>>> > from python.org, MacPorts Python or similar.
>>> >
>>> > Thank you in advance.
>>> > Best, Achim
>>>
>>> It doesn't look like a Python problem to me. Looks like an issue with
>>> libgomp (GNU OpenMP).
>>>
>>> I don't know enough (=almost nothing) about Mac libraries so I don't
>>> know what might cause this problem.
>>>
>>> --
>>> Anders
>>> _______________________________________________
>>> fenics-support mailing list
>>> [email protected]
>>> http://fenicsproject.org/mailman/listinfo/fenics-support
>>>
>>
>>
>> _______________________________________________
>> fenics-support mailing list
>> [email protected]
>> http://fenicsproject.org/mailman/listinfo/fenics-support
>>
>>
>
>
> --
> Erwan
>
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to