Bug 1460526
Summary: | VirtualBox fails to install with Fedora 27 kernel (rawhide) -- 4.12.0-0.rc3.git0.2.fc27.x86_64 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | George R. Goffe <grgoffe> |
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | 88377883, gansalmon, ichavero, itamar, jonathan, kernel-maint, labbott, laura, madhu.chinakonda, mchehab |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-02 02:35:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
George R. Goffe
2017-06-11 20:58:55 UTC
Looks similar to #1440857. Here are my repro steps for kernel 4.15.4-300. 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 If you drop the `make prepare` from that command does it work? Yes, running `make oldconfig` without `make prepare` does work: $ cd /usr/src/kernels/4.15.4-300.fc27.x86_64 && make oldconfig scripts/kconfig/conf --oldconfig Kconfig # # configuration written to .config # $ echo $? 0 Running `make prepare` or running `make` by itself complains that tools/build/Build.include does not exist. $ ack Build.include tools/build/Makefile.build 37:include $(build-dir)/Build.include My guess is Build.include should be in the kernel source package but isn't, or some tool is supposed to be generating Build.include but isn't. Hi, Is comment#1 step3 a typo? Note the 'cd cd'? 3. Running `cd cd /usr/src/kernels/4.15.4-300.fc27.x86_64 && make oldconfig && make prepare` Yes, `cd cd` was a typo. I fixed this up so make prepare should work, should show up in future kernel builds. Laura, Bless you my child and THANKS for all your help and hard work! Best regards, George... @laura Hi Laura, I found same issue in kernel 4.18.0-348.2.1.el8_5.x86_64 for redhat 8, when I want to install the VBoxAddition on Redhat 8.5. 1. running `make oldconfig` in /usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64 was ok 2. then run the `make prepare` had the exact result as mentioned: [root@localhost 4.18.0-348.2.1.el8_5.x86_64]# make prepare DESCEND objtool /usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64/tools/build/Makefile.build:37: /usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64/tools/build/Build.include: No such file or directory make[4]: *** No rule to make target '/usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64/tools/build/Build.include'. Stop. make[3]: *** [Makefile:47: /usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64/tools/objtool/fixdep-in.o] Error 2 make[2]: *** [/usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64/tools/build/Makefile.include:4: fixdep] Error 2 make[1]: *** [Makefile:65: objtool] Error 2 make: *** [Makefile:1699: tools/objtool] Error 2 Best regards, Tom |