Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64

NISHIYAMA Tomoaki <tomoakin@staff.kanazawa-u.ac.jp>

From: NISHIYAMA Tomoaki <tomoakin@staff.kanazawa-u.ac.jp>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: NISHIYAMA Tomoaki <tomoakin@staff.kanazawa-u.ac.jp>, pgsql-hackers@postgresql.org
Date: 2011-11-25T04:13:12Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Remove troublesome Asserts in cost_mergejoin().

  2. Enable building with the Mingw64 compiler.

Hi,

> The way to build natively with a mingw-w64 compiler is doumented fairly simply at <http://www.postgresql.org/docs/current/static/installation-platform-notes.html#INSTALLATION-NOTES-MINGW>:
> 
>   To build 64 bit binaries using MinGW, install the 64 bit tool set
>   from http://mingw-w64.sourceforge.net/, put its bin directory in the
>   PATH, and run configure with the --host=x86_64-w64-mingw option. 
> 
> This is exactly how the buildfarm member pitta was set up.
> 
> The only issue here is how to add support for using the 32bit mingw-w64 compiler in pretty much the same way.


I hope that configure --host=i686-w64-mingw use 32 bit tool sets and 
construct a 32 bit binary.  It is mostly the same procedure and should have
sufficient information to distinguish them.  Both 64 bit and 32 bit binaries
should be runnable on the same 64 bit system.

Best regards,