Hi, I got Cling to compile using the instructions that you made available http://root.cern.ch/drupal/content/cling-build-instructions. (By the way, why not using git submodules, rather than having users clone subdirectories? It would allow you to refer to specific revisions of the dependencies in the version control. )
Everything works well, I can run cling successfully from the build directory. However, running sudo make install
fails at the stage:
Here is what I get
clang: /home/ubuntu/cling/cling_src/tools/clang/lib/CodeGen/CGDebugInfo.cpp:3314
: void clang::CodeGen::CGDebugInfo::finalize(): Assertion `Ty.isForwardDecl()' f
ailed.
0 clang 0x0000000003fa02ee llvm::sys::PrintStackTrace(_IO_FILE*) + 46
1 clang 0x0000000003fa05cb
2 clang 0x0000000003fa1aea
3 libpthread.so.0 0x00002b454a1a5340
4 libc.so.6 0x00002b454b036bb9 gsignal + 57
5 libc.so.6 0x00002b454b039fc8 abort + 328
6 libc.so.6 0x00002b454b02fa76
7 libc.so.6 0x00002b454b02fb22
8 clang 0x0000000000d6d8ef clang::CodeGen::CGDebugInfo::finalize() +
543
9 clang 0x0000000000de8cfa clang::CodeGen::CodeGenModule::Release() +
1482
10 clang 0x0000000000d4ac60
11 clang 0x0000000000d47b4f
12 clang 0x0000000001050213 clang::ParseAST(clang::Sema&, bool, bool)
+ 803
13 clang 0x00000000009fcb19 clang::ASTFrontendAction::ExecuteAction()
+ 345
14 clang 0x0000000000d472c8 clang::CodeGenAction::ExecuteAction() + 14
48
15 clang 0x00000000009fc358 clang::FrontendAction::Execute() + 120
16 clang 0x00000000009badf1 clang::CompilerInstance::ExecuteAction(cla
ng::FrontendAction&) + 801
17 clang 0x0000000000970ed9 clang::ExecuteCompilerInvocation(clang::Co
mpilerInstance*) + 1049
18 clang 0x000000000095982f cc1_main(char const**, char const**, char
const*, void*) + 703
19 clang 0x0000000000969666 main + 790
20 libc.so.6 0x00002b454b021ec5 __libc_start_main + 245
21 clang 0x00000000009594a9
Stack dump:
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linu
x-gnu -emit-obj -mrelax-all -disable-free -main-file-name CIFactory.cpp -mreloca
tion-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -fmath-errno -ma
sm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x8
6-64 -target-linker-version 2.24 -g -dwarf-column-info -ffunction-sections -fdat
a-sections -coverage-file /home/ubuntu/cling/cling_build/tools/cling/lib/Interpr
eter/Debug+Asserts/CIFactory.o -resource-dir /usr/local/bin/../lib/clang/3.6.0 -
dependency-file /home/ubuntu/cling/cling_build/tools/cling/lib/Interpreter/Debug
+Asserts/CIFactory.d.tmp -MP -MT /home/ubuntu/cling/cling_build/tools/cling/lib/
Interpreter/Debug+Asserts/CIFactory.o -MT /home/ubuntu/cling/cling_build/tools/c
ling/lib/Interpreter/Debug+Asserts/CIFactory.d -D _DEBUG -D _GNU_SOURCE -D __STD
C_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D CLING_VERSIO
N="0.2~dev " -D CLING_INCLUDE_PATHS="/usr/local/include:/home/ubuntu/cling/cling
_src/tools/cling/include:/home/ubuntu/cling/cling_src/tools/clang/include:/home/
ubuntu/cling/cling_src/include" -I /home/ubuntu/cling/cling_build/include -I /ho
me/ubuntu/cling/cling_build/tools/cling/lib/Interpreter -I /home/ubuntu/cling/cl
ing_src/include -I /home/ubuntu/cling/cling_src/tools/cling/lib/Interpreter -I /
home/ubuntu/cling/cling_src/tools/cling/lib/Interpreter/../../include -I /home/u
buntu/cling/cling_build/tools/cling/lib/Interpreter/../../include -I /home/ubunt
u/cling/cling_build/tools/cling/lib/Interpreter/Debug+Asserts -I /home/ubuntu/cl
ing/cling_src/tools/cling/lib/Interpreter/../../include -I /home/ubuntu/cling/cl
ing_src/tools/cling/lib/Interpreter/../../../clang/include -I /home/ubuntu/cling
/cling_src/tools/cling/lib/Interpreter/../../../clang/lib -I /home/ubuntu/cling/
cling_build/tools/cling/lib/Interpreter/../../include -I /home/ubuntu/cling/clin
g_build/tools/cling/lib/Interpreter/../../../clang/include -I /usr/local/include
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
/x86_64-linux-gnu -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../.
./include/c++/4.8/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/.
./../../../include/x86_64-linux-gnu/c++/4.8 -internal-isystem /usr/local/include
-internal-isystem /usr/local/bin/../lib/clang/3.6.0/include -internal-externc-i
system /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -interna
l-externc-isystem /usr/include -Woverloaded-virtual -Wcast-qual -Wno-long-long -
Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -Wno-unin
itialized -Wno-missing-field-initializers -pedantic -std=c++11 -fdeprecated-macr
o -fdebug-compilation-dir /home/ubuntu/cling/cling_build/tools/cling/lib/Interpr
eter -ferror-limit 19 -fmessage-length 80 -fvisibility-inlines-hidden -mstackrea
lign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-o /home/ubuntu/cling/cling_build/tools/cling/lib/Interpreter/Debug+Asserts/CIFa
ctory.o -x c++ /home/ubuntu/cling/cling_src/tools/cling/lib/Interpreter/CIFactor
y.cpp
1. <eof> parser at end of file
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocat
ion)
clang version 3.6.0 (http://root.cern.ch/git/clang.git bcefb6f80ea2fd7f437cba4a4
6fe9952666e768c) (http://root.cern.ch/git/llvm.git 88c56cd6d6aec0c44e9ca5aa96b35
4c1261a95aa)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/
and include the crash backtrace, preprocessed source, and associated run script
.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/CIFactory-60e605.cpp
clang: note: diagnostic msg: /tmp/CIFactory-60e605.sh
clang: note: diagnostic msg:
********************
Any clue?