Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2vxg-007zNO-1u for pgsql-general@arkaria.postgresql.org; Thu, 10 Apr 2025 17:45:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u2vxd-00FMGw-Fr for pgsql-general@arkaria.postgresql.org; Thu, 10 Apr 2025 17:45:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2vxd-00FMGn-4q for pgsql-general@lists.postgresql.org; Thu, 10 Apr 2025 17:45:09 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u2vxb-00465p-13 for pgsql-general@lists.postgresql.org; Thu, 10 Apr 2025 17:45:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 53AHj3YD535405; Thu, 10 Apr 2025 13:45:03 -0400 From: Tom Lane To: "Daniel Westermann (DWE)" cc: Tomas Vondra , "pgsql-general@lists.postgresql.org" Subject: Re: Meson and Numa: C header not found In-reply-to: References: Comments: In-reply-to "Daniel Westermann (DWE)" message dated "Thu, 10 Apr 2025 17:18:31 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <535403.1744307103.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 10 Apr 2025 13:45:03 -0400 Message-ID: <535404.1744307103@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Daniel Westermann (DWE)" 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=3D64 -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