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
Created attachment 847866 [details] full build.log.xz
Sounds like there's another issue of automagic. *** This bug has been marked as a duplicate of bug 890004 ***