Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866113 - dev-util/scap-driver-0.29.3:0 - ERROR: modpost: cc_mkenc [/var/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c46943
Summary: dev-util/scap-driver-0.29.3:0 - ERROR: modpost: cc_mkenc [/var/tmp/portage/de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-08-23 09:03 UTC by Toralf Förster
Modified: 2022-08-29 22:39 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.13 KB, text/plain)
2022-08-23 09:03 UTC, Toralf Förster
Details
dev-util:scap-driver-0.29.3:20220823-072902.log (dev-util:scap-driver-0.29.3:20220823-072902.log,18.57 KB, text/plain)
2022-08-23 09:03 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,102.62 KB, application/x-bzip)
2022-08-23 09:03 UTC, Toralf Förster
Details
environment (environment,128.96 KB, text/plain)
2022-08-23 09:03 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,38.71 KB, application/x-bzip)
2022-08-23 09:03 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-08-23 09:03:11 UTC
  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"
Comment 1 Toralf Förster gentoo-dev 2022-08-23 09:03:12 UTC
Created attachment 800561 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-08-23 09:03:13 UTC
Created attachment 800563 [details]
dev-util:scap-driver-0.29.3:20220823-072902.log
Comment 3 Toralf Förster gentoo-dev 2022-08-23 09:03:15 UTC
Created attachment 800565 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-08-23 09:03:16 UTC
Created attachment 800567 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-08-23 09:03:18 UTC
Created attachment 800569 [details]
etc.portage.tar.bz2
Comment 6 Holger Hoffstätte 2022-08-23 09:23:34 UTC
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.
Comment 7 Holger Hoffstätte 2022-08-23 09:26:15 UTC
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.
Comment 8 Larry the Git Cow gentoo-dev 2022-08-29 22:38:44 UTC
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(+)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-29 22:39:09 UTC
(You can use Closes: when appropriate instead of Bug:)