A student of mine saw this message below when trying to use the latest Go compiler 1.25.1.
After rolling back to go1.24.2 windows/amd64, it compiled and ran fine.
This was with my Quando project
Has anyone else had these issues? Scared to upgrade the compiler now 
Thank you - Andy
I’ve checked myself and the same issue occurs with 1.25.1 and also
go version go1.25.2 windows/amd64
So - rolling back to 1.24.2 for now
Interesting. I am currently on 1.24.2 myself but I will keep an eye out for this when I upgrade to 1.25.
Note: this also works on 1.24.8 so seems to be a 1.25.1/2 issue at present.
I ran the compiler on the command line (adding -v didn’t report anything out of the ordinary) and the command line reported
The specified executable is not a valid application for this OS platform.
I did try reporting this here - Failed to Launch · Issue #75871 · golang/go · GitHub - but it was closed as not planned 
At this point, I don’t know how to discover anything else except chopping out parts of my project until it stops failing - and I don’t have time at the moment to do that…
Does anyone have any ideas how to get a better idea of what is going wrong? e.g. compiler flag options …
Best wishes - Andy
Huh. What command is causing it to fail? Are you just go run-ing your project?
Also - I’m using Go 1.25.3 on a web server just fine (I just updated because my Docker dependency scanner flagged security vulnerabilities for earlier versions).
I tried go run and building an exe
Ok - found time to track this down - needed to update the MinGW I was using.
I’m using Robotgo - this triggered the issue with a simple program instantly.
I was using an old version of MinGW to run GCC - I updated MinGW (to 15.2.0 from 8.2.0) and everything now builds and runs fine.
So an incompatibility with an old version of MinGW - so quite obscure…
Best wishes - Andy