2005-11-17 00:41:32

by Badari Pulavarty

[permalink] [raw]
Subject: 2.6.15-rc1-git4 build failure on ppc64

Hi Andy,

I get following compile error on PPC64 - while trying to compile
CONFIG_FLATMEM=y.

arch/powerpc/mm/numa.c: In function `dump_numa_topology':
arch/powerpc/mm/numa.c:516: error: `SECTION_SIZE_BITS' undeclared (first
use in this function)
arch/powerpc/mm/numa.c:516: error: (Each undeclared identifier is
reported only once
arch/powerpc/mm/numa.c:516: error: for each function it appears in.)
make[1]: *** [arch/powerpc/mm/numa.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [arch/powerpc/mm] Error 2


Thanks,
Badari


2005-11-17 00:51:23

by Andy Whitcroft

[permalink] [raw]
Subject: Re: 2.6.15-rc1-git4 build failure on ppc64

Badari Pulavarty wrote:

> I get following compile error on PPC64 - while trying to compile
> CONFIG_FLATMEM=y.
>
> arch/powerpc/mm/numa.c: In function `dump_numa_topology':
> arch/powerpc/mm/numa.c:516: error: `SECTION_SIZE_BITS' undeclared (first
> use in this function)
> arch/powerpc/mm/numa.c:516: error: (Each undeclared identifier is
> reported only once
> arch/powerpc/mm/numa.c:516: error: for each function it appears in.)
> make[1]: *** [arch/powerpc/mm/numa.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [arch/powerpc/mm] Error 2

Can you drop me a copy of your .config please. I'll have a poke at it
in the morning.

-apw

2005-11-17 01:45:30

by Anton Blanchard

[permalink] [raw]
Subject: Re: 2.6.15-rc1-git4 build failure on ppc64


Hi,

> I get following compile error on PPC64 - while trying to compile
> CONFIG_FLATMEM=y.
>
> arch/powerpc/mm/numa.c: In function `dump_numa_topology':
> arch/powerpc/mm/numa.c:516: error: `SECTION_SIZE_BITS' undeclared (first
> use in this function)
> arch/powerpc/mm/numa.c:516: error: (Each undeclared identifier is
> reported only once
> arch/powerpc/mm/numa.c:516: error: for each function it appears in.)
> make[1]: *** [arch/powerpc/mm/numa.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [arch/powerpc/mm] Error 2

Looks like you are trying to compile NUMA=y, FLATMEM=y which is an
illegal combination. Andy has submitted patches to fix this but in the
meantime can you either make both on or both off?

Anton

2005-11-17 02:45:38

by Paul Mackerras

[permalink] [raw]
Subject: Re: 2.6.15-rc1-git4 build failure on ppc64

Badari Pulavarty writes:

> I get following compile error on PPC64 - while trying to compile
> CONFIG_FLATMEM=y.

You have CONFIG_NUMA=y. According to Anton, NUMA + FLATMEM is an
invalid combination, but unfortunately the Kconfig doesn't enforce
that at the moment. That is, if you want CONFIG_FLATMEM=y, you will
have to explicitly set CONFIG_NUMA=n.

Paul.

2005-11-17 03:43:36

by Badari Pulavarty

[permalink] [raw]
Subject: Re: 2.6.15-rc1-git4 build failure on ppc64

Paul Mackerras wrote:
> Badari Pulavarty writes:
>
>
>>I get following compile error on PPC64 - while trying to compile
>>CONFIG_FLATMEM=y.
>
>
> You have CONFIG_NUMA=y. According to Anton, NUMA + FLATMEM is an
> invalid combination, but unfortunately the Kconfig doesn't enforce
> that at the moment. That is, if you want CONFIG_FLATMEM=y, you will
> have to explicitly set CONFIG_NUMA=n.
>
> Paul.
>

Okay. Thanks.

- Badari