thank you for your reply, I had messed up the re-opening of the old post (Slow startup - #18 by OtaviusDecius), you should be able to reply there now. In any case, @Axel fyi.
That’s missing the compiler’s name (where all those spaces are)… I am traveling now but I will need to find out why cling doesn’t state any compiler here.
Do you have the file ./interpreter/cling/lib/Interpreter/cling-compiledata.h? If so, could you attach it? (it’s only there in a build directory I believe).
So things work well with c++ but not so with ccache… We use ccache for out CI, too - I’ll find out what its CLING_CXX_RLTV + verbose output says. I’ll be back!
OK back with good news: we use ccache but our ./interpreter/cling/lib/Interpreter/cling-compiledata.h says
#define CLING_CXX_RLTV "x86_64-linux-gnu-g++-9 "
How do you tell cmake to use ccache? The way we do it is through the cmake flag -Dccache=On - that allows us to understand what’s happening, without “hiding” the compiler.
[lgemedia@zabriskie ~]$ time root.exe -b -n -q; time root.exe -l -n -q-q
------------------------------------------------------------------
| Welcome to ROOT 6.26/06 https://root.cern |
| (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Nov 02 2022, 10:03:00 |
| From heads/latest-stable@274b476a |
| With c++ (GCC) 11.3.1 20220421 (Red Hat 11.3.1-3) |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
real 0m2.025s
user 0m0.790s
sys 0m1.195s
root: unrecognized option '-q-q'
Try 'root --help' for more information.
real 0m1.900s
user 0m0.723s
sys 0m1.139s
My cling-compiledata.h continues showing the ccache:
time root.exe -b -n -q; time root.exe -l -n -q
------------------------------------------------------------------
| Welcome to ROOT 6.26/06 https://root.cern |
| (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Nov 02 2022, 10:03:00 |
| From heads/latest-stable@274b476a |
| With c++ (GCC) 11.3.1 20220421 (Red Hat 11.3.1-3) |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
real 0m1.861s
user 0m0.649s
sys 0m1.156s
real 0m1.852s
user 0m0.670s
sys 0m1.123s
Indeed - removing it just triggers CMake to recreate it - and this time hopefully correctly so. You might have to still override earlier settings, with -DCMAKE_CXX_COMPILER=$(which g++) -DCMAKE_C_COMPILER=$(which gcc) - check your cling-compiledata.h and CMakeCache.txt, please.