Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd-256.6 fails compile with bpf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shaumux
Veteran
Veteran


Joined: 13 May 2005
Posts: 1013
Location: Hamburg

PostPosted: Mon Oct 07, 2024 10:38 am    Post subject: systemd-256.6 fails compile with bpf Reply with quote

Hi

I'm having trouble with systemd-256.6, it's failing to compile if I enable `BPF` useflag.

These seem to be the relevant errors in the compile log
Quote:

[687/1854] x86_64-pc-linux-gnu-gcc -Isrc/resolve/libsystemd-resolve-core.a.p -Isrc/resolve -I../systemd-256.6/src/resolve -Isrc/basic -I../systemd-256.6/src/basic -Isrc/fundamental -I../systemd-256.6/src/fundamental -Isrc/systemd -I../systemd-256.6/src/systemd -I. -I../systemd-256.6 -I../systemd-256.6/src/libsystemd/sd-bus -I../systemd-256.6/src/libsystemd/sd-device -I../systemd-256.6/src/libsystemd/sd-event -I../systemd-256.6/src/libsystemd/sd-hwdb -I../systemd-256.6/src/libsystemd/sd-id128 -I../systemd-256.6/src/libsystemd/sd-journal -I../systemd-256.6/src/libsystemd/sd-netlink -I../systemd-256.6/src/libsystemd/sd-network -I../systemd-256.6/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-256.6/src/shared -flto=7 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays=3 --param=ssp-buffer-size=4 -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -Werror=shadow -march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections -fdata-sections -include config.h -MD -MQ src/resolve/libsystemd-resolve-core.a.p/resolved-dns-answer.c.o -MF src/resolve/libsystemd-resolve-core.a.p/resolved-dns-answer.c.o.d -o src/resolve/libsystemd-resolve-core.a.p/resolved-dns-answer.c.o -c ../systemd-256.6/src/resolve/resolved-dns-answer.c
[688/1854] /usr/bin/bpf-unknown-none-gcc -std=gnu11 -fno-stack-protector -fno-ssa-phiopt -O2 -mcpu=v3 -mco-re -gbtf -c -D__x86_64__ -mlittle-endian -I. -isystem /usr/include/x86_64-pc-linux-gnu -idirafter /usr/include ../systemd-256.6/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c -o src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.unstripped.o -I/var/tmp/portage/sys-apps/systemd-256.6/work/systemd-256.6-abi_x86_64.amd64
FAILED: src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.unstripped.o
/usr/bin/bpf-unknown-none-gcc -std=gnu11 -fno-stack-protector -fno-ssa-phiopt -O2 -mcpu=v3 -mco-re -gbtf -c -D__x86_64__ -mlittle-endian -I. -isystem /usr/include/x86_64-pc-linux-gnu -idirafter /usr/include ../systemd-256.6/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c -o src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.unstripped.o -I/var/tmp/portage/sys-apps/systemd-256.6/work/systemd-256.6-abi_x86_64.amd64
../systemd-256.6/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c: In function 'validate_inode_on_mount':
../systemd-256.6/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c:81: error: assignment to 'struct user_namespace *' from incompatible pointer type 'struct user_namespace___9 *' [-Wincompatible-pointer-types]
81 | mount_userns = m->mnt_ns->user_ns;
../systemd-256.6/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c:85: error: assignment to 'struct user_namespace *' from incompatible pointer type 'struct user_namespace___162 *' [-Wincompatible-pointer-types]
85 | task_userns = task->cred->user_ns;
../systemd-256.6/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c: In function 'validate_path':
../systemd-256.6/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c:127: error: assignment to 'struct inode *' from incompatible pointer type 'struct inode___16 *' [-Wincompatible-pointer-types]
127 | inode = path->dentry->d_inode;
[689/1854] /var/tmp/portage/sys-apps/systemd-256.6/work/systemd-256.6/tools/meson-render-jinja2.py config.h ../systemd-256.6/man/custom-entities.ent.in man/custom-entities.ent
[690/1854] x86_64-pc-linux-gnu-gcc -Isrc/resolve/libsystemd-resolve-core.a.p -Isrc/resolve -I../systemd-256.6/src/resolve -Isrc/basic -I../systemd-256.6/src/basic -Isrc/fundamental -I../systemd-256.6/src/fundamental -Isrc/systemd -I../systemd-256.6/src/systemd -I. -I../systemd-256.6 -I../systemd-256.6/src/libsystemd/sd-bus -I../systemd-256.6/src/libsystemd/sd-device -I../systemd-256.6/src/libsystemd/sd-event -I../systemd-256.6/src/libsystemd/sd-hwdb -I../systemd-256.6/src/libsystemd/sd-id128 -I../systemd-256.6/src/libsystemd/sd-journal -I../systemd-256.6/src/libsystemd/sd-netlink -I../systemd-256.6/src/libsystemd/sd-network -I../systemd-256.6/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-256.6/src/shared -flto=7 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays=3 --param=ssp-buffer-size=4 -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -Werror=shadow -march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections -fdata-sections -include config.h -MD -MQ src/resolve/libsystemd-resolve-core.a.p/resolved-dns-rr.c.o -MF src/resolve/libsystemd-resolve-core.a.p/resolved-dns-rr.c.o.d -o src/resolve/libsystemd-resolve-core.a.p/resolved-dns-rr.c.o -c ../systemd-256.6/src/resolve/resolved-dns-rr.c
[691/1854] x86_64-pc-linux-gnu-gcc -Isrc/resolve/libsystemd-resolve-core.a.p -Isrc/resolve -I../systemd-256.6/src/resolve -Isrc/basic -I../systemd-256.6/src/basic -Isrc/fundamental -I../systemd-256.6/src/fundamental -Isrc/systemd -I../systemd-256.6/src/systemd -I. -I../systemd-256.6 -I../systemd-256.6/src/libsystemd/sd-bus -I../systemd-256.6/src/libsystemd/sd-device -I../systemd-256.6/src/libsystemd/sd-event -I../systemd-256.6/src/libsystemd/sd-hwdb -I../systemd-256.6/src/libsystemd/sd-id128 -I../systemd-256.6/src/libsystemd/sd-journal -I../systemd-256.6/src/libsystemd/sd-netlink -I../systemd-256.6/src/libsystemd/sd-network -I../systemd-256.6/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-256.6/src/shared -flto=7 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays=3 --param=ssp-buffer-size=4 -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -Werror=shadow -march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections -fdata-sections -include config.h -MD -MQ src/resolve/libsystemd-resolve-core.a.p/resolved-dns-dnssec.c.o -MF src/resolve/libsystemd-resolve-core.a.p/resolved-dns-dnssec.c.o.d -o src/resolve/libsystemd-resolve-core.a.p/resolved-dns-dnssec.c.o -c ../systemd-256.6/src/resolve/resolved-dns-dnssec.c
[692/1854] x86_64-pc-linux-gnu-gcc -Isrc/resolve/libsystemd-resolve-core.a.p -Isrc/resolve -I../systemd-256.6/src/resolve -Isrc/basic -I../systemd-256.6/src/basic -Isrc/fundamental -I../systemd-256.6/src/fundamental -Isrc/systemd -I../systemd-256.6/src/systemd -I. -I../systemd-256.6 -I../systemd-256.6/src/libsystemd/sd-bus -I../systemd-256.6/src/libsystemd/sd-device -I../systemd-256.6/src/libsystemd/sd-event -I../systemd-256.6/src/libsystemd/sd-hwdb -I../systemd-256.6/src/libsystemd/sd-id128 -I../systemd-256.6/src/libsystemd/sd-journal -I../systemd-256.6/src/libsystemd/sd-netlink -I../systemd-256.6/src/libsystemd/sd-network -I../systemd-256.6/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-256.6/src/shared -flto=7 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays=3 --param=ssp-buffer-size=4 -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -Werror=shadow -march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections -fdata-sections -include config.h -MD -MQ src/resolve/libsystemd-resolve-core.a.p/resolved-dns-packet.c.o -MF src/resolve/libsystemd-resolve-core.a.p/resolved-dns-packet.c.o.d -o src/resolve/libsystemd-resolve-core.a.p/resolved-dns-packet.c.o -c ../systemd-256.6/src/resolve/resolved-dns-packet.c



Quote:

emerge --info systemd
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-14, glibc-2.40-r4, 6.10.10-zen1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.10.10-zen1-x86_64-AMD_Ryzen_7_1700X_Eight-Core_Processor-with-glibc2.40
KiB Mem: 16290048 total, 2144120 free
KiB Swap: 12582908 total, 12550592 free
Timestamp of repository gentoo: Sun, 06 Oct 2024 16:00:01 +0000
Head commit of repository gentoo: 89de13ab4bad1ae327baf8624d1890d497434e58
Head commit of repository brave-overlay: cd7938f6c0be52656b3e1902a16bc7cc7ad2d27e

Timestamp of repository calculate: Fri, 04 Oct 2024 10:33:24 +0000
Head commit of repository calculate: 4f7cacee392509cdfb28c4c326dbccd55c443bea

Timestamp of repository java: Wed, 02 Oct 2024 09:19:05 +0000
Head commit of repository java: 53021b4b02a61d1b8d60c80944f1997bd89fb91c

Timestamp of repository kde: Sat, 05 Oct 2024 21:48:20 +0000
Head commit of repository kde: 2bf4cd79b3e594c7b5fd77f7d2f3ca7519aa5d09

Head commit of repository kubler: f27332ead5b440c6fdddc24ca19407189a8701fb

Timestamp of repository qt: Sun, 08 Sep 2024 18:36:41 +0000
Head commit of repository qt: 11a7cd8e7447586b6106f02bf6f9ac4934f9375c

Timestamp of repository steam-overlay: Tue, 01 Oct 2024 20:48:55 +0000
Head commit of repository steam-overlay: b299cf5b58600d0c055253a5e590189aa414c3a0

Timestamp of repository wayland-desktop: Tue, 01 Oct 2024 20:49:00 +0000
Head commit of repository wayland-desktop: 93fb915253acbeff328f87c50de8ff881fce7c8e

Timestamp of repository guru: Fri, 04 Oct 2024 10:33:25 +0000
Head commit of repository guru: 7dc7e51ed084621d9b0378d75adf0724a4677826

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p2) 2.43.1
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.17-r1::gentoo
dev-build/cmake: 3.30.4::gentoo
dev-build/libtool: 2.5.3::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.5.2::gentoo
dev-java/java-config: 2.3.4::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0_rc3::gentoo
dev-lang/rust: 1.81.0::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-apps/systemd: 256.6::gentoo
sys-devel/binutils: 2.43-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang: 18.1.8::gentoo, 19.1.1::gentoo
sys-devel/gcc: 14.2.1_p20240921::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 18.1.8::gentoo, 19.1.1::gentoo
sys-devel/llvm: 18.1.8-r4::gentoo, 19.1.1::gentoo
sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r4::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts: --new-compress
sync-rsync-verify-jobs: 16

brave-overlay
location: /var/db/repos/brave-overlay
sync-type: git
sync-uri: https://gitlab.com/jason.oliveira/brave-overlay.git
masters: gentoo
volatile: False

calculate
location: /var/db/repos/calculate
sync-type: git
sync-uri: https://github.com/gentoo-mirror/calculate.git
masters: gentoo
volatile: False

java
location: /var/db/repos/java
sync-type: git
sync-uri: https://github.com/gentoo-mirror/java.git
masters: gentoo
volatile: False

kde
location: /var/db/repos/kde
sync-type: git
sync-uri: https://github.com/gentoo-mirror/kde.git
masters: gentoo
volatile: False

kubler
location: /var/db/repos/kubler
sync-type: git
sync-uri: https://github.com/edannenberg/kubler-overlay/
masters: gentoo
volatile: False

qt
location: /var/db/repos/qt
sync-type: git
sync-uri: https://github.com/gentoo-mirror/qt.git
masters: gentoo
volatile: False

shaumux
location: /var/db/repos/shaumux
masters: gentoo
volatile: False

steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
volatile: False

wayland-desktop
location: /var/db/repos/wayland-desktop
sync-type: git
sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
masters: gentoo
volatile: False

guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
priority: 100
volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -flto=7 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -flto=7 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -flto=7 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -ftree-vectorize -fomit-frame-pointer -ftree-loop-distribution -fgraphite-identity -floop-nest-optimize -O2 -pipe -flto=7 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_IE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold"
LEX="flex"
MAKEOPTS="-j10"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 apparmor appstream avif bluetooth branding bzip2 cairo cdda cdr cet colord crypt cups dbus declarative dri dts dvd dvdr encode exif flac flatpak gdbm gif gpm gtk gtk4 gui heif ibus iconv icu ipv6 jit jpeg kde keyring kf6compat kwallet lcms libnotify libtirpc lm_sensors lto mad mmx mng modules-compress modules-sign mp3 mp4 mpeg mtp multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit postgres ppds pulseaudio qml qt6 readline samba screencast sdl seccomp semantic-desktop sound spell sse sse2 ssl startup-notification svg systemd test-rust tiff tpm truetype udev udisks unicode upnp upower usb vaapi vorbis vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xml xvid zlib zsh-completion" ABI_X86="32 64" ADA_TARGET="gcc_12" AMDGPU_TARGETS="gfx1031" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 pclmul sha" CURL_QUIC="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="x86_64 aarch64" QEMU_USER_TARGETS="x86_64 aarch64" RUBY_TARGETS="ruby32" VIDEO_CARDS="vesa radeonsi amdgpu fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


and finally trying to compile with the following flags
Quote:

sys-apps/systemd-256.6:0/2::gentoo USE="acl apparmor audit bpf* cryptsetup curl elfutils fido2 gcrypt homed kernel-install kmod lz4 openssl pam pcre pkcs11 (policykit) pwquality seccomp sysv-utils tpm xkb zstd -boot -cgroup-hybrid -dns-over-tls -gnutls -http -idn -importd -iptables -lzma -qrcode -resolvconf -secureboot (-selinux) (-split-usr) -test -ukify -vanilla" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13%" 0 KiB


Anybody has any idea about this error or shoud I just file a bug?

Thanks
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31256
Location: here

PostPosted: Mon Oct 07, 2024 11:18 am    Post subject: Reply with quote

With safe use flag does systemd compile?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
shaumux
Veteran
Veteran


Joined: 13 May 2005
Posts: 1013
Location: Hamburg

PostPosted: Mon Oct 07, 2024 11:22 am    Post subject: Reply with quote

fedeliallalinea wrote:
With safe use flag does systemd compile?

Sorry, I didn't understand, there's no useflag called safe, or did you mean without certain flags?
It does compile successfully without the bpf useflag.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31256
Location: here

PostPosted: Mon Oct 07, 2024 11:26 am    Post subject: Reply with quote

shaumux wrote:
Sorry, I didn't understand, there's no useflag called safe, or did you mean without certain flags?
It does compile successfully without the bpf useflag.

Sorry I misspelled I meant safe cflags (-march=native -O2 -pipe).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1946

PostPosted: Mon Oct 07, 2024 11:43 am    Post subject: Reply with quote

What version of libbpf is installed?
Back to top
View user's profile Send private message
shaumux
Veteran
Veteran


Joined: 13 May 2005
Posts: 1013
Location: Hamburg

PostPosted: Mon Oct 07, 2024 1:05 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Sorry I misspelled I meant safe cflags (-march=native -O2 -pipe).

Still fails with base cflags with the same error.

sam_ wrote:
What version of libbpf is installed?

Quote:
[ebuild R ] dev-libs/libbpf-1.4.5:0/1.4::gentoo USE="-static-libs" 0 KiB
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1946

PostPosted: Mon Oct 07, 2024 1:10 pm    Post subject: Reply with quote

Can you file a bug at bugs.gentoo.org w/ the full build.log + emerge --info? Thanks.
Back to top
View user's profile Send private message
shaumux
Veteran
Veteran


Joined: 13 May 2005
Posts: 1013
Location: Hamburg

PostPosted: Mon Oct 07, 2024 1:36 pm    Post subject: Reply with quote

sam_ wrote:
Can you file a bug at bugs.gentoo.org w/ the full build.log + emerge --info? Thanks.


Thanks filed a bug
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum