Re: Errors compiling BPF programs from Linux selftests/bpf with GCC

2025-01-02 Thread Eduard Zingerman via Gcc
On Thu, 2025-01-02 at 10:47 +0100, Jose E. Marchesi wrote: > Hi Ihor. > Thanks for working on this! :) > > > [...] > > Older versions compile the dummy program without errors, however on > > attempt to build the selftests there is a different issue: conflicting > > int64 definitions (full log at [

Re: Errors compiling BPF programs from Linux selftests/bpf with GCC

2025-01-02 Thread Eduard Zingerman via Gcc
On Fri, 2025-01-03 at 01:16 +0100, Jose E. Marchesi wrote: [...] > Yes, in the GCC BPF backend we are using > >   use_gcc_stdint=provide > > which makes GCC to provide the version of stdint.h that assumes > freestanding ("baremetal") mode. If we changed it to use > >   use_gcc_stdint=wrap >

Re: Errors compiling BPF programs from Linux selftests/bpf with GCC

2025-01-02 Thread Eduard Zingerman via Gcc
On Thu, 2025-01-02 at 19:24 +0100, Jose E. Marchesi wrote: [...] > IMO the BPP selftest (and BPF programs in general) must not include host > glibc headers at all, regardless of what BPF compiler is used. The > glibc headers installed in the host are tailored to some particular > architecture, b