Pavel Golub <pavel@microolap.com> writes:
> Following instructions on Wiki
> https://wiki.postgresql.org/wiki/Building_With_MinGW I was trying to
> cross compile PostgreSQL 10.1 from a Linux box (Ubuntu 16.04). But it
> always fails on configure step. I tried two different systems, results
> are the same.
> $ ./configure --host=i686-w64-mingw32
Hm, are you sure you interpreted the wiki page's directions properly?
If you are running on a 64-bit Linux box, I think you need
--host=x86_64-w64-mingw32
I'm trying this on a Fedora box right now, and although it's
really slow, it seems to be working ...
regards, tom lane