Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890164 - sys-apps/systemd-252.4: fail with bpf-framework enabled, A call to built-in function '__stack_chk_fail' is not supported
Summary: sys-apps/systemd-252.4: fail with bpf-framework enabled, A call to built-in f...
Status: RESOLVED DUPLICATE of bug 890004
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-08 01:00 UTC by Yixun Lan
Modified: 2023-01-08 01:03 UTC (History)
0 users

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


Attachments
full build.log.xz (build.log.xz,20.88 KB, application/x-xz)
2023-01-08 01:01 UTC, Yixun Lan
Details

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