Dear @Axel, thank you for the support. I managed to solve the issue by purging all the loaded modules and building ROOT again from a clean environment. The problem was therefore caused by one or more of them, could be an unsupported CMake/GCC/Python/OpenMPI version.
Thank you