The 1.5.1 release claims it fixes msys2/mingw64 compile issues, but those weren't committed until May 25th and the tag was release May 1st. https://github.com/postgrespro/pgsphere/pull/123 Just tested that tag to confirm it doesn't compile against msys2/mingw64, but master does.