The next item is this:
gfortran -Wall -O2 -c cubtri.f
I modified the file (see attachment). I have checked it with my usual check files and goes well. Further checking would require running all test files and compare with the ones provided by developers.