@ronsn the GCC version, GNU 7.5.0 is below the required 9.3.1 https://wiki.blender.org/wiki/Building_Blender#Compiler_Versions . Also, the c++ version was bumped up to C++17.
Also, later on, if CUDA complains, see this post: Wrong GCC version For CUDA (Linux) -- How to solve