On 19 August 2013 08:41, Christian Waluga <[email protected]> wrote:
> Hello,
>
> I already asked this question in the Q&A and was redirected here by Garth 
> Wells:
> http://fenicsproject.org/qa/874/problem-with-dolfin-in-dorsal-mac-os-10-8
>
> Last week I made another attempt to install DOLFIN using Dorsal on Mac OS 
> 10.8.
> I figured that everything goes well if you start from a fresh MacPorts install
> (I ran "sudo port uninstall installed" before to be 100% sure that there is no
> MacPorts-related problem with previously installed variants) and then do 
> exactly
> as the platform file says. With this I got way further than in my previous
> attempts, where already installed packages in different variants seemed to 
> cause
> problems.
>
> Unfortunately in the last step, DOLFIN fails to link.
>
>     Linking CXX shared library libdolfin.dylib
>     ld: illegal text-relocation to ___gmp_binvert_limb_table in /usr/
>     local/lib/libgmp.a(mp_minv_tab.o) from ___gmpn_divexact_1 in
>              /usr/local/lib/libgmp.a(dive_1.o) for architecture x86_64
>     collect2: error: ld returned 1 exit status
>     make[2]: *** [dolfin/libdolfin.1.2.0.dylib] Error 1
>
>     make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2
>
>     make: *** [all] Error 2
>
> The answer seems to be to add "-read_only_relocs suppress" to the DOLFIN 
> linker
> flags. However, I could not figure out where to do that within Dorsal.
>
> Any advice is appreciated!
>

I often build FEniCS on OSX, so it is possible but can be more
difficult because of the variability of OSX systems. I'd suggest:

1. Check that you're using the right gmp. From MacPorts it works, but
your error message above indicates that your gmp library is not in the
default MacPorts location (which is /opt/local/lib)

2. Use the development version (it has some fixes for matching the
Python interpreter and libraries)

3. Use gcc in place of clang. Clang can work, but it is tricky when
MacPorts uses gcc for some packages.

Garth

> Best, Christian
>
>
>
> --
> Dr. Christian Waluga
>
> M2 - Zentrum Mathematik
> Boltzmannstraße 3
> 85748 Garching bei München
>
> Phone:  +49(0) 89 28918418
> Fax:    +49(0) 89 28918435
> E-Mail: [email protected]
> Web:    http://www-m2.ma.tum.de/bin/view/Allgemeines/ChristianWalugaEN
>
> _______________________________________________
> 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