Re: Compile 2.6.x kernel with GCC-3

From: Anton Ertl (anton_at_mips.complang.tuwien.ac.at)
Date: 12/13/04


Date: Mon, 13 Dec 2004 10:26:10 GMT


"Jon Fullmer" <jonfullmer@gmail.com> writes:
>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 saw a similar problem with 2.6.9, but the errors I got are:

  CC drivers/ide/ppc/pmac.o
drivers/ide/ppc/pmac.c: In function `pmac_ide_macio_attach':
drivers/ide/ppc/pmac.c:1351: warning: passing arg 1 of `iounmap' discards qualifiers from pointer target type
drivers/ide/ppc/pmac.c: In function `pmac_ide_dma_read':
drivers/ide/ppc/pmac.c:1942: error: `ide_dma_intr' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:1942: error: (Each undeclared identifier is reported only once
drivers/ide/ppc/pmac.c:1942: error: for each function it appears in.)
drivers/ide/ppc/pmac.c: In function `pmac_ide_dma_write':
drivers/ide/ppc/pmac.c:1973: error: `ide_dma_intr' undeclared (first use in this function)
drivers/ide/ppc/pmac.c: In function `pmac_ide_setup_dma':
drivers/ide/ppc/pmac.c:2148: error: `__ide_dma_off_quietly' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:2149: error: `__ide_dma_on' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:2158: error: `__ide_dma_verbose' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:2159: error: `__ide_dma_timeout' undeclared (first use in this function)

I turned on most of the PCI IDE stuff in the configuration, and these
errors went away. I still got a warning (from gcc-3.3.4):

drivers/ide/ppc/pmac.c: In function `pmac_ide_macio_attach':
drivers/ide/ppc/pmac.c:1351: warning: passing arg 1 of `iounmap' discards qualifiers from pointer target type

For your stuff, I see that kauai_pio_timings and IDE_WAKEUP_DELAY are
defined if CONFIG_BLK_DEV_IDEDMA_PMAC is defined; so turn that on in
the configuration, and see if the problems go away.

- anton

-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html


Relevant Pages

  • Logitech Click! Plus mouse, additional buttons configuration
    ... I've been Googling for a solution to no avail. ... Two buttons and the wheel work great, but I can not succeed in getting ... Running xev, ... Here are parts of my configuration: ...
    (comp.os.linux.x)
  • Re: How do I email and HTML format mail merge?
    ... If your update was unsuccessful it sounds as if there is a configuration ... I was running Outlook and Office 2002. ... I updated my office software, but it said that the installation was ...
    (microsoft.public.word.mailmerge.fields)
  • Apache2::ASP installation
    ... but I cannot seem to find a support repository ... outside of googling for individual pages or installation hints other ... Something that I tried hours ago made me think that the configuration ... but I can no longer reproduce or even ...
    (comp.lang.perl.misc)