[MacPorts] #34171: root: add cling variant

MacPorts noreply at macports.org
Mon Apr 23 11:15:43 PDT 2012


#34171: root: add cling variant
--------------------------------------+-------------------------------------
 Reporter:  Deil.Christoph@…          |       Owner:  mattiafrancescomoro@…        
     Type:  enhancement               |      Status:  new                          
 Priority:  Normal                    |   Milestone:                               
Component:  ports                     |     Version:  2.0.4                        
 Keywords:                            |        Port:  root                         
--------------------------------------+-------------------------------------

Comment(by jonesc@…):

 OK, seeing as I had already configured root, it seemed rude not to try and
 build it ...

 Bottom line is I can build root fine with MacPorts clang version, using

 {{{
  > ./configure --with-llvm-config=/opt/local/bin/llvm-config-mp-3.1
 --with-clang --with-cc=/opt/local/bin/clang-mp-3.1 --with-
 cxx=/opt/local/bin/clang++-mp-3.1 --with-ld=/opt/local/bin/clang++-mp-3.1
 --enable-builtin-glew
 }}}

 However, if I try and enable cling I get

 {{{
 /opt/local/bin/clang++-mp-3.1 -O2 -m64 -pipe -Wshadow -W -Wall
 -Woverloaded-virtual -fsigned-char -fno-common -Iinclude     -pthread
 -I/opt/local/libexec/llvm-3.1/include -D_DEBUG -D_GNU_SOURCE
 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3
 -g -fvisibility-inlines-hidden -fno-common -Woverloaded-virtual -Wcast-
 qual -I/Users/chris/Projects/root/cint/cling/include
 '-DR__LLVMDIR="/opt/local/libexec/llvm-3.1"' -o
 core/meta/src/TCintWithCling.o -c
 /Users/chris/Projects/root/core/meta/src/TCintWithCling.cxx
 bin/rmkdepend -R -fcore/meta/src/TClass.d -Y -w 1000 -- -m64 -pipe
 -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude
 -pthread -D__cplusplus --
 /Users/chris/Projects/root/core/meta/src/TClass.cxx
 /opt/local/bin/clang++-mp-3.1 -O2 -m64 -pipe -Wshadow -W -Wall
 -Woverloaded-virtual -fsigned-char -fno-common -Iinclude     -pthread -o
 core/meta/src/TClass.o -c
 /Users/chris/Projects/root/core/meta/src/TClass.cxx
 bin/rmkdepend -R -fcore/meta/src/TClassGenerator.d -Y -w 1000 -- -m64
 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common
 -Iinclude     -pthread -D__cplusplus --
 /Users/chris/Projects/root/core/meta/src/TClassGenerator.cxx
 /opt/local/bin/clang++-mp-3.1 -O2 -m64 -pipe -Wshadow -W -Wall
 -Woverloaded-virtual -fsigned-char -fno-common -Iinclude     -pthread -o
 core/meta/src/TClassGenerator.o -c
 /Users/chris/Projects/root/core/meta/src/TClassGenerator.cxx
 /Users/chris/Projects/root/core/meta/src/TCintWithCling.cxx:26:10: fatal
 error: 'clang/AST/ASTContext.h' file not found
 #include "clang/AST/ASTContext.h"
          ^
 }}

 I'm not sure, but it looks like this file is part of clang's API

 http://clang.llvm.org/doxygen/ASTContext_8h-source.html

 But, its missing on my system.

 Does anyone know if Macports clang ports install the API headers etc. ??

 Chris

-- 
Ticket URL: <https://trac.macports.org/ticket/34171#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list