Bug#683026: [debian-kernel-handbook] deb-pkg builds amd64 image package on i386
I followed the procedure for "Building a custom kernel from Debian
kernel source" on an i386 wheezy install. The resulting package is
targetted at the amd64 Debian architecture and cannot be installed on my
system (which is physically x86-64):
# LANG=C dpkg -i ../linux-image-3.4.4_3.4.4-1_amd64.deb
dpkg: error processing ../linux-image-3.4.4_3.4.4-1_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
I used the experimental linux. Most likely a package from linux is the
culprit, and not the handbook, but as I'm not sure which component is at
fault, I'm assigning to the handbook understanding someone more
knowledgeable will probably have to reassign. I configured the image
using make oldconfig, using the config from the stock image I'm
currently running, 3.2.0-3-amd64.
I'm not sure what conditions create this, but I suspect this wouldn't
happen on a 32 bits machine. If someone can identify the conditions,
feel free to adjust the severity.
--- System information. ---
Kernel: Linux 3.2.0-3-amd64
Debian Release: wheezy/sid
990 testing security.debian.org
990 testing debian.mirror.iweb.ca
500 unstable debian.mirror.iweb.ca
1 experimental debian.mirror.iweb.ca
--- Package information. ---
Package's Depends field is empty.
Recommends (Version) | Installed
Package's Suggests field is empty.