Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 933138

Summary: sys-devel/distcc-3.4-r3 needs a patch to compile Clang BPF like used by dev-util/perf[bpf]
Product: Gentoo Linux Reporter: Maciej S. Szmigiero <mail>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: UNCONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/distcc/distcc/commit/7f0d80dfe16577f55822ba86a1539e53f9d54417
Whiteboard:
Package list:
Runtime testing required: ---

Description Maciej S. Szmigiero 2024-05-29 23:18:13 UTC
sys-devel/distcc-3.4-r3 adds an unwanted "-target" to Clang BPF compile command, which breaks building (at least) dev-util/perf[bpf]:
> util/bpf_skel/off_cpu.bpf.c:110:6: error: use of unknown builtin '__builtin_preserve_field_info' [-Wimplicit-function-declaration]
>   110 |         if (bpf_core_field_exists(t_new->__state)) {
>       |             ^
> /var/tmp/portage/dev-util/perf-6.9/work/linux-6.9/tools/perf/libbpf/include/bpf/bpf_core_read.h:187:2: note: expanded from macro 'bpf_core_field_exists'
>   187 |         __builtin_preserve_field_info(___bpf_field_ref(field), BPF_FIELD_EXISTS)
>       |         ^
> 23 warnings and 1 error generated.
> distcc[2530125] ERROR: compile util/bpf_skel/off_cpu.bpf.c on localhost failed

Upstream patch at $URL fixes this and allows dev-util/perf[bpf] to build successfully with distcc.