Обсуждение: compiling postgres on windows arm using meson
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
Вложения
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