Compiling CGAL 4.9 on MacOs Sierra

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling CGAL 4.9 on MacOs Sierra

Pierre-Olivier Dallaire
Hi there,

Does anybody have success comping CGAL on the latest macOS Sierra system?
I’ve tried many things but always end up with linking problems on GMP:

Scanning dependencies of target CGAL_Core
[ 50%] Building CXX object src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
[ 66%] Linking CXX shared library ../../lib/libCGAL_Core.dylib
ld: illegal text-relocation to '___gmp_binvert_limb_table' in /opt/gmp-6.1.1/lib/libgmp.a(mp_minv_tab.o) from '___gmpn_divexact_1' in /opt/gmp-6.1.1/lib/libgmp.a(dive_1.o) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libCGAL_Core.12.0.0.dylib] Error 1
make[1]: *** [src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all] Error 2
make: *** [all] Error 2

Any idea? I have the same issues with versions 4-7 and 4.8.

Regards,

Pierre-Olivier


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Compiling CGAL 4.9 on MacOs Sierra

Marc Glisse
On Sun, 9 Oct 2016, Pierre-Olivier Dallaire wrote:

> Hi there,
>
> Does anybody have success comping CGAL on the latest macOS Sierra system?
> I’ve tried many things but always end up with linking problems on GMP:
>
> Scanning dependencies of target CGAL_Core
> [ 50%] Building CXX object src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
> [ 66%] Linking CXX shared library ../../lib/libCGAL_Core.dylib
> ld: illegal text-relocation to '___gmp_binvert_limb_table' in /opt/gmp-6.1.1/lib/libgmp.a(mp_minv_tab.o) from '___gmpn_divexact_1' in /opt/gmp-6.1.1/lib/libgmp.a(dive_1.o) for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [lib/libCGAL_Core.12.0.0.dylib] Error 1
> make[1]: *** [src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all] Error 2
> make: *** [all] Error 2
>
> Any idea? I have the same issues with versions 4-7 and 4.8.

It looks like you have only the static version of GMP, but you are trying
to build the shared version of CGAL.

--
Marc Glisse

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Compiling CGAL 4.9 on MacOs Sierra

Pierre-Olivier Dallaire
In reply to this post by Pierre-Olivier Dallaire
Thanks for catching this !

> On Oct 9, 2016, at 14:58, Marc Glisse <[hidden email]> wrote:
>
> On Sun, 9 Oct 2016, Pierre-Olivier Dallaire wrote:
>
>> Hi there,
>>
>> Does anybody have success comping CGAL on the latest macOS Sierra system?
>> I’ve tried many things but always end up with linking problems on GMP:
>>
>> Scanning dependencies of target CGAL_Core
>> [ 50%] Building CXX object src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
>> [ 66%] Linking CXX shared library ../../lib/libCGAL_Core.dylib
>> ld: illegal text-relocation to '___gmp_binvert_limb_table' in /opt/gmp-6.1.1/lib/libgmp.a(mp_minv_tab.o) from '___gmpn_divexact_1' in /opt/gmp-6.1.1/lib/libgmp.a(dive_1.o) for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> make[2]: *** [lib/libCGAL_Core.12.0.0.dylib] Error 1
>> make[1]: *** [src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Any idea? I have the same issues with versions 4-7 and 4.8.
>
> It looks like you have only the static version of GMP, but you are trying to build the shared version of CGAL.
>
> --
> Marc Glisse
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss