Bug 1440857 - make prepare fails in F24
Summary: make prepare fails in F24
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 24
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-10 15:44 UTC by Ed Wahl
Modified: 2018-08-18 15:58 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 19:46:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ed Wahl 2017-04-10 15:44:24 UTC
Description of problem:
cannot 'make prepare' on small source 'kernel-devel' as it is incomplete source. 


Version-Release number of selected component (if applicable):
(all attempted 4.4, 4.5. 4.8.8-200 etc.

How reproducible:
Install necessary packages for building kernel

Steps to Reproduce:
1.go to /usr/src/kernels/{version}
2.make oldconfig
3.make prepare

Actual results:
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  DESCEND  objtool
/usr/src/kernels/4.8.8-200.fc24.x86_64/tools/build/Makefile.build:32: /usr/src/kernels/4.8.8-200.fc24.x86_64/tools/build/Build.include: No such file or directory
make[4]: *** No rule to make target '/usr/src/kernels/4.8.8-200.fc24.x86_64/tools/build/Build.include'.  Stop.
Makefile:36: recipe for target '/usr/src/kernels/4.8.8-200.fc24.x86_64/tools/objtool/fixdep-in.o' failed
make[3]: *** [/usr/src/kernels/4.8.8-200.fc24.x86_64/tools/objtool/fixdep-in.o] Error 2
/usr/src/kernels/4.8.8-200.fc24.x86_64/tools/build/Makefile.include:7: recipe for target 'fixdep' failed
make[2]: *** [fixdep] Error 2
Makefile:60: recipe for target 'objtool' failed
make[1]: *** [objtool] Error 2
Makefile:1598: recipe for target 'tools/objtool' failed
make: *** [tools/objtool] Error 2


Expected results:
finish prep and exit with no warnings.

Additional info:
I see a previous bug "1304938" reporting this same issue saying this was to be in F24.  Was this work ever completed?

Comment 1 Laura Abbott 2017-04-10 16:04:06 UTC
4.8.x is very old. Please test on the newest kernels.

Comment 2 Justin M. Forbes 2017-04-11 14:58:30 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There are a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 24 kernel bugs.

Fedora 25 has now been rebased to 4.10.9-100.fc24.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 26, and are still experiencing this issue, please change the version to Fedora 26.

If you experience different issues, please open a new bug report for those.

Comment 3 Ed Wahl 2017-04-11 18:53:57 UTC
Tested 4.8.15-200.fc24.x86_64 still an issue.   

root@osc-nc166744 kernels]# cd 4.10.8-100.fc24.x86_64/
[root@osc-nc166744 4.10.8-100.fc24.x86_64]# make oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/bin2c
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
[root@osc-nc166744 4.10.8-100.fc24.x86_64]# make prepare
scripts/kconfig/conf  --silentoldconfig Kconfig
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      arch/x86/purgatory/purgatory.o
  AS      arch/x86/purgatory/stack.o
  AS      arch/x86/purgatory/setup-x86_64.o
  CC      arch/x86/purgatory/sha256.o
  AS      arch/x86/purgatory/entry64.o
  CC      arch/x86/purgatory/string.o
  LD      arch/x86/purgatory/purgatory.ro
  BIN2C   arch/x86/purgatory/kexec-purgatory.c
  DESCEND  objtool
/usr/src/kernels/4.10.8-100.fc24.x86_64/tools/build/Makefile.build:32: /usr/src/kernels/4.10.8-100.fc24.x86_64/tools/build/Build.include: No such file or directory
make[4]: *** No rule to make target '/usr/src/kernels/4.10.8-100.fc24.x86_64/tools/build/Build.include'.  Stop.
Makefile:42: recipe for target '/usr/src/kernels/4.10.8-100.fc24.x86_64/tools/objtool/fixdep-in.o' failed
make[3]: *** [/usr/src/kernels/4.10.8-100.fc24.x86_64/tools/objtool/fixdep-in.o] Error 2
/usr/src/kernels/4.10.8-100.fc24.x86_64/tools/build/Makefile.include:4: recipe for target 'fixdep' failed
make[2]: *** [fixdep] Error 2
Makefile:61: recipe for target 'objtool' failed
make[1]: *** [objtool] Error 2
Makefile:1617: recipe for target 'tools/objtool' failed
make: *** [tools/objtool] Error 2

Comment 4 Ed Wahl 2017-04-11 18:55:17 UTC
Note this is also an issue  on latest 4.10.8-100.fc24.x86_64/
as shown above.  Sorry took a day to hit Save.

(In reply to Ed Wahl from comment #3)

Comment 5 sohny thomas 2017-05-13 15:21:34 UTC
[root@Fedoraworld 4.10.14-100.fc24.x86_64]# make prepare
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  DESCEND  objtool
/usr/src/kernels/4.10.14-100.fc24.x86_64/tools/build/Makefile.build:32: /usr/src/kernels/4.10.14-100.fc24.x86_64/tools/build/Build.include: No such file or directory
make[4]: *** No rule to make target '/usr/src/kernels/4.10.14-100.fc24.x86_64/tools/build/Build.include'.  Stop.
Makefile:42: recipe for target '/usr/src/kernels/4.10.14-100.fc24.x86_64/tools/objtool/fixdep-in.o' failed
make[3]: *** [/usr/src/kernels/4.10.14-100.fc24.x86_64/tools/objtool/fixdep-in.o] Error 2
/usr/src/kernels/4.10.14-100.fc24.x86_64/tools/build/Makefile.include:4: recipe for target 'fixdep' failed
make[2]: *** [fixdep] Error 2
Makefile:61: recipe for target 'objtool' failed
make[1]: *** [objtool] Error 2
Makefile:1617: recipe for target 'tools/objtool' failed
make: *** [tools/objtool] Error 2
[root@Fedoraworld 4.10.14-100.fc24.x86_64]# rpm -qi kernel-devel
Name        : kernel-devel
Version     : 4.10.14
Release     : 100.fc24
Architecture: x86_64
Install Date: Saturday 13 May 2017 02:14:37 PM IST
Group       : System Environment/Kernel
Size        : 43793223
License     : GPLv2 and Redistributable, no modification permitted
Signature   : RSA/SHA256, Thursday 04 May 2017 05:15:58 PM IST, Key ID 73bde98381b46521
Source RPM  : kernel-4.10.14-100.fc24.src.rpm
Build Date  : Thursday 04 May 2017 01:59:01 AM IST
Build Host  : bkernel01.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.kernel.org/
Summary     : Development package for building kernel modules to match the kernel
Description :
This package provides kernel headers and makefiles sufficient to build modules
against the kernel package.
[root@Fedoraworld 4.10.14-100.fc24.x86_64]# 
[root@Fedoraworld 4.10.14-100.fc24.x86_64]# uname -a
Linux Fedoraworld 4.10.6-100.fc24.x86_64 #1 SMP Mon Mar 27 17:29:12 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@Fedoraworld 4.10.14-100.fc24.x86_64]#

Comment 6 mxedit10n 2017-05-29 05:02:37 UTC
[root@mxtuxb0x 4.10.17-200.fc25.x86_64]# uname -a
Linux mxtuxb0x 4.10.17-200.fc25.x86_64 #1 SMP Mon May 22 18:12:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@mxtuxb0x 4.10.17-200.fc25.x86_64]# rpm -qi kernel-devel
Name        : kernel-devel
Version     : 4.10.17
Release     : 200.fc25
Architecture: x86_64
Install Date: Sat 27 May 2017 10:46:42 PM EDT
Group       : System Environment/Kernel
Size        : 43793405
License     : GPLv2 and Redistributable, no modification permitted
Signature   : RSA/SHA256, Tue 23 May 2017 12:48:34 AM EDT, Key ID 4089d8f2fdb19c98
Source RPM  : kernel-4.10.17-200.fc25.src.rpm
Build Date  : Mon 22 May 2017 03:27:06 PM EDT
Build Host  : bkernel02.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.kernel.org/
Summary     : Development package for building kernel modules to match the kernel
Description :
This package provides kernel headers and makefiles sufficient to build modules
against the kernel package.

[root@mxtuxb0x 4.10.17-200.fc25.x86_64]# make prepare
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  DESCEND  objtool
/usr/src/kernels/4.10.17-200.fc25.x86_64/tools/build/Makefile.build:32: /usr/src/kernels/4.10.17-200.fc25.x86_64/tools/build/Build.include: No such file or directory
make[4]: *** No rule to make target '/usr/src/kernels/4.10.17-200.fc25.x86_64/tools/build/Build.include'.  Stop.
Makefile:42: recipe for target '/usr/src/kernels/4.10.17-200.fc25.x86_64/tools/objtool/fixdep-in.o' failed
make[3]: *** [/usr/src/kernels/4.10.17-200.fc25.x86_64/tools/objtool/fixdep-in.o] Error 2
/usr/src/kernels/4.10.17-200.fc25.x86_64/tools/build/Makefile.include:4: recipe for target 'fixdep' failed
make[2]: *** [fixdep] Error 2
Makefile:61: recipe for target 'objtool' failed
make[1]: *** [objtool] Error 2
Makefile:1617: recipe for target 'tools/objtool' failed
make: *** [tools/objtool] Error 2
[root@mxtuxb0x 4.10.17-200.fc25.x86_64]#

Comment 7 Fedora End Of Life 2017-07-26 00:21:04 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-08-08 19:46:13 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 9 Wayne Pollock 2017-11-06 09:22:52 UTC
Please reopen.  This bug exists for Fedora 26:

[root@localhost 4.13.9-200.fc26.x86_64]# make prepare
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  DESCEND  objtool
/usr/src/kernels/4.13.9-200.fc26.x86_64/tools/build/Makefile.build:36: /usr/src/kernels/4.13.9-200.fc26.x86_64/tools/build/Build.include: No such file or directory
make[4]: *** No rule to make target '/usr/src/kernels/4.13.9-200.fc26.x86_64/tools/build/Build.include'.  Stop.
make[3]: *** [Makefile:42: /usr/src/kernels/4.13.9-200.fc26.x86_64/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/kernels/4.13.9-200.fc26.x86_64/tools/build/Makefile.include:4: fixdep] Error 2
make[1]: *** [Makefile:62: objtool] Error 2
make: *** [Makefile:1641: tools/objtool] Error 2


This bug prevents building the latest VirtualBox modules!!  This is a SERIOUS problem!

Comment 10 Paul Anguiano 2018-01-12 17:58:07 UTC
Also on Fedora 27:

[root@localhost 4.14.11-300.fc27.x86_64]# make prepare
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  DESCEND  objtool
/usr/src/kernels/4.14.11-300.fc27.x86_64/tools/build/Makefile.build:37: /usr/src/kernels/4.14.11-300.fc27.x86_64/tools/build/Build.include: No such file or directory
make[4]: *** No rule to make target '/usr/src/kernels/4.14.11-300.fc27.x86_64/tools/build/Build.include'.  Stop.
make[3]: *** [Makefile:43: /usr/src/kernels/4.14.11-300.fc27.x86_64/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/kernels/4.14.11-300.fc27.x86_64/tools/build/Makefile.include:4: fixdep] Error 2
make[1]: *** [Makefile:62: objtool] Error 2
make: *** [Makefile:1636: tools/objtool] Error 2

I don't understand why this is being ignored.

Comment 11 Anees 2018-01-30 06:08:14 UTC
HI

@Paul Anguiano 

were you able to receive any update on this?

Comment 12 Paul Anguiano 2018-01-30 14:17:16 UTC
I've heard nothing.  Bug remains auto-closed.  It doesn't appear anyone has ever seriously looked at this issue, so I don't know what the purpose of this bug tracker is.  It is exceedingly odd that they simply close all bugs at the end of a version cycle, as if pretending they no longer exist, rather than rolling them forward.

I suppose the way forward, from the auto-notice, is: "If you are unable to reopen this bug, please file a new report against the current release."  Every other project I've worked on has done everything they can to avoid duplicates, but I don't see any other way to get anyone's attention.

Comment 13 iuyo5678 2018-02-28 07:33:50 UTC
Also find on fedroa 27, I try to download the kernel src code to fix 。。。。

Comment 14 Albert Vernon 2018-02-28 19:47:54 UTC
Please re-open for Fedora 27.

STEPS TO REPRODUCE:

1. Create a Fedora 27 virtual machine in VirtualBox 5.2.6.
2. Run `sudo dnf upgrade -y --refresh`.
3. Run `sudo dnf install -y kernel-devel`.
4. Insert the VirtualBox Guest Additions CD image.
5. When prompted, install VirtualBox Guest Additions 5.2.6.

OBSERVED BEHAVIOR:

1. A terminal window opens with the following:

VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong

2. Running `head /var/log/vboxadd-setup.log` shows the following:

Building the main Guest Additions module.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.15.4-300.fc27.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)

3. Running `cd cd /usr/src/kernels/4.15.4-300.fc27.x86_64 && make oldconfig && make prepare` shows the following:

scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
scripts/Kbuild.include:102: warning: overriding recipe for target '.cache.mk'
scripts/Kbuild.include:102: warning: ignoring old recipe for target '.cache.mk'
  DESCEND  objtool
/usr/src/kernels/4.15.4-300.fc27.x86_64/tools/build/Makefile.build:37: /usr/src/kernels/4.15.4-300.fc27.x86_64/tools/build/Build.include: No such file or directory

EXPECTED BEHAVIOR:

1. The development package for kernel 4.15.4-300 should provide tools/build/Build.include.

2. VirtualBox Guest Additions should compile with kernel 4.15.4-300.

ENVIRONMENT:

# grep PRETTY_NAME /etc/os-release 
PRETTY_NAME="Fedora 27 (Workstation Edition)"

# uname -ar
Linux localhost.localdomain 4.15.4-300.fc27.x86_64 #1 SMP Mon Feb 19 23:31:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

# dnf info kernel-devel | grep Source
Source       : kernel-4.15.4-300.fc27.src.rpm

Comment 15 Albert Vernon 2018-02-28 21:10:43 UTC
This bug looks related to #1460526.


Note You need to log in before you can comment on or make changes to this bug.