Build / Compile error

G’day,

I am attempting to build cling under OSX and am getting the compilation error below.
Is it safe to make the edit to get the code to compile?

Help appreciated.

Philip

llvm[4]: Compiling LookupHelper.cpp for Debug+Asserts build
/llvm/llvm/tools/cling/lib/Interpreter/LookupHelper.cpp:620:39: error: no matching constructor for initialization of
’sema::TemplateDeductionInfo’
sema::TemplateDeductionInfo TDI(Context, SourceLocation());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/llvm/llvm/tools/cling/lib/Interpreter/…/…/…/clang/include/clang/Sema/TemplateDeduction.h:45:3: note: candidate constructor not
viable: requires 1 argument, but 2 were provided
TemplateDeductionInfo(const TemplateDeductionInfo &) LLVM_DELETED_FUNCTION;
^
/llvm/llvm/tools/cling/lib/Interpreter/…/…/…/clang/include/clang/Sema/TemplateDeduction.h:49:3: note: candidate constructor not
viable: requires 1 argument, but 2 were provided
TemplateDeductionInfo(SourceLocation Loc)
^
1 error generated.
make[4]: *** [/llvm/build/tools/cling/lib/Interpreter/Debug+Asserts/LookupHelper.o] Error 1
make[3]: *** [I

Hi Philip,

You are likely to have a mismatch between the version of LLVM and the version of cling. See the file cling/interpreter/cling/LastKnownGoodLLVMSVNRevision.txt to know which revision of LLVM to use.

Cheers,
Philippe.

OK -
Downloaded the latest known good version of llvm / clang and
the build process now works - and I am now away.

Thanks very much.

Philip