<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 12:00 PM<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"><div>Vassil,</div><div><br></div>Thanks. I can now get to the Cling shell.<div><br></div><div>Regards,</div><div>Richard Catlin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, May 18, 2013 at 10:59 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">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
You should download the cling-compatible versions of clang and
llvm. It can be found here:
<a href="http://root.cern.ch/viewvc/trunk/interpreter/cling/LastKnownGoodLLVMSVNRevision.txt?view=markup" target="_blank">http://root.cern.ch/viewvc/trunk/interpreter/cling/LastKnownGoodLLVMSVNRevision.txt?view=markup</a><br>
I have updated the documentation as well.<br>
Sorry for the inconvenience,<br>
Vassil<br>
On 5/18/13 11:17 AM, Richard Catlin wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Vassil,
<div><br>
</div>
<div>I followed the instructions on this page.</div>
<div><a href="http://root.cern.ch/drupal/content/cling-build-instructions" target="_blank">http://root.cern.ch/drupal/content/cling-build-instructions</a><br>
</div>
<div><br>
</div>
<div>I applied the patches:</div>
<div>
<pre style="line-height:16px;font-size:12px;margin:0.5em;padding:0.5em">cat tools/cling/patches/*.diff | patch -p0</pre>
</div>
<div>
Regards,</div>
<div>Richard</div>
<div>
<pre style="line-height:16px;font-size:12px;margin:0.5em;padding:0.5em"></pre>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, May 18, 2013 at 10: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">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Richard,<br>
Thanks for trying. Did you apply the patches in
cling_src/patches?<br>
Cheers,<br>
Vassil<br>
PS: are you still in Aspen?<br>
On 5/18/13 11:10 AM, Richard Catlin wrote:<br>
</div>
<blockquote type="cite">
<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/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__trigger__cxa_atexitD1Ev'!<br>
ExecutionContext::runStaticInitializersOnce:
symbol<br>
'_ZN5cling7runtime8internal21__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*)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><font color="#888888">
<span><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.n3.nabble.com/cling-tp3198446p4032174.html</a><br>
Sent from the Clang Developers mailing
list archive at Nabble.com.<br>
_______________________________________________<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/mailman/listinfo/cfe-dev</a><br>
</font></span></font></span></font></span></blockquote><span><font color="#888888">
<span><font color="#888888"> <br>
</font></span></font></span></blockquote><span><font color="#888888">
<span><font color="#888888"> </font></span></font></span></div><span><font color="#888888">
<span><font color="#888888"> <br>
</font></span></font></span></div><span><font color="#888888">
</font></span></blockquote><span><font color="#888888">
<br>
</font></span></div><span><font color="#888888">
</font></span></blockquote><span><font color="#888888">
</font></span></div><span><font color="#888888">
<br>
</font></span></div>
</blockquote>
<br>
</div>
</blockquote></div><br></div>
</div><br></div>