Hello.

I've been unable to build PostgreSQL using Meson on Windows. As I'm
unsure of the cause, I'm providing this as a report.

In brief, the ninja command fails with the following error message on
my Windows environment.

>ninja -v
ninja: error: 'src/backend/postgres_lib.a.p/meson_pch-c.obj', needed by 
'src/backend/postgres.exe', missing and no known rule to make it

I'd like to note that I haven't made any modification to meson.build,
therefore, b_pch should be false. (I didn't confirm that because the
python scripts are executables on my environment..) However,
build.ninja actually contains several entries referencing
meson_pch-c.obj, despite lacking corresponding entries to build them:

> build src/backend/postgres.exe | src/backend/postgres.pdb: c_LINKER_RSP 
> src/backend/postgres.exe.p/win32ver.res 
> src/backend/postgres_lib.a.p/meson_pch-c.obj ..

An excerpted output from the command "ninja".

>ninja
Version: 1.2.1
...
Build type: native build
Project name: postgresql
Project version: 17devel
C compiler for the host machine: cl (msvc 19.34.31935 "Microsoft(R) C/C++ 
Optimizing Compiler Version 19.34.31935 for x64")
C linker for the host machine: link link 14.34.31935.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
...
Program python found: YES 
(C:\Users\horiguti\AppData\Local\Programs\Python\Python310\python.EXE)
...
Program C:\Users\horiguti\AppData\Local\Programs\Python\Python310\Scripts\meson 
found: YES 
(C:\Users\horiguti\AppData\Local\Programs\Python\Python310\Scripts\meson.exe)
...
Found ninja-1.11.1.git.kitware.jobserver-1 at 
C:\Users\horiguti\AppData\Local\Programs\Python\Python310\Scripts\ninja.EXE
Cleaning... 0 files.
ninja: error: 'src/backend/postgres_lib.a.p/meson_pch-c.obj', needed by 
'src/backend/postgres.exe', missing and no known rule to make it

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center


Reply via email to