CC [M] /var/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/syscall_table.o CC [M] /var/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/ppm_cputime.o LD [M] /var/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/scap.o MODPOST /var/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/Module.symvers ERROR: modpost: "cc_mkenc" [/var/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/scap.ko] undefined! make[2]: *** [scripts/Makefile.modpost:128: /var/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/Module.symvers] Error 1 make[1]: *** [Makefile:1763: modules] Error 2 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_systemd-j4-20220817-010005 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.2.0 * clang/llvm (if any): /usr/lib/llvm/14 14.0.6 Python 3.10.6 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.62.1 * The following VMs are available for generation-2: 1) IcedTea JDK 3.16.0 [icedtea-bin-8] 2) OpenJDK 11.0.15_p10 [openjdk-11] 3) OpenJDK 17.0.3_p7 [openjdk-17] 4) OpenJDK 8.332_p09 [openjdk-8] 5) Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17] 7) Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8] 8) Eclipse Temurin JRE 17.0.3_p7 [openjdk-jre-bin-17] Available Java Virtual Machines: [1] icedtea-bin-8 [2] openjdk-8 [3] openjdk-11 [4] openjdk-17 [5] openjdk-bin-8 [6] openjdk-bin-11 [7] openjdk-bin-17 system-vm [8] openjdk-jre-bin-17 The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli: HEAD of ::gentoo commit 0e58f99357219c1938e7e8896ede868b2811d32d Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Aug 23 06:31:58 2022 +0000 2022-08-23 06:31:57 UTC emerge -qpvO dev-util/scap-driver [ebuild N ] dev-util/scap-driver-0.29.3 USE="-dist-kernel"
Created attachment 800561 [details] emerge-info.txt
Created attachment 800563 [details] dev-util:scap-driver-0.29.3:20220823-072902.log
Created attachment 800565 [details] emerge-history.txt.bz2
Created attachment 800567 [details] environment
Created attachment 800569 [details] etc.portage.tar.bz2
Strange - this looks like the previously fixed bug #852314, but 0.29.x should be fixed already. I also just built 5.19.4-rc1 and scap-driver-0.29.3 without problem, so not sure what is going on here.
Cool - thanks to falcosecurity-libs' botched versioning the patch is not in the tarball we actually use, and I don't trigger this bug because I built my kernel without CONFIG_AMD_MEM_ENCRYPT (just like with 0.27.x). The patch from 0.27.x still applies, so I'll add that to 0.29.x as well.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06cfe6d9491093d9c32db7ac180a1020b6b6fbf4 commit 06cfe6d9491093d9c32db7ac180a1020b6b6fbf4 Author: Holger Hoffstätte <holger@applied-asynchrony.com> AuthorDate: 2022-08-23 17:20:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-29 22:36:08 +0000 dev-util/scap-driver: fix kmod build on kernels >= 5.18 Bug: https://bugs.gentoo.org/866113 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Closes: https://github.com/gentoo/gentoo/pull/26982 Signed-off-by: Sam James <sam@gentoo.org> .../files/0.29.3-fix-kmod-build-on-5.18+.patch | 63 ++++++++++++++++++++++ dev-util/scap-driver/scap-driver-0.29.3.ebuild | 2 + 2 files changed, 65 insertions(+)
(You can use Closes: when appropriate instead of Bug:)