[cfe-dev] Fwd: cling error: no type named 'Interpreter' in namespace 'cling'; did you mean '::cling::Interpreter'?

Richard Catlin richard.m.catlin at gmail.com
Fri May 24 14:00:41 PDT 2013


---------- Forwarded message ----------
From: Richard Catlin <richard.m.catlin at gmail.com>
Date: Sat, May 18, 2013 at 12:00 PM
Subject: Re: [cfe-dev] cling error: no type named 'Interpreter' in
namespace 'cling'; did you mean '::cling::Interpreter'?
To: Vassil Vassilev <vvasilev at cern.ch>


Vassil,

Thanks.  I can now get to the Cling shell.

Regards,
Richard Catlin


On Sat, May 18, 2013 at 10:59 AM, Vassil Vassilev <vvasilev at cern.ch> wrote:

>  Hi,
>   You should download the cling-compatible versions of clang and llvm. It
> can be found here:
> http://root.cern.ch/viewvc/trunk/interpreter/cling/LastKnownGoodLLVMSVNRevision.txt?view=markup
>   I have updated the documentation as well.
> Sorry for the inconvenience,
> Vassil
> On 5/18/13 11:17 AM, Richard Catlin wrote:
>
> Vassil,
>
>  I followed the instructions on this page.
> http://root.cern.ch/drupal/content/cling-build-instructions
>
>  I applied the patches:
>
> cat tools/cling/patches/*.diff | patch -p0
>
>  Regards,
> Richard
>
>
>
> On Sat, May 18, 2013 at 10:12 AM, Vassil Vassilev <vvasilev at cern.ch>wrote:
>
>>  Hi Richard,
>>   Thanks for trying. Did you apply the patches in cling_src/patches?
>> Cheers,
>> Vassil
>> PS: are you still in Aspen?
>> On 5/18/13 11:10 AM, Richard Catlin wrote:
>>
>> Vassil,
>>
>>  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.
>>
>>  Any idea?  I am really anxious to try cling, as an LLVM developer.  I
>> use LLVM as the runtime for a DSL.
>>
>>  Thank you.
>> Richard Catlin
>>
>>  llvm[4]: Compiling ParseDecl.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseDeclCXX.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseExpr.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseExprCXX.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseInit.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseObjc.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseOpenMP.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParsePragma.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseStmt.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseTemplate.cpp for Debug+Asserts build
>> llvm[4]: Compiling ParseTentative.cpp for Debug+Asserts build
>> llvm[4]: Compiling Parser.cpp for Debug+Asserts build
>> /Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/Parser.cpp:548:39:
>> error: variable has incomplete type
>> 'clang::DestroyTemplateIdAnnotationsRAIIObj'
>>   DestroyTemplateIdAnnotationsRAIIObj CleanupRAII(*this);
>>                                       ^
>> /Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:48:9:
>> note: forward declaration of 'clang::DestroyTemplateIdAnnotationsRAIIObj'
>>   class DestroyTemplateIdAnnotationsRAIIObj;
>>         ^
>> /Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/Parser.cpp:602:39:
>> error: variable has incomplete type
>> 'clang::DestroyTemplateIdAnnotationsRAIIObj'
>>   DestroyTemplateIdAnnotationsRAIIObj CleanupRAII(*this);
>>                                       ^
>> /Users/rcatlin1/cling-dev/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:48:9:
>> note: forward declaration of 'clang::DestroyTemplateIdAnnotationsRAIIObj'
>>   class DestroyTemplateIdAnnotationsRAIIObj;
>>         ^
>> 2 errors generated.
>> make[4]: ***
>> [/Users/rcatlin1/cling-dev/build/tools/clang/lib/Parse/Debug+Asserts/Parser.o]
>> Error 1
>> make[3]: *** [Parse/.makeall] Error 2
>> make[2]: *** [all] Error 1
>> make[1]: *** [clang/.makeall] Error 2
>> make: *** [all] Error 1
>>
>>
>>
>> On Sat, May 18, 2013 at 6:12 AM, Vassil Vassilev <vvasilev at cern.ch>wrote:
>>
>>> Hi Richard,
>>>   I have filed a bugreport:
>>> https://sft.its.cern.ch/jira/browse/ROOT-5212
>>>   Please build cling from source, until that issue is fixed.
>>> Cheers,
>>> Vassil
>>> On 5/17/13 6:18 PM, RichardCatlin wrote:
>>>
>>>> Subject: error: no type named 'Interpreter' in namespace 'cling'; did
>>>> you
>>>> mean '::cling::Interpreter'?
>>>>
>>>> Hi,
>>>>
>>>> I downloaded the Mac binary.  I get the following error when I run
>>>> ./cling.
>>>>
>>>> Any help is appreciated.
>>>>
>>>> Regards,
>>>> Richard Catlin
>>>>
>>>>
>>>> SDGL11fd4f1cb:bin rcatlin1$ ./cling
>>>> ExecutionContext: use of undefined symbol
>>>> '_ZN5cling7runtime8internal21__trigger__cxa_atexitD1Ev'!
>>>> ExecutionContext::runStaticInitializersOnce: symbol
>>>> '_ZN5cling7runtime8internal21__trigger__cxa_atexitD1Ev' unresolved while
>>>> linking static initializer '_GLOBAL__I_a'!
>>>> In file included from -:1:
>>>> input_line_3:1:45: error: no type named 'Interpreter' in namespace
>>>> 'cling';
>>>> did you mean '::cling::Interpreter'?
>>>> namespace cling {namespace runtime { cling::Interpreter
>>>> *gCling=(cling::Interpreter*)140734543633080;} }
>>>>                                       ~~~~~~~^~~~~~~~~~~
>>>>                                              ::cling::Interpreter
>>>> Stack dump:
>>>> 0.      input_line_3:1:45: current parser token 'Interpreter'
>>>> 1.      input_line_3:1:1: parsing namespace 'cling'
>>>> 2.      input_line_3:1:18: parsing namespace 'runtime'
>>>> Segmentation fault: 11
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://clang-developers.42468.n3.nabble.com/cling-tp3198446p4032174.html
>>>> Sent from the Clang Developers mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> cfe-dev mailing list
>>>> cfe-dev at cs.uiuc.edu
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>>
>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130524/d2011625/attachment.html>


More information about the cfe-dev mailing list