So… this error occurs because you are building a very old kernel with a recent compiler. The instructions you are following were written in 2015 and, as @ljking warned you, some of the numbers in it need updating.
In particular you need to substitute this line:
git checkout -b kernel-15.07 ubuntu-qcom-dragonboard410c-15.07
With the one from the release you are trying to build. For example in the notes that accompany the latest release then this line reads:
git checkout -b kernel-18.01 debian-qcom-dragonboard410c-18.01
I think it is also likely that you no longer need the subsequent cherry-pick command (it looks to me like the cherry pick is to grab a bug fix that I suspect we long ago addressed).