public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Daniel Westermann (DWE) <[email protected]>
Cc: Tomas Vondra <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Meson and Numa: C header not found
Date: Thu, 10 Apr 2025 13:45:03 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <GV0P278MB0419BD909F5018FBBE67C98DD2B72@GV0P278MB0419.CHEP278.PROD.OUTLOOK.COM>
References: <GV0P278MB0419BD909F5018FBBE67C98DD2B72@GV0P278MB0419.CHEP278.PROD.OUTLOOK.COM>

"Daniel Westermann (DWE)" <[email protected]> writes:
> Even after restorecon I get this:

> Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0
> Run-time dependency numa found: YES 2.0.19

> ../postgresql/meson.build:957:12: ERROR: C header 'numa.h' not found

> ... which gives this in the log:

> Run-time dependency numa found: YES 2.0.19
> Using cached compile:
> Cached command line:  cc /home/postgres/build/meson-private/tmpjon5_bg2/testfile.c -E -P -D_FILE_OFFSET_BITS=64 -P -O0 

Ah-hah: the "cached" bit gave me the clue I needed.  I think
you ran "meson setup" without numactl-devel installed, and it
cached the fact that numa.h wasn't there.  I can reproduce
this error with

$ sudo dnf remove numactl-devel
$ git clean -dfxq
$ meson setup build
$ sudo dnf install numactl-devel
$ meson setup build --reconfigure

... which ends with

Run-time dependency numa found: YES 2.0.19

meson.build:957:12: ERROR: C header 'numa.h' not found

It's okay again after blowing away the build subdirectory
(e.g. via "git clean -dfxq") and trying again.

This implies that it caches info about header presence but
not library presence (else it wouldn't have thought that
the library was there either, I guess).  Kind of weird,
but I'm still learning about meson.

			regards, tom lane






view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Meson and Numa: C header not found
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox