Error compiling 2.6.8 kernel for amd64 - cannot find pci.h
I'm trying to compile the Sarge kernel for amd64.
I have a dual Xeon system running Debian Stable for amd64, with the kernel
kernel-image-2.6.8-11-em64t-p4-smp 2.6.8-14
I have installed the source package
kernel-source-2.6.8 2.6.8-16
As a first test I just attempted to duplicate the compile to make
sure all the tools are installed, so I extracted the kernel source
and created a build directory, did a "make O=... menuconfig" and "make O=... "
(Using the O= option to point to the build directory)
I made no changes in the menuconfig, and it picked up the config
file from /boot for defaults (/boot/config-2.6.8-11-em64t-p4-smp)
But the compile fails because it can't find pci.h.
I only see a pci.h in the i386 arch directory, not for x86_64.
Am I doing something wrong?
Is there a secret step or missing link for amd64 that's not documented?
Here is the error:
/usr/src/gm/kernel-source-2.6.8.work/arch/x86_64/pci/mmconfig.c:10:17: pci.h: No such file or directory
/usr/src/gm/kernel-source-2.6.8.work/arch/x86_64/pci/mmconfig.c: In function `pci_mmcfg_init':
/usr/src/gm/kernel-source-2.6.8.work/arch/x86_64/pci/mmconfig.c:79: error: `pci_probe' undeclared (first use in this function)
/usr/src/gm/kernel-source-2.6.8.work/arch/x86_64/pci/mmconfig.c:79: error: (Each undeclared identifier is reported only once
/usr/src/gm/kernel-source-2.6.8.work/arch/x86_64/pci/mmconfig.c:79: error: for each function it appears in.)
/usr/src/gm/kernel-source-2.6.8.work/arch/x86_64/pci/mmconfig.c:79: error: `PCI_PROBE_MMCONF' undeclared (first use in this function)
/usr/src/gm/kernel-source-2.6.8.work/arch/x86_64/pci/mmconfig.c:93: error: `PCI_PROBE_MASK' undeclared (first use in this function)
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gregory H. Margo
Reply to: