Have you changed the qt version?
The first log is using 5.9.4+gitAUTOINC+0d9208cecb, while the lastest log shows 5.10.1+gitAUTOINC+6c6ace9d23.
I tried to reproduce your issue with qtbase 5.9.4 here and the build passed in my Ubuntu 16.04.
So this seems to be a environment issue.