Short version: After compiling ROOT 6.22.06 from source, the first command I enter interactively hangs. The second and subsequent commands execute normally. Example (I hit Ctrl-C after waiting a while; once I even waited overnight):
$ root
------------------------------------------------------------------
| Welcome to ROOT 6.22/06 https://root.cern |
| (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Nov 27 2020, 15:14:08 |
| From tags/v6-22-06@v6-22-06 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0] TH1D test("test","test",100,-3,3);
^C
*** Break *** keyboard interrupt
Root >
root [1] TH1D test("test","test",100,-3,3);
root [2] TH1D test2("test2","test",100,-3,3);
root [3]
Details:
I’ve compiled ROOT from source since ROOT6 was released. I use a custom installation of GCC 6.4 and Python 3.6 (to take advantage of the latest language features), but never had a problem through ROOT 6.18.04.
But when I compiled 6.20 and later 6.22, the above problem emerged. I’ve tried recompiling with different GCC and Python versions (e.g., GCC 9.2 and Python 3.8), but the issue remains. I also tried including enough CMake options to make my build match the pre-built binaries; no change.
If I download the pre-built binaries for CentOS 7, they work fine, but of course I can’t take advantage of the latest C++ language features.
At this point, there is my standard CMake command:
vers=6.22.06
CC=${GCC_DIR}/bin/gcc CXX=${GCC_DIR}/bin/g++ cmake \
-DCMAKE_INSTALL_PREFIX=/usr/nevis/el7/root-${vers} \
-Dminuit2:BOOL=ON \
../root-${vers}
The OS is CentOS 7, cmake version 3.16.4, GCC 6.4 (or higher), Python 3.6 (or higher).
What am I missing? Is there any way to trace why interactive ROOT is hanging only on the first command?
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.22.06
Platform: CentOS 7
Compiler: GCC 6.4.0