make-kpkg kernel_headers does not produce arch/x86/include for 3.0 kernels

Bug #814902 reported by Rocko on 2011-07-23
This bug affects 7 people
Affects Status Importance Assigned to Milestone
kernel-package (Ubuntu)

Bug Description

Building a 3.0 kernel from with the command:

fakeroot make-kpkg --initrd --append-to-version=-generic kernel_image kernel_headers

produces deb packages for linux-image and linux-headers without reporting any errors.

However, the linux-headers package is missing the folder arch/x86/include and its subfolder asm, so modules like nvidia-current will not build using it.

The same command works correctly when building the kernel or earlier.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: kernel-package 12.036+nmu1
ProcVersionSignature: Ubuntu 3.0-3.4-generic 3.0.0-rc5
Uname: Linux 3.0-3-generic x86_64
Architecture: amd64
Date: Sat Jul 23 08:23:56 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110531.1)
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: kernel-package
UpgradeStatus: Upgraded to oneiric on 2011-07-09 (13 days ago)

Rocko (rockorequin) wrote :
e X t 7 3 (ext73) wrote :

I have the same bug under Ubuntu 11.04.

Rocko (rockorequin) on 2011-07-26
Changed in kernel-package (Ubuntu):
status: New → Confirmed
Matthias Lüscher (m-luescher) wrote :

The problem seems to be located in
LINK_ARCH should be set to x86 for 3.0 kernels.

Please note that the kernel package files can be obtained from another location if you add the option "overlay-dir" to make-kpkg. In this case you need to fix the corresponding file from the overlay directory.

Rocko (rockorequin) wrote :

@lueschem: thanks, that fixes it. I changed the line in to

ifeq ($(shell if [ $(VERSION) > 2 ] || [ $(PATCHLEVEL) -eq 6 -a $(SUBLEVEL) -gt 23 ]; then \

and I now have the arch/x86/include folder.

Thanks, definitely fixes it.

Alan Orth (aorth) wrote :

I can also confirm this works on Ubuntu 11.04 x86_64 when using `make-kpkg` to make headers packages for Linux kernel 3.0, either statically setting LINK_ARCH=x86, or adding a modified conditional in /usr/share/kernel-package/ruleset/targets/

I had the same bug in Ubuntu 11.04 - the Natty Narwhal. Putting LINK_ARCH=x86 to usr/share/kernel-package/ruleset/targets/ hepled.

Rocko (rockorequin) wrote :

It is still a problem in kernel-package version 12.036+nmu1 in Oneiric.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers