[quote=“ferhue”]I had the same problem with the “Options.inc” in Ubuntu 16.04, for gcc 4.9 as well as gcc 5.4.
I am not really sure how I solved it, I tried two things (a and b) at the same time and then it suddenly worked.
a) Remove the git repository and clone again. Remove build directory and rebuild from scratch
I’m running a script that contains (effectively) the following commands
git clone http://root.cern.ch/git/root.git root_source
cmake -Dall="ON" -Dsoversion="ON" -Dqtgsi="OFF" ../root_source >> cmake.out.txt 2>&1
cmake --build . >> cmake.out.txt 2>&1
cmake -DCMAKE_INSTALL_PREFIX=/home/mcf/applications/bin/root -P cmake_install.cmake
sudo cmake --build . --target install >> cmake.out.txt 2>&1
and before I run it every time I’m ensuring I’m running a totally clean install
rm -rf root_source root
b) Install libclang-dev, and then step a)
I followed [url=https://root-forum.cern.ch/t/root-build-suddenly-failing-ubuntu-16-04-lts/21739/1 Le Pew’s suggestion[/url] of purging anything installed relating to clang and cling, and then installed libclang-dev and reran my script with gcc 5.4. I once again got the same failure (with the logs once again attached).
cmake.out.txt (59.1 KB)