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

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

2025-01-02 Thread Jose E. Marchesi 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 (fu

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 [

gcc-12-20250102 is now available

2025-01-02 Thread GCC Administrator via Gcc
Snapshot gcc-12-20250102 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20250102/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: smtgcc end-of-year update

2025-01-02 Thread Andi Kleen via Gcc
Krister Walfridsson via Gcc writes: > But running smtgcc on the test suite is not the best use case for the > tool -- it only detects bugs where the test triggers an unrelated bug > compared to what the test is checking, which should be uncommon. I > therefore plan to start testing by compiling r

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

2025-01-02 Thread Jose E. Marchesi via Gcc
> On Thursday, January 2nd, 2025 at 1:47 AM, 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 d

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

2025-01-02 Thread Ihor Solodrai via Gcc
On Thursday, January 2nd, 2025 at 1:47 AM, 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 (fu

Re: [RFC] Enabling SVE with offloading to nvptx

2025-01-02 Thread Andrew Stubbs
On 27/12/2024 12:29, Prathamesh Kulkarni wrote: -Original Message- From: Jakub Jelinek Sent: 17 December 2024 19:09 To: Prathamesh Kulkarni Cc: Andrew Stubbs ; Richard Biener ; Richard Biener ; gcc@gcc.gnu.org; Thomas Schwinge Subject: Re: [RFC] Enabling SVE with offloading to nvptx

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

2025-01-02 Thread Jose E. Marchesi via Gcc
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 [6]). > > In file included from /usr/include/x86_64-linux-gnu/sys/ty