Re: Meson and Numa: C header not found

2025-04-10 Thread Daniel Westermann (DWE)
>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. Thanks, Tom, Confirmed, starting from scratch does not show the issue anymore. Regard

Re: Meson and Numa: C header not found

2025-04-10 Thread Tomas Vondra
On 4/10/25 11:53, Daniel Westermann (DWE) wrote: >> >>    ninja -C build >> >> completes just fine. What exactly are the commands you're executing? >> >> >> FWIW I guess -hackers would be a better place for this question. > > Nothing special, just this: > > meson configure -Dprefix=${PGHOME} \

Re: Meson and Numa: C header not found

2025-04-10 Thread Tom Lane
"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

Re: Meson and Numa: C header not found

2025-04-10 Thread Daniel Westermann (DWE)
>That's just weird then.  The only other theory that comes to mind >is that there's something wrong with the SELinux attributes on these >fles.  restorecon might help if so. If that would be the case, then it is a packaging issue on Fedora, I guess. Even after restorecon I get this: Found pkg-co

Re: Meson and Numa: C header not found

2025-04-10 Thread Daniel Westermann (DWE)
>Just to confirm, do you have all of these in /usr/lib64? >$ ls -l /usr/lib64/libnuma* >lrwxrwxrwx. 1 root root16 Nov 4 19:00 /usr/lib64/libnuma.so -> >libnuma.so.1.0.0 >lrwxrwxrwx. 1 root root16 Nov 4 19:00 /usr/lib64/libnuma.so.1 -> >libnuma.so.1.0.0 >-rwxr-xr-x. 1 root root 62424 No

Re: Meson and Numa: C header not found

2025-04-10 Thread Tom Lane
"Daniel Westermann (DWE)" writes: >> Just to confirm, do you have all of these in /usr/lib64? > Yes, it it there That's just weird then. The only other theory that comes to mind is that there's something wrong with the SELinux attributes on these files. restorecon might help if so.

Re: Meson and Numa: C header not found

2025-04-10 Thread Tom Lane
"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 confi

Re: Meson and Numa: C header not found

2025-04-10 Thread Daniel Westermann (DWE)
>Tomas Vondra writes: >> On 4/10/25 08:00, Daniel Westermann (DWE) wrote: >>> I wanted to play a bit with the Numa stuff recently committed but Meson >>> fails to find numa.h: >>> Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0 >>> Run-time dependency numa found: YES 2.0.19 >>> >>> ../postgresq

Re: Meson and Numa: C header not found

2025-04-10 Thread Tom Lane
Tomas Vondra writes: > On 4/10/25 08:00, Daniel Westermann (DWE) wrote: >> I wanted to play a bit with the Numa stuff recently committed but Meson >> fails to find numa.h: >> Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0 >> Run-time dependency numa found: YES 2.0.19 >> >> ../postgresql/meson

Meson and Numa: C header not found

2025-04-10 Thread Daniel Westermann (DWE)
Hi, I wanted to play a bit with the Numa stuff recently committed but Meson fails to find numa.h: 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 Is this expected? The header file

Re: Meson and Numa: C header not found

2025-04-10 Thread Daniel Westermann (DWE)
> >   ninja -C build > >completes just fine. What exactly are the commands you're executing? > > >FWIW I guess -hackers would be a better place for this question. Nothing special, just this: meson configure -Dprefix=${PGHOME} \ -Dbindir=${PGHOME}/bin \ -Ddatadir=${

Re: Meson and Numa: C header not found

2025-04-10 Thread Tomas Vondra
On 4/10/25 08:00, Daniel Westermann (DWE) wrote: > Hi, > > I wanted to play a bit with the Numa stuff recently committed but Meson fails > to find numa.h: > > 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: ERR