https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114993
--- Comment #1 from Marc Poulhiès <dkm at gcc dot gnu.org> --- After discussing on IRC, C++ (or anything != C) is not supported by BPF. The fix is probably to display an error when using anything else than the C FE. The Rust FE gives another error: https://c.godbolt.org/z/TeWa3cshd bpf-unknown-gcc: warning: <source>: linker input file unused because linking not done Not sure why it does not even use crab1 in this case.