Re: compiling postgres on windows arm using meson - Mailing list pgsql-hackers

From Nazir Bilal Yavuz
Subject Re: compiling postgres on windows arm using meson
Date
Msg-id CAN55FZ2QdoLdd_NJonZ1ajtdw7ihC3fxBGnoYrwy+TmA_J30hQ@mail.gmail.com
Whole thread Raw
In response to compiling postgres on windows arm using meson  (Dave Cramer <davecramer@gmail.com>)
List pgsql-hackers
Hi,

On Thu, 18 Jan 2024 at 05:07, Dave Cramer <davecramer@gmail.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



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] Add native windows on arm64 support
Next
From: Dean Rasheed
Date:
Subject: Re: Functions to return random numbers in a given range