Hi @laurent.aphecetche,
see e.g. this thread for ROOT on Apple M1: it is supported as of ROOT v6.22/06.
You don’t even have to compile it from source, you can install it e.g. via conda (it takes a few minutes with a good internet connection).
With that said, I am not sure what’s causing the compilation errors you see, it has to do with Mac Graphics, maybe @Axel or @couet have an idea.
Cheers,
Enrico