Re: FW: Building Postgres 17.0 with meson - Mailing list pgsql-hackers

From Robert Haas
Subject Re: FW: Building Postgres 17.0 with meson
Date
Msg-id CA+TgmoYqHJSN66KgO08424G_tJyrUF3MjbQT4B2Dt6-9xV-g8w@mail.gmail.com
Whole thread Raw
In response to FW: Building Postgres 17.0 with meson  (Mark Hill <Mark.Hill@sas.com>)
List pgsql-hackers
On Wed, Nov 6, 2024 at 2:59 PM Mark Hill <Mark.Hill@sas.com> wrote:
> Srinath is in India I believe and not available currently.   Does anybody have any idea why meson
>
> is not finding the paths I’m specifying with the -Dextra_lib_dirs and  -Dextra_include_dirs?  See below.

I am not an expert on this topic, but do use these options on macOS
and they do work for me. A typical 'meson setup' invocation for me is:

meson setup $HOME/pgsql $HOME/pgsql-meson -Dcassert=true -Ddebug=true
-Dextra_include_dirs=/opt/local/include
-Dextra_lib_dirs=/opt/local/lib -Dprefix=$HOME/install/dev

In your example, you set
extra_lib_dirs=%openssl_directory%,%zlib_directory%,%icu4c_directory%.
Those aren't actually pathnames, so something (your shell, for
instance) would have to be substituting the actual correct pathnames.
Maybe that isn't happening, or maybe the pathnames that are being
substituted are not the right ones, or maybe they don't contain the
files that meson thinks they ought to contain.

One thing that you could do is have a look at the meson log file. On
my machine, that shows up inside the directory where I run 'meson
setup' at meson-logs/meson-logs.txt. I am not sure if it's different
on Windows. If you look in that file for strings like icu or openssl
or zlib, you may be able to understand what is going wrong.

As far as "Srinath is in India I believe and not available currently,"
while that is probably true, I'm not sure that's really the issue.
Your original email didn't give the exact command you ran, the exact
output you got, or any error messages or log files. Your follow-up
email didn't include any of that either, except material quoted from
another email that you apparently sent off-list, and even that wasn't
nearly as detailed as many posts that you will see here. Also, see
also the "Email etiquette mechanics" section of
https://wiki.postgresql.org/wiki/Mailing_Lists which suggests keeping
replies on-list and not top-posting.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Maiquel Grassi
Date:
Subject: RE: Rename Function: pg_postmaster_start_time
Next
From: Tom Lane
Date:
Subject: Re: Rename Function: pg_postmaster_start_time