Re: Error compiling 2.6.8 kernel for amd64 - cannot find pci.h
On Wed, Jul 20, 2005 at 03:31:13AM -0700, Gregory Margo wrote:
> 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)
When using a config from a different kernel, you should use "make
oldconfig" before running "make {menu|x|g|k}config".
> 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?
I don't know, you didn't supply enough information for us to figure
out. What's the output from "gcc -v"? Could you c
> Is there a secret step or missing link for amd64 that's not documented?
There is no secret.
> 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)
Not enough information. Please run "make V=1 O=..." and post the
complete error including the gcc command that was used to compile
mmconfig.c.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
Reply to: