Building clang/cling 3.5 for ROOT on Lion
mojca at macports.org
Tue Apr 8 05:48:31 PDT 2014
On Tue, Apr 8, 2014 at 2:41 PM, Joshua Root wrote:
> On 2014-4-8 22:35 , Ryan Schmidt wrote:
>> On Apr 8, 2014, at 07:34, Chris Jones wrote:
>>>>> PS: It's not an issue of me personally upgrading the OS. I'll do that
>>>>> sooner or later. But it would be slightly suboptimal if the port only
>>>>> worked on 10.9.
>>> As a general point, I agree, only OSX10.9 has full c++11 support. However, upstream claim to be targeting 10.8 and 10.9, so I would hope it would work on OSX10.8 as well (to be tested sometime, by someone who has access to a 10.8 machine). Whilst not ideal, I think this is reasonable coverage (given root5 will remain available for all versions).
>> Well, libc++ (with full C++11 support) is included in 10.8, it’s just not the default. As long as root doesn’t use any other libraries, it should build fine with that, if you instruct it to. But then any other software that wants to use root would have to do that as well.
> Indeed, if you can get around the issues with using a non-default
> runtime on 10.8, then that should transfer pretty easily to 10.7 and
> 10.6 as well.
OK, the following works for a simple test file (on the source code
that originally fails when compiling ROOT with clang++-mp-3.4):
> clang++-mp-3.4 -std=c++11 -stdlib=libc++ test.cpp -o test
> otool -L test
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
I'll see if I can manage to build the whole ROOT 6 with -stdlib=libc++
(without referencing any other piece from MacPorts). But that probably
means that I shouldn't use OpenGL from the system, right?
> otool -L /System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
More information about the macports-dev