I'm trying to compile .137 with some gear shift fixes made directly to the drivers (not applying any diffs).
I decided to stick with the version currently on my driving cab because I'm afraid of California Speed and SF Rush running slower.
It took a lot of tweaking to get them running at a reasonable speed.
Just as an experiment, I'd done this with v.142 using Headkaze's MAME Compiler 64 and everything worked fine. Only changed a couple drivers on that run though.
The version of MAME Compiler 64 that corresponds with v.137 doesn't seem to be available, so I tried version 1.17 and it didn't work (should it?)
Next, I tried to compile it via command line using the tools that mamedev provides.
(Using an older version of the tools that corresponds to v.137)
The first time I ran it, it appeared to work except for errors in one of the drivers I had messed with.
It appeared not to create the mame.exe
So I redid my changes to that driver and tried again.
(I don't know how to code, I'm copying and pasting from a diff file meant for an older version of MAME, but it worked on v.142)
Now it doesn't get very far before I get the following errors:

Anyone know what's going on without going to too much trouble?
I've deleted everything in the folder, re-extracted MingGW into it and still get the same error.
I've also tried compiling unmodified v.137 and still get the same error.
EDIT: I KEPT SCREWING UP SETTING THE PATH