I tried again to build 4.13.0 from the source code in the Release branch, and there must be some minor detail I am missing. The section of the log where you are seeing the errors appear looks like this to me:
I did notice in your log that you appear to be using an environment variable or something similar for your root path location (~PATHTOUNREAL~). If you don’t use this, does it work for you?