Hmm not sure what’s going on then for 5.34/38 (or patches).
Did you install the dependencies beforehand? Dependencies - ROOT
Did you get any error messages while compiling?
You can post the logs here, using this command:
./configure --enable-soversion --all > configure.out.txt 2>&1
make > make.out.txt 2>&1
See also Error in installing root 5.34.05