[quote=“Pepe Le Pew”]There is a similar mysterious problem reported here: Compiling Root 6 on Ubuntu 16.04
Maybe you could try to run (report here what is found):
sudo dpkg --list “*”|grep -i “cl[ai]ng”
and if you have any such package installed, try to “sudo apt-get purge …” all of them.[/quote]
The following packages related to Clang/Cling were found and have been purged:
[ul][li]clang:amd64 (1:3.8-33ubuntu3.1)[/li]
[li]clang-3.8:amd64 (1:3.8-2ubuntu4)[/li]
[li]libclang1-3.4:amd64 ()[/li]
[li]libclang1-3.6:amd64 (1:3.6.2-3ubuntu2)[/li]
[li]libclang1-3.8:amd64 (1:3.8-2ubuntu4)[/li]
[li]libclang-common-3.8-dev:amd64 (1:3.8-2ubuntu4)[/li][/ul]
Unfortunately, I still get the same error as before when building.
Interestingly, trying to build a newer commit (baf4ba4d9028d76db906a495132aa486500aab7d) using only a single core (i.e. running “make” instead of “make -j 5” to exclude possible, if unlikely, race conditions) results in a new error message:
[ 14%] Building CXX object interpreter/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/InvocationOptions.cpp.o
In file included from /home/xxxxxx/.local/opt/root_source/interpreter/cling/lib/Interpreter/InvocationOptions.cpp:13:0:
/home/xxxxxx/.local/opt/root_source/interpreter/cling/../llvm/src/tools/clang/include/clang/Driver/Options.h:41:36: fatal error: clang/Driver/Options.inc: No such file or directory
compilation terminated.
interpreter/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/build.make:643: recipe for target 'interpreter/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/InvocationOptions.cpp.o' failed
make[2]: *** [interpreter/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/InvocationOptions.cpp.o] Error 1
CMakeFiles/Makefile2:8444: recipe for target 'interpreter/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/all' failed
make[1]: *** [interpreter/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
There are “Options.inc” files in the following locations (relative to the repository root directory):
./interpreter/llvm/inst/include/clang/Driver/Options.inc
./interpreter/llvm/obj/tools/clang/include/clang/Driver/Options.inc
The corresponding CMake and build outputs should be attached to this post.
buildlog.txt (45.6 KB)
configure.txt (11.3 KB)