Debian Bug report logs - #833500
kernel-package: CONFIG_STACK_VALIDATION needs tools/objtool/objtool along headers

version graph

Package: kernel-package; Maintainer for kernel-package is Manoj Srivastava <srivasta@debian.org>; Source for kernel-package is src:kernel-package (PTS, buildd, popcon).

Reported by: Ingo Saitz <ingo@debian.org>

Date: Fri, 5 Aug 2016 07:51:06 UTC

Severity: normal

Found in version kernel-package/13.018

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Manoj Srivastava <srivasta@debian.org>:
Bug#833500; Package kernel-package. (Fri, 05 Aug 2016 07:51:09 GMT) (full text, mbox, link).


Acknowledgement sent to Ingo Saitz <ingo@debian.org>:
New Bug report received and forwarded. Copy sent to Manoj Srivastava <srivasta@debian.org>. (Fri, 05 Aug 2016 07:51:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Ingo Saitz <ingo@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: kernel-package: CONFIG_STACK_VALIDATION needs tools/objtool/objtool along headers
Date: Fri, 05 Aug 2016 09:27:25 +0200
[Message part 1 (text/plain, inline)]
Package: kernel-package
Version: 13.018
Severity: normal

Package: kernel-package
Version: 13.018
Severity: normal

When building linux 4.7 with CONFIG_STACK_VALIDATION enabled and installing the
linux-image and linux-headers debs, building 3rd party modules fails.
make -d --trace shows it is looking for tools/objtool/objtool as prerequisite
to compile .c files.

I.e. building the virtualbox modules, the output reads (full make.log attached):

    Considering target file '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.o'.
     File '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.o' does not exist.
     Looking for an implicit rule for '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.o'.
     Trying pattern rule with stem 'linux/SUPDrv-linux'.
     Trying implicit prerequisite '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.c'.
     Trying rule prerequisite 'tools/objtool/objtool'.
     Trying pattern rule with stem 'linux/SUPDrv-linux'.
     Trying implicit prerequisite '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.S'.
[...]
     No implicit rule found for '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.o'.
     Finished prerequisites of target file '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.o'.
    Must remake target '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.o'.
make[2]: *** No rule to make target '/tmp/virtualbox-5.0.24/vboxdrv/linux/SUPDrv-linux.o', needed by '/tmp/virtualbox-5.0.24/vboxdrv/vboxdrv.o'.  Stop.

Copying the build objtool binary into /lib/modules/$(uname -r)/tools/objtool/
allows the build to succeed. So this binary should probably go into the
linux-headers package.

Attached builds of virtualbox-5.0.24 modules with
$ make -d --trace -C "/lib/modules/$(uname -r)/build" M="$(pwd)"

make.fail.log: without objdump binary
make.succ.log: with objdump binary in /lib/modules/$(uname -r)/tools/objtool/



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-pinguin20160805+ (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages kernel-package depends on:
ii  bc               1.06.95-9+b1
ii  binutils         2.26.1-1
ii  build-essential  12.2
ii  bzip2            1.0.6-8
ii  dpkg-dev         1.18.10
ii  file             1:5.28-4
ii  gettext          0.19.8.1-1
ii  kmod             22-1.1
ii  lzma             9.22-2
ii  po-debconf       1.0.19
ii  xmlto            0.0.28-0.1
ii  xz-utils [lzma]  5.1.1alpha+20120614-2.1

Versions of packages kernel-package recommends:
ii  cpio           2.11+dfsg-5
pn  docbook-utils  <none>
ii  kernel-common  13.018
pn  uboot-mkimage  <none>

Versions of packages kernel-package suggests:
ii  libncurses5-dev [libncurses-dev]  6.0+20160625-1
pn  linux-source                      <none>

-- no debconf information
[make.fail.log.gz (application/gzip, attachment)]
[make.succ.log.gz (application/gzip, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Manoj Srivastava <srivasta@debian.org>:
Bug#833500; Package kernel-package. (Tue, 02 Jan 2018 15:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Daniel Suchy <danny@danysek.cz>:
Extra info received and forwarded to list. Copy sent to Manoj Srivastava <srivasta@debian.org>. (Tue, 02 Jan 2018 15:03:03 GMT) (full text, mbox, link).


Message #10 received at 833500@bugs.debian.org (full text, mbox, reply):

From: Daniel Suchy <danny@danysek.cz>
To: 833500@bugs.debian.org
Cc: srivasta@debian.org
Subject: Patch: include objtool in headers produced by kernel-package
Date: Tue, 2 Jan 2018 15:51:53 +0100
[Message part 1 (text/plain, inline)]
Package: kernel-package
Version: 13.018
Severity: normal
Tags: patch

Attached patch includes `objtool` binary in kernel-headers package
generated by make-kpkg. This binary needs to be included to sucessfully
build all out-of-tree kernel modules, when kernel code include metadata
are generated by this tool (for example when CONFIG_STACK_VALIDATION /
CONFIG_UNWINDER_ORC enabled - ORC is enabled by default in 4.14.9+).

Please include this patch in future builds of kernel-package.

With regards,
Daniel
[kernel-package_add_objtool.patch (text/x-patch, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jul 27 03:57:19 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.