Subject: CGAL users discussion list
List archive
- From: "Becksfort, Jared" <>
- To: "" <>
- Subject: RE: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac
- Date: Wed, 30 Apr 2014 14:09:26 -0500
- Accept-language: en-US
- Acceptlanguage: en-US
You may all recline back from the edge of your seats because I have resolved
this issue. I reimaged to 10.9 and reinstalled everything and it seems to be
working now. Note that I did not try a simple upgrade in part because I was
unsure that all system binaries would be rebuilt against libc++.
-----Original Message-----
From: Becksfort, Jared
Sent: Thursday, April 24, 2014 9:59 AM
To:
Subject: Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac
Thank you, Marc and Laurent, very much for replying. I am attaching the
verbose build output.
>> That version of clang does not use -stdlib=libc++ by default.
>>Instead, it uses libstd++ (the STL from GNU/g++)Š Probably the
>>compilation of Boost using b2 has used the default stdlib
>>(libstdc++)...
True, but I specified stdlib=libc++ when building both boost and cgal.
Running oTool -L on the boost libraries (attached) shows that they are built
with libc++, and I am able to build a boost only program using them with that
argument (way down the email thread in the first email from me).
-------------------
oTool -L /usr/local/lib/libboost_thread.dylib
/usr/local/lib/libboost_thread.dylib:
libboost_thread.dylib (compatibility version 0.0.0, current version
0.0.0)
libboost_system.dylib (compatibility version 0.0.0, current version
0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
65.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version
169.3.0)
-------------------
There are other dependencies than boost for CGAL, of course. I installed at
least some of them using homebrew, which would use libstdc++ instead of
libc++ for my version of OsX 10.8 I understand. But if I check the
libc++ dylibs
in ccmake, they were not built against libstdc++ directly. I suppose they
could have indirect dependencies, though.
-------------------
oTool -L /usr/local/lib/libgmp.dylib
/usr/local/lib/libgmp.dylib:
/usr/local/opt/gmp/lib/libgmp.10.dylib (compatibility version 12.0.0,
current version 12.3.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version
169.3.0)
-------------------
I wonder if upgrading to 10.9.x will solve some of these problems? I was
trying to avoid that if possible because I'm not very confident it will help.
It may make homebrew use libc++ when I install new packages though.
Thanks again!
Jared
On 4/24/14 4:39 AM, "Laurent Rineau (CGAL/GeometryFactory)"
<>
wrote:
>Le Wednesday 23 April 2014 14:08:04 Becksfort, Jared a écrit :
>> Hello,
>>
>> I have had some trouble getting programs using CGAL to run using
>>c++11 on a mac 10.8.5.
>>
>
>> My clang++ version is
>>
>> -----------
>> Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
>> Target: x86_64-apple-darwin12.5.0
>> Thread model: posix
>> -----------
>
>That version of clang does not use -stdlib=libc++ by default. Instead,
>it uses
>libstd++ (the STL from GNU/g++).
>
>> The issue is very likely to be related to the stdlib argument, I think.
>> I
>> built boost using b2 and cgal using cmake with "-std=c++11
>> -stdlib=libc++"
>
>Probably the compilation of Boost using b2 has used the default stdlib
>(libstdc++), and not the libc++ you have used to compile CGAL libraries.
>That
>way, you get libraries that are binary-incompatible. I suggest you
>either recompile Boost libraries with libc++, or recompile CGAL
>libraries with
>libstdc++.
>
>--
>Laurent Rineau, PhD
>R&D Engineer at GeometryFactory http://www.geometryfactory.com/
>Release Manager of the CGAL Project http://www.cgal.org/
>
>
>--
>You are currently subscribed to cgal-discuss.
>To unsubscribe or access the archives, go to
>https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
>
Email Disclaimer: www.stjude.org/emaildisclaimer
Consultation Disclaimer: www.stjude.org/consultationdisclaimer
- [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/24/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Marc Glisse, 04/24/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Laurent Rineau (CGAL/GeometryFactory), 04/24/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/24/2014
- RE: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/30/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/24/2014
Archive powered by MHonArc 2.6.18.