Errors compiling BPF programs from Linux selftests/bpf with GCC

2024-12-30 Thread Ihor Solodrai via Gcc
Hello everyone. I picked up the work adding GCC BPF backend to BPF CI pipeline [1], originally done by Cupertino Miranda [2]. I encountered issues compiling BPF objects for selftests/bpf with recent GCC 15 snapshots. An additional test runner binary is supposed to be generated by tools/testing/se

Interested in contributing & GSOC

2024-12-30 Thread Aditya Dutt via Gcc
Hello, I am interested in compilers and have been trying to understand GCC for some time. I am watching the GRC lectures [0] althought I know they are a bit outdated and the FOSDEM 2024 GCC devroom lectures [1]. I have been trying to understand the build system (what files get created during bui

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

2024-12-30 Thread Andrew Pinski via Gcc
On Mon, Dec 30, 2024 at 12:11 PM Ihor Solodrai via Gcc wrote: > > Hello everyone. > > I picked up the work adding GCC BPF backend to BPF CI pipeline [1], > originally done by Cupertino Miranda [2]. > > I encountered issues compiling BPF objects for selftests/bpf with > recent GCC 15 snapshots. An

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

2024-12-30 Thread Ihor Solodrai via Gcc
On Monday, December 30th, 2024 at 4:42 PM, Alexei Starovoitov wrote: > > > On Mon, Dec 30, 2024 at 12:59 PM Ihor Solodrai ihor.solod...@pm.me wrote: > > > On Monday, December 30th, 2024 at 12:36 PM, Sam James s...@gentoo.org wrote: > > > > > Andrew Pinski via Gcc gcc@gcc.gnu.org writes: > >

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

2024-12-30 Thread Ihor Solodrai via Gcc
On Monday, December 30th, 2024 at 12:36 PM, Sam James wrote: > > > Andrew Pinski via Gcc gcc@gcc.gnu.org writes: > > > On Mon, Dec 30, 2024 at 12:11 PM Ihor Solodrai via Gcc gcc@gcc.gnu.org > > wrote: > > > > > Hello everyone. > > > > > > I picked up the work adding GCC BPF backend to BPF C

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

2024-12-30 Thread Sam James via Gcc
Andrew Pinski via Gcc writes: > On Mon, Dec 30, 2024 at 12:11 PM Ihor Solodrai via Gcc > wrote: >> >> Hello everyone. >> >> I picked up the work adding GCC BPF backend to BPF CI pipeline [1], >> originally done by Cupertino Miranda [2]. >> >> I encountered issues compiling BPF objects for selft

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

2024-12-30 Thread Sam James via Gcc
Ihor Solodrai writes: > On Monday, December 30th, 2024 at 12:36 PM, Sam James wrote: > >> > >> > >> Andrew Pinski via Gcc gcc@gcc.gnu.org writes: >> > >> > On Mon, Dec 30, 2024 at 12:11 PM Ihor Solodrai via Gcc gcc@gcc.gnu.org >> > wrote: >> > > >> > > Hello everyone. >> > > > >> > > I pic

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

2024-12-30 Thread Alexei Starovoitov via Gcc
On Mon, Dec 30, 2024 at 5:26 PM Ihor Solodrai wrote: > > > > > > > #if STDC_VERSION < 202311L > > > enum { > > > false = 0, > > > true = 1, > > > }; > > > #endif > > > > > > Any drawbacks to this? > > > > > > By special hacking this specific enum in bpftool ? > > Feels like overkill when just addi

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

2024-12-30 Thread Alexei Starovoitov via Gcc
On Mon, Dec 30, 2024 at 12:59 PM Ihor Solodrai wrote: > > On Monday, December 30th, 2024 at 12:36 PM, Sam James wrote: > > > > > > > Andrew Pinski via Gcc gcc@gcc.gnu.org writes: > > > > > On Mon, Dec 30, 2024 at 12:11 PM Ihor Solodrai via Gcc gcc@gcc.gnu.org > > > wrote: > > > > > > > Hello eve