Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933138 - sys-devel/distcc-3.4-r3 needs a patch to compile Clang BPF like used by dev-util/perf[bpf]
Summary: sys-devel/distcc-3.4-r3 needs a patch to compile Clang BPF like used by dev-u...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL: https://github.com/distcc/distcc/comm...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-05-29 23:18 UTC by Maciej S. Szmigiero
Modified: 2024-05-30 02:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.