compiling postgres on windows arm using meson
Started by Dave Crameralmost 2 years ago2 messages
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
Dave Cramer
Attachments:
Re: compiling postgres on windows arm using meson
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 fileslog attached
From the docs [1]https://www.postgresql.org/docs/current/install-windows-full.html#INSTALL-WINDOWS-FULL-64-BIT: 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