<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Richard Catlin</b> <span dir="ltr"><<a href="mailto:richard.m.catlin@gmail.com">richard.m.catlin@gmail.com</a>></span><br>
Date: Sat, May 18, 2013 at 10:10 AM<br>Subject: Re: [cfe-dev] cling error: no type named 'Interpreter' in namespace 'cling'; did you mean '::cling::Interpreter'?<br>To: Vassil Vassilev <<a href="mailto:vvasilev@cern.ch">vvasilev@cern.ch</a>><br>
<br><br><div dir="ltr">Vassil,<div><br></div><div>I tried to build from source also, but get this error.  I tried both on Lion and Mountain Lion.  I am using the svn repo for llvm, clang.  Here is the error below.  I am attaching the configure log file also.</div>

<div><br></div><div>Any idea?  I am really anxious to try cling, as an LLVM developer.  I use LLVM as the runtime for a DSL.</div><div><br></div><div>Thank you.</div><div>Richard Catlin</div>
<div><br></div><div><div>llvm[4]: Compiling ParseDecl.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseDeclCXX.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseExpr.cpp for Debug+Asserts build</div>

<div>llvm[4]: Compiling ParseExprCXX.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseInit.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseObjc.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseOpenMP.cpp for Debug+Asserts build</div>

<div>llvm[4]: Compiling ParsePragma.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseStmt.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseTemplate.cpp for Debug+Asserts build</div><div>llvm[4]: Compiling ParseTentative.cpp for Debug+Asserts build</div>

<div>llvm[4]: Compiling Parser.cpp for Debug+Asserts build</div><div>/Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/Parser.cpp:548:39: error: variable has incomplete type 'clang::DestroyTemplateIdAnnotationsRAIIObj'</div>

<div>  DestroyTemplateIdAnnotationsRAIIObj CleanupRAII(*this);</div><div>                                      ^</div><div>/Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:48:9: note: forward declaration of 'clang::DestroyTemplateIdAnnotationsRAIIObj'</div>

<div>  class DestroyTemplateIdAnnotationsRAIIObj;</div><div>        ^</div><div>/Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/Parser.cpp:602:39: error: variable has incomplete type 'clang::DestroyTemplateIdAnnotationsRAIIObj'</div>

<div>  DestroyTemplateIdAnnotationsRAIIObj CleanupRAII(*this);</div><div>                                      ^</div><div>/Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:48:9: note: forward declaration of 'clang::DestroyTemplateIdAnnotationsRAIIObj'</div>

<div>  class DestroyTemplateIdAnnotationsRAIIObj;</div><div>        ^</div><div>2 errors generated.</div><div>make[4]: *** [/Users/rcatlin1/cling-dev/build/tools/clang/lib/Parse/Debug+Asserts/Parser.o] Error 1</div><div>
make[3]: *** [Parse/.makeall] Error 2</div>
<div>make[2]: *** [all] Error 1</div><div>make[1]: *** [clang/.makeall] Error 2</div><div>make: *** [all] Error 1</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 18, 2013 at 6:12 AM, Vassil Vassilev <span dir="ltr"><<a href="mailto:vvasilev@cern.ch" target="_blank">vvasilev@cern.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Richard,<br>
  I have filed a bugreport: <a href="https://sft.its.cern.ch/jira/browse/ROOT-5212" target="_blank">https://sft.its.cern.ch/jira/<u></u>browse/ROOT-5212</a><br>
  Please build cling from source, until that issue is fixed.<br>
Cheers,<br>
Vassil<br>
On 5/17/13 6:18 PM, RichardCatlin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Subject: error: no type named 'Interpreter' in namespace 'cling'; did you<br>
mean '::cling::Interpreter'?<br>
<br>
Hi,<br>
<br>
I downloaded the Mac binary.  I get the following error when I run ./cling.<br>
<br>
Any help is appreciated.<br>
<br>
Regards,<br>
Richard Catlin<br>
<br>
<br>
SDGL11fd4f1cb:bin rcatlin1$ ./cling<br>
ExecutionContext: use of undefined symbol<br>
'_ZN5cling7runtime8internal21_<u></u>_trigger__cxa_atexitD1Ev'!<br>
ExecutionContext::<u></u>runStaticInitializersOnce: symbol<br>
'_ZN5cling7runtime8internal21_<u></u>_trigger__cxa_atexitD1Ev' unresolved while<br>
linking static initializer '_GLOBAL__I_a'!<br>
In file included from -:1:<br>
input_line_3:1:45: error: no type named 'Interpreter' in namespace 'cling';<br>
did you mean '::cling::Interpreter'?<br>
namespace cling {namespace runtime { cling::Interpreter<br>
*gCling=(cling::Interpreter*)<u></u>140734543633080;} }<br>
                                      ~~~~~~~^~~~~~~~~~~<br>
                                             ::cling::Interpreter<br>
Stack dump:<br>
0.      input_line_3:1:45: current parser token 'Interpreter'<br>
1.      input_line_3:1:1: parsing namespace 'cling'<br>
2.      input_line_3:1:18: parsing namespace 'runtime'<br>
Segmentation fault: 11<br>
<br>
<br><span class="HOEnZb"><font color="#888888"><span><font color="#888888">
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/cling-tp3198446p4032174.html" target="_blank">http://clang-developers.42468.<u></u>n3.nabble.com/cling-<u></u>tp3198446p4032174.html</a><br>


Sent from the Clang Developers mailing list archive at Nabble.com.<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</font></span></font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
</font></span></blockquote></div><br></div>
</div><br></div>