Compile 2.6.x kernel with GCC-3

From: Jon Fullmer (jonfullmer_at_gmail.com)
Date: 12/12/04


Date: 12 Dec 2004 08:26:29 -0800

I've been trying to compile a 2.6.x kernel with GCC-3.x, and I've been
unsuccessful. I've been googling all that I can think of, and I can't
seem to find any solutions (other than one other person seems to have
had the problem, but no solution). I've tried several versions of gcc,
including 3.04, 3.3.3, and 3.4.3, and I've tried several versions of
the kernel, from 2.6.2-2.6.9. All yield the same error:

CC drivers/ide/ppc/pmac.o
drivers/ide/ppc/pmac.c: In function `pmac_ide_tuneproc':
drivers/ide/ppc/pmac.c:677: warning: implicit declaration of function
`kauai_lookup_timing'
drivers/ide/ppc/pmac.c:677: `kauai_pio_timings' undeclared (first use
in this function)
drivers/ide/ppc/pmac.c:677: (Each undeclared identifier is reported
only once
drivers/ide/ppc/pmac.c:677: for each function it appears in.)
drivers/ide/ppc/pmac.c: In function `pmac_ide_do_resume':
drivers/ide/ppc/pmac.c:1127: `IDE_WAKEUP_DELAY' undeclared (first use
in this function)
drivers/ide/ppc/pmac.c: In function `pmac_ide_setup_device':
drivers/ide/ppc/pmac.c:1207: `IDE_WAKEUP_DELAY' undeclared (first use
in this function)
drivers/ide/ppc/pmac.c: In function `pmac_ide_macio_attach':
drivers/ide/ppc/pmac.c:1350: structure has no member named `dma_regs'
drivers/ide/ppc/pmac.c:1351: structure has no member named `dma_regs'
drivers/ide/ppc/pmac.c:1354: structure has no member named `dma_regs'
make[2]: *** [drivers/ide/ppc/pmac.o] Error 1
make[1]: *** [drivers/ide] Error 2
make: *** [drivers] Error 2

I'm pretty sure this comes into play as I've selected
"CONFIG_BLK_DEV_IDE_PMAC=y" (or support for the embedded PowerMac IDE
controller). I'm compiling this on a beige G3/300 minitower, so that
support is pretty essential. I don't really consider myself a
developer, so I don't know what these errors are whining about. I'm
presuming that it's a simple syntax manipulation. In other words, I
suspect that what generated a warning, using gcc-2.95.x, will now (with
gcc-3.x) generate an error.

I'm just surprised that this hasn't been brought up in more forums.
Have any of you come across this? Is there anything I can do? A
patch? Something?

Thanks in advance,

 - Jon



Relevant Pages

  • Re: Distributions
    ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
    (Debian-User)
  • Re: Distributions
    ... Ubuntu is based on Debian, ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be larger ... and slower than if you compile those packages, ...
    (Debian-User)
  • Problems with custom kernel fbsd 6.2
    ... My kernel for freebsd 6.2 is not compiling but only with my custom config. ... I was able to compile it with the GENERIC kernel included, but my modified one will not compile. ... # Power management support ...
    (freebsd-questions)
  • Re: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
    ... >optimisations independently of each other', is fairly simple, (in ... >concept), and elegant, (as it lets you compile the most finely tuned ... >Up to now, selecting a CPU to compile for basically means, "Use ... it's silly to include them all in a kernel for a 386. ...
    (Linux-Kernel)
  • Re: C++ pushback
    ... There are all sorts of macros that use member initialization of that form. ... This does not break the code at run time, this breaks the code at compile time, and should be less painful. ... The kernel relies really _really_ heavily on such structure initializers, and breaking them would effectively break the world as far as the kernel is concerned. ... If they were not, one could simply make a base class having members outlined, and which class does not enforce type safety and is for inheritance only. ...
    (Linux-Kernel)