Unable to build kernel 3.19.0-18

Bug #1460768 reported by Fritz Becker
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

There is a bug during compiling kernel version 3.19.0-18.
First I executed patch file from archive linux_3.19.0-18.18.diff.gz and source https://launchpad.net/ubuntu/+source/linux/3.19.0-18.18

Then I executed

make-kpkg --initrd buildpackage

with attached config file.

But I got a compiling error:

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.
make[6]: *** [ubuntu/vbox/vboxguest/VBoxGuest-linux.o] Error 1
make[5]: *** [ubuntu/vbox/vboxguest] Error 2
make[4]: *** [ubuntu/vbox] Error 2
make[3]: *** [ubuntu] Error 2

Revision history for this message
Fritz Becker (fritz-becker12) wrote :
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 1460768

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
Fritz Becker (fritz-becker12) wrote :

Because of build a kernel I don't get any suitable bug info with apport-collect

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
description: updated
Revision history for this message
Bill Zhao (szbzhao) wrote : apport information

ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: bill 3897 F.... pulseaudio
 /dev/snd/controlC0: bill 3897 F.... pulseaudio
CurrentDesktop: XFCE
DistroRelease: Ubuntu 15.04
HibernationDevice: RESUME=UUID=f02b728d-5336-48f2-8ec3-7bb36355a7e3
MachineType: System manufacturer System Product Name
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-21-generic root=UUID=0a482709-ba52-452c-ac21-29e8b985c4fa ro lll=aaa biosdevname=0 intel_pstate=disable processor.ignore_ppc=1 lll=bbb
ProcVersionSignature: Ubuntu 3.19.0-21.21-generic 3.19.8
RelatedPackageVersions:
 linux-restricted-modules-3.19.0-21-generic N/A
 linux-backports-modules-3.19.0-21-generic N/A
 linux-firmware 1.143.1
RfKill:

Tags: vivid
Uname: Linux 3.19.0-21-generic x86_64
UpgradeStatus: Upgraded to vivid on 2015-06-12 (4 days ago)
UserGroups: adm cdrom dialout dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 07/01/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4105
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8Z68-V LX
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4105:bd07/01/2013:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP8Z68-VLX:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

tags: added: apport-collected vivid
Revision history for this message
Bill Zhao (szbzhao) wrote : AlsaInfo.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : CRDA.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : IwConfig.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : JournalErrors.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : Lspci.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : Lsusb.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : ProcEnviron.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : ProcModules.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : PulseList.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : UdevDb.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : UdevLog.txt

apport information

Revision history for this message
Bill Zhao (szbzhao) wrote : WifiSyslog.txt

apport information

Changed in hundredpapercuts:
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in hundredpapercuts:
importance: Undecided → Medium
Revision history for this message
Andres (more-andres) wrote :

There is a bug in the ubuntu/vbox/vboxguest/Makefile build script, just by removing the following line in the Makefile that includes it the compilation succeeds.

## ubuntu/Makefile
- obj-y += vbox/

Besides fixing the path issue in ubuntu/vbox/vboxguest/Makefile, I would say there should be a proper KConfig as well so you can easily configure that using the usual make *config approach.

Revision history for this message
Wladimir Mutel (mwg) wrote :

this problem still arises with kernel sources v. 4.2.0-19
does this imply that Ubuntu builds their kernels from different sources ? using different recipes ?

Revision history for this message
Wladimir Mutel (mwg) wrote :

I removed this +=vbox line as you said in #20
and finally I got this :

Debug: module-check-generic
install -d /home/mwg/linux-4.2.0/debian.master/abi/4.2.0-19.23/amd64
find /home/mwg/linux-4.2.0/debian/build/build-generic/ -name \*.ko | \
        sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > /home/mwg/linux-4.2.0/debian.master/abi/4.2.0-19.23/amd64/generic.modules
II: Checking modules for generic...
   reading new modules...read 4465 modules.
   reading old modules...
      MISS: vboxguest
      MISS: vboxsf
      MISS: vboxvideo
      NEW : snd-pcm-oss
      read 4467 modules : new(1) missing(3)
EE: Missing modules (start begging for mercy)
debian/rules.d/4-checks.mk:12: recipe for target 'module-check-generic' failed
make: *** [module-check-generic] Error 1

so these modules are still listed somewhere. what I am supposed to clean out now and from where ?

Revision history for this message
Wladimir Mutel (mwg) wrote :

found this option: skipmodule=true , finally could rebuild all needed generic .debs.

Revision history for this message
D (dj-lp) wrote :

Confirmed in 4.2.

My fix:
Go to the directory ubuntu/vbox/
Inside each directory (vboxsf vboxguest, ...) do
 ln -s ../include/
then it will compile fine.

Revision history for this message
tomoke (oket) wrote :

In addition to the link in #24 I found that I also had to enter: ubuntu/vbox/vboxguest

and do an "ln -s ../r0drv/" to avoid the error:

make[4]: *** No rule to make target `ubuntu/vbox/vboxguest/r0drv/alloc-r0drv.o', needed by `ubuntu/vbox/vboxguest/vboxguest.o'. Stop.
make[3]: *** [ubuntu/vbox/vboxguest] Error 2

Was building a: linux-lts-vivid-3.19.0 with the procedure:

make-kpkg -j N --initrd --append-to-version=my-very-own-kernel kernel-image kernel-headers

Revision history for this message
Richard (rlettich) wrote :

Still happens in 4.4

Revision history for this message
David Knag (davidknag) wrote :

I got this in 4.8.0

Revision history for this message
David Knag (davidknag) wrote :

I accidentalied my crypt volume so I did a clean install of 16.10 and I still got this.

Revision history for this message
David Knag (davidknag) wrote :

This problem seemed to go away when I fetched the sources in a different directory.... that or it was updated, but the version number doesn't look like it has changed

Revision history for this message
Vincent Bernat (vbernat) wrote :
Revision history for this message
Jordi Miralles (jmiralles) wrote :

This is still happening, found it when compiling from 4.8.0-49-generic to a customized 4.10.

Revision history for this message
Jordi Miralles (jmiralles) wrote :

  #32

Hi, finally I have been able to compile the 4.10 kernel like this:

$ sudo make menuconfig
$ fakeroot debian/rules clean
$ sudo fakeroot debian/rules clean
$ AUTOBUILD=1 fakeroot debian/rules binary-debs
$ sudo AUTOBUILD=1 fakeroot debian/rules binary-debs
$ make modules
$ make modules_install

tux@tuxedo:~$
tux@tuxedo:~$ uname -r
4.10.8

Paul White (paulw2u)
no longer affects: hundredpapercuts
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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