Re: compiling postgres on windows arm using meson

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Dave Cramer <davecramer(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: compiling postgres on windows arm using meson
Date: 2024-01-30 13:43:31
Message-ID: CAN55FZ2QdoLdd_NJonZ1ajtdw7ihC3fxBGnoYrwy+TmA_J30hQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Thu, 18 Jan 2024 at 05:07, Dave Cramer <davecramer(at)gmail(dot)com> wrote:
>
> Greetings,
> Getting the following error
>
> [1146/2086] Generating src/backend/postgres.def with a custom command (wrapped by meson to set PATH)
> FAILED: src/backend/postgres.def
> "C:\Program Files\Meson\meson.exe" "--internal" "exe" "--unpickle" "C:\Users\davec\projects\postgresql\build\meson-private\meson_exe_perl.EXE_53b41ebc2e76cfc92dd6a2af212140770543faae.dat"
> while executing ['c:\\perl\\bin\\perl.EXE', '../src/backend/../tools/msvc_gendef.pl', '--arch', 'aarch64', '--tempdir', 'src/backend/postgres.def.p', '--deffile', 'src/backend/postgres.def', 'src/backend/postgres_lib.a', 'src/common/libpgcommon_srv.a', 'src/port/libpgport_srv.a']
> --- stdout ---
>
> --- stderr ---
> Usage: msvc_gendef.pl --arch <arch> --deffile <deffile> --tempdir <tempdir> files-or-directories
> arch: x86 | x86_64
> deffile: path of the generated file
> tempdir: directory for temporary files
> files or directories: object files or directory containing object files
>
> log attached

From the docs [1]: PostgreSQL will only build for the x64 architecture
on 64-bit Windows.

So, I think that is expected.

[1] https://www.postgresql.org/docs/current/install-windows-full.html#INSTALL-WINDOWS-FULL-64-BIT

--
Regards,
Nazir Bilal Yavuz
Microsoft

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2024-01-30 13:44:25 Re: Functions to return random numbers in a given range
Previous Message Andrew Dunstan 2024-01-30 13:38:40 Re: [PATCH] Add native windows on arm64 support