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

Bug 890164

Summary: sys-apps/systemd-252.4: fail with bpf-framework enabled, A call to built-in function '__stack_chk_fail' is not supported
Product: Gentoo Linux Reporter: Yixun Lan <dlan>
Component: Current packagesAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: riscv   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: full build.log.xz

Description Yixun Lan archtester gentoo-dev 2023-01-08 01:00:39 UTC
on riscv64 machine, if systemd built with dev-util/bpftool-5.19.12 installed, bpf-framework will be automatically enabled, then we will get this error:

[461/2303] /usr/lib/llvm/15/bin/clang -std=gnu11 -Wno-compare-distinct-pointer-types -O2 -target bpf -g -c -D__riscv -D__riscv_xlen=64 -I. -isystem /usr/include/riscv64-unkno
wn-linux-gnu -idirafter /usr/include ../systemd-stable-252.4/src/core/bpf/socket_bind/socket-bind.bpf.c -o src/core/bpf/socket_bind/socket-bind.bpf.unstripped.o
FAILED: src/core/bpf/socket_bind/socket-bind.bpf.unstripped.o
/usr/lib/llvm/15/bin/clang -std=gnu11 -Wno-compare-distinct-pointer-types -O2 -target bpf -g -c -D__riscv -D__riscv_xlen=64 -I. -isystem /usr/include/riscv64-unknown-linux-gn
u -idirafter /usr/include ../systemd-stable-252.4/src/core/bpf/socket_bind/socket-bind.bpf.c -o src/core/bpf/socket_bind/socket-bind.bpf.unstripped.o
../systemd-stable-252.4/src/core/bpf/socket_bind/socket-bind.bpf.c:96:5: error: A call to built-in function '__stack_chk_fail' is not supported.
int sd_bind4(struct bpf_sock_addr *ctx) {
    ^
../systemd-stable-252.4/src/core/bpf/socket_bind/socket-bind.bpf.c:104:5: error: A call to built-in function '__stack_chk_fail' is not supported.
int sd_bind6(struct bpf_sock_addr *ctx) {
    ^


Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2023-01-08 01:01:44 UTC
Created attachment 847866 [details]
full build.log.xz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-08 01:02:57 UTC
Sounds like there's another issue of automagic.

*** This bug has been marked as a duplicate of bug 890004 ***