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

Reply via email to