can not build kernel image from source package

Bug #1481723 reported by Steven Van Acker
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Hello,

on Ubuntu 15.04 I am trying to build a kernel from its sourcepackage like this:

export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get -y install kernel-package build-essential
latest=linux-image-3.19.0-25-generic
apt-get -y build-dep $latest && apt-get source $latest
yes "" | make-kpkg --initrd --append-to-version=test kernel_image kernel_headers kernel_source

After a while, the compilation process reports a missing header file:

  CC [M] ubuntu/vbox/vboxguest/VBoxGuest-linux.o
In file included from <command-line>:0:0:
././include/linux/kconfig.h:46:1: fatal error: ./ubuntu/vbox/vboxguest/include/VBox/VBoxGuestMangling.h: No such file or directory
 #endif /* __LINUX_KCONFIG_H */
 ^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'ubuntu/vbox/vboxguest/VBoxGuest-linux.o' failed
make[4]: *** [ubuntu/vbox/vboxguest/VBoxGuest-linux.o] Error 1
scripts/Makefile.build:402: recipe for target 'ubuntu/vbox/vboxguest' failed
make[3]: *** [ubuntu/vbox/vboxguest] Error 2
scripts/Makefile.build:402: recipe for target 'ubuntu/vbox' failed
make[2]: *** [ubuntu/vbox] Error 2
Makefile:949: recipe for target 'ubuntu' failed
make[1]: *** [ubuntu] Error 2

There is a VBoxGuestMangling.h somewhere else in the code-tree, and I've tried symlinking it, but then I just run into
another compile-error later on.
I was under the impression that Ubuntu used its own source packages to produce the kernel images, but now I am not so sure.

kr,
-- Steven

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1481723

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Steven Van Acker (steven-vanacker) wrote :

Hi,

apport-collect is not present on this system and I could not install the "apport" package to which it belongs due to
errors with systemd:

Processing triggers for systemd (219-7ubuntu6) ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
dpkg: error processing package systemd (--unpack):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for dbus (1.8.12-1ubuntu5) ...
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Anyway, that is a different issue I bet.
I am attaching the script I used to compile the kernel. In the next post I will also include the output of the compilation process, including the error.

Revision history for this message
Steven Van Acker (steven-vanacker) wrote :

And here is the output of said script

Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Brad Figg (brad-figg) wrote :

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1481723

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.