x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWANT_SECCOMP -DVERSION="v1.2.9" -DVCSID="" -o security.o -c security.c security.c: In function ‘pax_seccomp_init’: security.c:161:32: error: ‘__NR_faccessat2’ undeclared (first use in this function) 161 | # define __SNR_faccessat2 __NR_faccessat2 | ^~~~~~~~~~~~~~~ /usr/include/seccomp.h:223:23: note: in expansion of macro ‘__SNR_faccessat2’ 223 | #define SCMP_SYS(x) (__SNR_##x) | ^~~~~~ security.c:161:32: note: each undeclared identifier is reported only once for each function it appears in 161 | # define __SNR_faccessat2 __NR_faccessat2 | ^~~~~~~~~~~~~~~ /usr/include/seccomp.h:223:23: note: in expansion of macro ‘__SNR_faccessat2’ 223 | #define SCMP_SYS(x) (__SNR_##x) | ^~~~~~ make: *** [Makefile:115: security.o] Error 1 * ERROR: app-misc/pax-utils-1.2.9::gentoo failed (compile phase): * emake failed # emerge --info pax-utils Portage 3.0.14 (python 3.9.1-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.32-r5, 5.10.13 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.10.13-x86_64-AMD_Opteron-tm-_Processor_6328-with-glibc2.32 KiB Mem: 131961804 total, 111228852 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 04 Feb 2021 07:00:02 +0000 Head commit of repository gentoo: de72efae23b215948d3eccba0cf7d25974fff3fc Timestamp of repository poly-c: Thu, 04 Feb 2021 08:05:02 +0000 Head commit of repository tlp: ced908095a1bafc1af3583efc4a24b39e2ab8c12 sh dash 0.5.11.3-r1 ld GNU ld (Gentoo 2.35.1 p2) 2.35.1 distcc 3.3.5 x86_64-pc-linux-gnu [disabled] app-shells/bash: 5.1_p4::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.0-r1::gentoo dev-lang/python: 2.7.18-r6::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo dev-util/cmake: 3.19.4::gentoo sys-apps/baselayout: 2.7-r1::poly-c sys-apps/openrc: 0.42.1-r1::poly-c sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.35.1-r1::gentoo, 2.36::gentoo sys-devel/gcc: 9.3.0-r2::gentoo sys-devel/gcc-config: 2.3.3::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r5::gentoo Repositories: gentoo location: /var/portage sync-type: rsync sync-uri: rsync://192.168.0.254/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: --new-compress sync-rsync-verify-jobs: 1 poly-c location: /usr/local/portage masters: gentoo priority: 0 Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0" CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DISTDIR="/var/tmp/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --verbose-slot-rebuilds=n --fuzzy-search=n --dynamic-deps=n --changed-deps-report=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/" INSTALL_MASK="/etc/systemd /home/ftp /lib/systemd /lib64/systemd /usr/lib/systemd /usr/lib64/systemd /etc/init.d/functions.sh /usr/lib/modules-load.d/virtualbox.conf /etc/inittab.d /etc/modules-load.d/fwupd*" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed" LINGUAS="de de@1901 en" MAKEOPTS="-j16" PKGDIR="/opt/portage/packages" PORTAGE_BZIP2_COMMAND="lbzip2" 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" USE="3dnow 3dnowext X a52 aac aacs acl acpi activities alsa amd64 bluetooth bluray branding brotli bzip2 c++0x cairo caps cdda cdr cli crypt css cups dbus declarative dri dts dvd dvdr elogind emboss encode exif faac ffmpeg flac gcrypt gdbm gif gmp gnutls gstreamer gtk gui iconv icu idn imagemagick inotify jpeg jpeg2k kde kipi kwallet lame lcms libcanberra libglvnd libnotify libtirpc linguas_de lto lzma mac mad matroska midi mmap mmx mmxext mng mp3 mp4 mpeg mpfr multilib ncurses nls nptl nsplugin ogg openal opencl opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 quicktime readline rtmp sdl seccomp slang speex spell split-usr srt sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev udisks unicode upower usb vaapi vcd vdpau vorbis vpx vulkan webp widgets wxwidgets x264 x265 xattr xcb xinerama xml xv xvid xvmc zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="access_compat alias auth_basic auth_digest authn_anon authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dir env file_cache filter headers http2 include info log_config mime mime_magic rewrite socache_shmcb status unique_id unixd userdir vhost_alias" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de-1901 en" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8 python3_9" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" Unset: CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= app-misc/pax-utils-1.2.8::gentoo was built with the following: USE="caps -debug -python seccomp" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_6 -python3_7 python3_8 -python3_9"
> sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) This one is probably too old and does not provide new syscall. Checking.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbd7a6a460203eebe25f4335d65f213fc1f7c301 commit fbd7a6a460203eebe25f4335d65f213fc1f7c301 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-04 09:16:54 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-04 09:17:20 +0000 app-misc/pax-utils: require linux-headers=5.8+ for faccessat2 Reported-by: Lars Wendler (Polynomial-C) Closes: https://bugs.gentoo.org/768624 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> app-misc/pax-utils/pax-utils-1.2.9.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Note: pax-utils-1.3.2 compiles with linux-headers 5.3 Seems upstream fixed the problem. Please remove dependency from >=app-misc/pax-utils-1.3.2
(In reply to Andreas Kinzler from comment #3) > Note: pax-utils-1.3.2 compiles with linux-headers 5.3 I confirm this.
(In reply to Andreas Kinzler from comment #3) just so we're clear, pax-utils is a Gentoo project. there isn't an "upstream". i fixed it by generating & checking in the filter rather than doing it at runtime (and thus needing the symbol): https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=24dd6026cab83b17bbf727feb07ced35fe75bb75 then i deleted that dep in the 1.3 ebuilds: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8cf2a059e64957bbeba36813ffbd887523f91f1