Re: Postgres 32 bits client compilation fail. Win32 bits client is supported?

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Postgres 32 bits client compilation fail. Win32 bits client is supported?
Date: 2020-02-10 03:55:09
Message-ID: CAMsr+YHE9TEY3LCnx5=Vr9K927c=7J9TLAuBovVmgDEKdHDorg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 9 Feb 2020 at 15:35, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Sat, Feb 8, 2020 at 8:05 AM Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> wrote:
> >
> > Hi,
> > I am migrating my applications that use postgres client from msvc 2010 (32bits) to msvc 2019 (32 bits).
> > Compilation using msvc 2019 (64 bits), works very well.
> > But the build using msvc 2019 (32 bit) is not working.
> > The 32-bit Platform variable is set to x86, resulting in the first error.
> >
> > "Project" C: \ dll \ postgres \ pgsql.sln "on node 1 (default targets).
> > C: \ dll \ postgres \ pgsql.sln.metaproj: error MSB4126: The specified solution configuration "Release | x86" is invalid. Plea
> > if specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sl
> > n / p: Configuration = Debug / p: Platform = "Any CPU") or leave those properties blank to use the default solution configurati
> > on. [C: \ dll \ postgres \ pgsql.sln]
> > Done Building Project "C: \ dll \ postgres \ pgsql.sln" (default targets) - FAILED. "
> >
> > This is because the Sub DeterminePlatform function of the Solution.pm program uses the following expression:
> > "my $ output =` cl /? 2> & 1`; "
> > The result of msvc 2019 (32bits) is:
> > "Microsoft (R) C / C ++ Optimizing Compiler Version 19.24.28315 for x86"
> >
> > By setting the Platform variable manually to WIn32, the compilation process continues until it stops at:
> > "Generating configuration headers ..."
> >
> > Where the second error occurs:
> > unused defines: HAVE_STRUCT_CMSGCRED
> > USE_NAMED_POSI ... etc ...
> > ALIGNOF_DOUBLE USE_DEV_URANDOM at C: \ dll \ postgres \ src \ tools \ msvc / Mkvcbuild.pm line 842.
> >
>
> Try by removing src/include/pg_config.
>
> > Question:
> > Will Postgres continue to support 32-bit client?
> >
>
> I am not aware of any discussion related to stopping the support of
> 32-bit client.

Buildfarm member whelk reports for 32-bit Windows.

https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=whelk&br=HEAD

https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=whelk&br=REL_12_STABLE

It says it uses Microsoft Visual C++ 2010 .

I don't see any other members building for 32-bit. But it should work
and as you say, nothing's been discussed about removing it.

--
Craig Ringer http://www.2ndQuadrant.com/
2ndQuadrant - PostgreSQL Solutions for the Enterprise

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2020-02-10 04:01:26 Re: subplan resets wrong hashtable
Previous Message Amit Langote 2020-02-10 03:54:10 Re: Identifying user-created objects