capable-bpfcc fails to launch due to bpf compilation error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bpfcc (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Noble |
New
|
Undecided
|
Unassigned | ||
linux-hwe-6.11 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Noble |
Invalid
|
Undecided
|
Unassigned |
Bug Description
$ sudo capable-bpfcc
[sudo] password for ryan-lee:
In file included from /virtual/main.c:14:
In file included from include/
In file included from arch/x86/
In file included from arch/x86/
In file included from arch/x86/
arch/x86/
47 | return this_cpu_
| ^
arch/x86/
577 | #define this_cpu_
| ^
arch/x86/
163 | #define __raw_cpu_
| ^
arch/x86/
155 | *(qual __my_cpu_type(pcp) *)__my_
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-
arch/x86/
94 | #define __my_cpu_type(var) typeof(var) __percpu_
| ^
arch/x86/
45 | # define __percpu_
| ^
<built-in>:358:33: note: expanded from macro '__seg_gs'
358 | #define __seg_gs __attribute_
| ^
In file included from /virtual/main.c:14:
In file included from include/
In file included from arch/x86/
In file included from arch/x86/
In file included from arch/x86/
arch/x86/
arch/x86/
577 | #define this_cpu_
| ^
arch/x86/
163 | #define __raw_cpu_
| ^
arch/x86/
155 | *(qual __my_cpu_type(pcp) *)__my_
| ^
arch/x86/
94 | #define __my_cpu_type(var) typeof(var) __percpu_
| ^
arch/x86/
45 | # define __percpu_
| ^
<built-in>:358:33: note: expanded from macro '__seg_gs'
358 | #define __seg_gs __attribute_
| ^
In file included from /virtual/main.c:15:
In file included from include/
arch/x86/
545 | return this_cpu_
| ^
arch/x86/
577 | #define this_cpu_
| ^
arch/x86/
163 | #define __raw_cpu_
| ^
arch/x86/
155 | *(qual __my_cpu_type(pcp) *)__my_
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-
arch/x86/
94 | #define __my_cpu_type(var) typeof(var) __percpu_
| ^
arch/x86/
45 | # define __percpu_
| ^
<built-in>:358:33: note: expanded from macro '__seg_gs'
358 | #define __seg_gs __attribute_
| ^
In file included from /virtual/main.c:15:
In file included from include/
arch/x86/
arch/x86/
577 | #define this_cpu_
| ^
arch/x86/
163 | #define __raw_cpu_
| ^
arch/x86/
155 | *(qual __my_cpu_type(pcp) *)__my_
| ^
arch/x86/
94 | #define __my_cpu_type(var) typeof(var) __percpu_
| ^
arch/x86/
45 | # define __percpu_
| ^
<built-in>:358:33: note: expanded from macro '__seg_gs'
358 | #define __seg_gs __attribute_
| ^
In file included from /virtual/main.c:16:
In file included from include/
include/
349 | return sizeof(struct bpf_wq);
| ^ ~~~~~~~~~~~~~~~
include/
349 | return sizeof(struct bpf_wq);
| ^
include/
378 | return __alignof__(struct bpf_wq);
| ^ ~~~~~~~~~~~~~~~
include/
378 | return __alignof__(struct bpf_wq);
| ^
4 warnings and 2 errors generated.
Traceback (most recent call last):
File "/usr/sbin/
b = BPF(text=bpf_text)
File "/usr/lib/
raise Exception("Failed to compile BPF module %s" % (src_file or "<text>"))
Exception: Failed to compile BPF module <text>
$ uname -a
Linux ryan-lee-
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: bpfcc-tools 0.29.1+ds-1ubuntu7
ProcVersionSign
Uname: Linux 6.11.0-25-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed May 7 11:24:13 2025
InstallationDate: Installed on 2024-07-25 (286 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: bpfcc
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in linux-hwe-6.11 (Ubuntu Noble): | |
status: | New → Triaged |
Note: this affects linux-hwe-6.11 but not linux-generic (6.8).