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 1u2uTz-007e9g-W1 for pgsql-general@arkaria.postgresql.org; Thu, 10 Apr 2025 16:10:27 +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 1u2uTx-00E2IR-Mc for pgsql-general@arkaria.postgresql.org; Thu, 10 Apr 2025 16:10:26 +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 1u2uTx-00E2Hr-CU for pgsql-general@lists.postgresql.org; Thu, 10 Apr 2025 16:10:25 +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 1u2uTv-0045NH-2F for pgsql-general@lists.postgresql.org; Thu, 10 Apr 2025 16:10:24 +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 53AGAK5Q526423; Thu, 10 Apr 2025 12:10:20 -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: <99060f87-f477-4de1-b4cb-f195eaae5322@vondra.me> <510775.1744295595@sss.pgh.pa.us> Comments: In-reply-to "Daniel Westermann (DWE)" message dated "Thu, 10 Apr 2025 15:48:40 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <526421.1744301420.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 10 Apr 2025 12:10:20 -0400 Message-ID: <526422.1744301420@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Daniel Westermann (DWE)" writes: > Tomas Vondra writes: >> On 4/10/25 08:00, Daniel Westermann (DWE) wrote: >>> ../postgresql/meson.build:957:12: ERROR: C header 'numa.h' not found > It is there: > postgres@pgbox:/home/postgres/ [DEV] ls /usr/include/numa.h > /usr/include/numa.h Just to confirm, do you have all of these in /usr/lib64? $ ls -l /usr/lib64/libnuma* lrwxrwxrwx. 1 root root 16 Nov 4 19:00 /usr/lib64/libnuma.so -> libnum= a.so.1.0.0 lrwxrwxrwx. 1 root root 16 Nov 4 19:00 /usr/lib64/libnuma.so.1 -> libn= uma.so.1.0.0 -rwxr-xr-x. 1 root root 62424 Nov 4 19:00 /usr/lib64/libnuma.so.1.0.0 As of HEAD, line 957 of meson.build is if not cc.has_header('numa.h', dependencies: libnuma, required: libnumao= pt) I'm not familiar at all with meson, but I wonder exactly what the dependencies: bit does. That kind of looks like it might cause the check to fail if the libnuma library isn't there, which is something we do need to check, but doing it this way seems like it'd produce a pretty misleading failure message if numa.h exists but the library doesn't. regards, tom lane