Re: Trying to build x86 version on windows using meson

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, Dave Cramer <davecramer(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Trying to build x86 version on windows using meson
Date: 2024-03-21 05:48:46
Message-ID: CAD5tBcJ8+HtKDYcemQqRAWwuTO5CPy4yBJpHO7BR=qjNYDSTuw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Mar 20, 2024 at 6:21 PM Andres Freund <andres(at)anarazel(dot)de> wrote:

> Hi,
>
> On 2024-03-21 11:02:27 +1300, David Rowley wrote:
> > On Thu, 21 Mar 2024 at 11:00, Andres Freund <andres(at)anarazel(dot)de> wrote:
> > >
> > > On 2024-03-20 17:49:14 -0400, Dave Cramer wrote:
> > > > First off this is on an ARM64 machine
> > >
> > > Uh, that's a fairly crucial bit - you're actually trying to cross
> compile
> > > then. I don't know much about cross compiling on windows, so it's
> certainly
> > > possible there's still some gaps there.
> >
> > How would initdb.exe / pg_regress.exe even run on the x86 build
> > machine if it's compiled for ARM?
>
> I think this is building on an ARM64 host, targeting 32bit x86.
>
> Obviously tests can't run in that environment, but building should be
> possible. I can e.g. build postgres for x86-64 windows on my linux machine,
> but can't run the tests (in theory they could be run with wine, but wine
> isn't
> complete enough to run postgres).
>

Windows apparently has some magic built in for this:

https://learn.microsoft.com/en-us/windows/arm/apps-on-arm-x86-emulation

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2024-03-21 05:53:48 Re: Introduce XID age and inactive timeout based replication slot invalidation
Previous Message Stojan Dimitrovski 2024-03-21 05:37:24 Re: Proposal: Introduce row-level security templates