linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 2.6.27-git7 compile error (ppc)
@ 2008-10-17 17:47 Badari Pulavarty
  2008-10-17 18:11 ` Badari Pulavarty
  0 siblings, 1 reply; 6+ messages in thread
From: Badari Pulavarty @ 2008-10-17 17:47 UTC (permalink / raw)
  To: LinuxPPC-dev; +Cc: linux-kernel

Hi,

I get this following compile error on my ppc box.

Let me know if its a known issue. Otherwise, I can figure out
whats happening.

Thanks,
Badari

  CC      arch/powerpc/mm/slb.o
In file included from /usr/src/linux-2.6.27/arch/powerpc/include/asm/mmu-hash64.h:16,
                 from /usr/src/linux-2.6.27/arch/powerpc/include/asm/mmu.h:7,
                 from /usr/src/linux-2.6.27/arch/powerpc/include/asm/pgtable.h:7,
                 from arch/powerpc/mm/slb.c:19:
/usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: error: parse error before "memstart_addr"
/usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning: type defaults to `int' in declaration of `memstart_addr'
/usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning: data definition has no type or storage class
/usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: error: parse error before "kernstart_addr"
/usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning: type defaults to `int' in declaration of `kernstart_addr'
/usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning: data definition has no type or storage class
  AS      arch/powerpc/lib/string.o
  CC      arch/powerpc/lib/alloc.o
  CALL    arch/powerpc/kernel/systbl_chk.sh
  CC      arch/powerpc/kernel/sysfs.o
make[1]: *** [arch/powerpc/mm/slb.o] Error 1
make: *** [arch/powerpc/mm] Error 2
make: *** Waiting for unfinished jobs....

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.6.27-git7 compile error (ppc)
  2008-10-17 17:47 2.6.27-git7 compile error (ppc) Badari Pulavarty
@ 2008-10-17 18:11 ` Badari Pulavarty
  2008-10-17 20:37   ` Kumar Gala
  0 siblings, 1 reply; 6+ messages in thread
From: Badari Pulavarty @ 2008-10-17 18:11 UTC (permalink / raw)
  To: LinuxPPC-dev; +Cc: linux-kernel

On Fri, 2008-10-17 at 10:47 -0700, Badari Pulavarty wrote:
> Hi,
> 
> I get this following compile error on my ppc box.
> 
> Let me know if its a known issue. Otherwise, I can figure out
> whats happening.
> 
> Thanks,
> Badari

This is due to recent changes to move phys_add_t definition from
arch/powerpc/include/asm/types.h to include/linux/types.h.

arch/powerpc/include/asm/page.h needs phys_addr_t for
CONFIG_RELOCATABLE. Needs fixing..

Thanks,
Badari

> 
>   CC      arch/powerpc/mm/slb.o
> In file included from /usr/src/linux-2.6.27/arch/powerpc/include/asm/mmu-hash64.h:16,
>                  from /usr/src/linux-2.6.27/arch/powerpc/include/asm/mmu.h:7,
>                  from /usr/src/linux-2.6.27/arch/powerpc/include/asm/pgtable.h:7,
>                  from arch/powerpc/mm/slb.c:19:
> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: error: parse error before "memstart_addr"
> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning: type defaults to `int' in declaration of `memstart_addr'
> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning: data definition has no type or storage class
> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: error: parse error before "kernstart_addr"
> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning: type defaults to `int' in declaration of `kernstart_addr'
> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning: data definition has no type or storage class
>   AS      arch/powerpc/lib/string.o
>   CC      arch/powerpc/lib/alloc.o
>   CALL    arch/powerpc/kernel/systbl_chk.sh
>   CC      arch/powerpc/kernel/sysfs.o
> make[1]: *** [arch/powerpc/mm/slb.o] Error 1
> make: *** [arch/powerpc/mm] Error 2
> make: *** Waiting for unfinished jobs....
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.6.27-git7 compile error (ppc)
  2008-10-17 18:11 ` Badari Pulavarty
@ 2008-10-17 20:37   ` Kumar Gala
  2008-10-24 22:54     ` Rafael J. Wysocki
  0 siblings, 1 reply; 6+ messages in thread
From: Kumar Gala @ 2008-10-17 20:37 UTC (permalink / raw)
  To: Badari Pulavarty; +Cc: LinuxPPC-dev, linux-kernel


On Oct 17, 2008, at 1:11 PM, Badari Pulavarty wrote:

> On Fri, 2008-10-17 at 10:47 -0700, Badari Pulavarty wrote:
>> Hi,
>>
>> I get this following compile error on my ppc box.
>>
>> Let me know if its a known issue. Otherwise, I can figure out
>> whats happening.
>>
>> Thanks,
>> Badari
>
> This is due to recent changes to move phys_add_t definition from
> arch/powerpc/include/asm/types.h to include/linux/types.h.
>
> arch/powerpc/include/asm/page.h needs phys_addr_t for
> CONFIG_RELOCATABLE. Needs fixing..
>
> Thanks,
> Badari
>
>>
>>  CC      arch/powerpc/mm/slb.o
>> In file included from /usr/src/linux-2.6.27/arch/powerpc/include/ 
>> asm/mmu-hash64.h:16,
>>                 from /usr/src/linux-2.6.27/arch/powerpc/include/asm/ 
>> mmu.h:7,
>>                 from /usr/src/linux-2.6.27/arch/powerpc/include/asm/ 
>> pgtable.h:7,
>>                 from arch/powerpc/mm/slb.c:19:
>> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: error:  
>> parse error before "memstart_addr"
>> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning:  
>> type defaults to `int' in declaration of `memstart_addr'
>> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning:  
>> data definition has no type or storage class
>> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: error:  
>> parse error before "kernstart_addr"
>> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning:  
>> type defaults to `int' in declaration of `kernstart_addr'
>> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning:  
>> data definition has no type or storage class
>>  AS      arch/powerpc/lib/string.o
>>  CC      arch/powerpc/lib/alloc.o
>>  CALL    arch/powerpc/kernel/systbl_chk.sh
>>  CC      arch/powerpc/kernel/sysfs.o
>> make[1]: *** [arch/powerpc/mm/slb.o] Error 1
>> make: *** [arch/powerpc/mm] Error 2
>> make: *** Waiting for unfinished jobs....

I've got a patch that seems to address this for me building w/ 
CONFIG_RELOCATABLE on ppc32/85xx.

- k

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.6.27-git7 compile error (ppc)
  2008-10-17 20:37   ` Kumar Gala
@ 2008-10-24 22:54     ` Rafael J. Wysocki
  2008-10-24 22:55       ` Chris Friesen
  0 siblings, 1 reply; 6+ messages in thread
From: Rafael J. Wysocki @ 2008-10-24 22:54 UTC (permalink / raw)
  To: Kumar Gala; +Cc: LinuxPPC-dev, linux-kernel, Badari Pulavarty

On Friday, 17 of October 2008, Kumar Gala wrote:
> 
> On Oct 17, 2008, at 1:11 PM, Badari Pulavarty wrote:
> 
> > On Fri, 2008-10-17 at 10:47 -0700, Badari Pulavarty wrote:
> >> Hi,
> >>
> >> I get this following compile error on my ppc box.
> >>
> >> Let me know if its a known issue. Otherwise, I can figure out
> >> whats happening.
> >>
> >> Thanks,
> >> Badari
> >
> > This is due to recent changes to move phys_add_t definition from
> > arch/powerpc/include/asm/types.h to include/linux/types.h.
> >
> > arch/powerpc/include/asm/page.h needs phys_addr_t for
> > CONFIG_RELOCATABLE. Needs fixing..
> >
> > Thanks,
> > Badari
> >
> >>
> >>  CC      arch/powerpc/mm/slb.o
> >> In file included from /usr/src/linux-2.6.27/arch/powerpc/include/ 
> >> asm/mmu-hash64.h:16,
> >>                 from /usr/src/linux-2.6.27/arch/powerpc/include/asm/ 
> >> mmu.h:7,
> >>                 from /usr/src/linux-2.6.27/arch/powerpc/include/asm/ 
> >> pgtable.h:7,
> >>                 from arch/powerpc/mm/slb.c:19:
> >> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: error:  
> >> parse error before "memstart_addr"
> >> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning:  
> >> type defaults to `int' in declaration of `memstart_addr'
> >> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:76: warning:  
> >> data definition has no type or storage class
> >> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: error:  
> >> parse error before "kernstart_addr"
> >> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning:  
> >> type defaults to `int' in declaration of `kernstart_addr'
> >> /usr/src/linux-2.6.27/arch/powerpc/include/asm/page.h:77: warning:  
> >> data definition has no type or storage class
> >>  AS      arch/powerpc/lib/string.o
> >>  CC      arch/powerpc/lib/alloc.o
> >>  CALL    arch/powerpc/kernel/systbl_chk.sh
> >>  CC      arch/powerpc/kernel/sysfs.o
> >> make[1]: *** [arch/powerpc/mm/slb.o] Error 1
> >> make: *** [arch/powerpc/mm] Error 2
> >> make: *** Waiting for unfinished jobs....
> 
> I've got a patch that seems to address this for me building w/ 
> CONFIG_RELOCATABLE on ppc32/85xx.

Has that been fixed in 2.6.27 and/or current mainline?

Rafael

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.6.27-git7 compile error (ppc)
  2008-10-24 22:54     ` Rafael J. Wysocki
@ 2008-10-24 22:55       ` Chris Friesen
  2008-10-25  0:02         ` Badari Pulavarty
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Friesen @ 2008-10-24 22:55 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: LinuxPPC-dev, linux-kernel, Badari Pulavarty

Rafael J. Wysocki wrote:
> On Friday, 17 of October 2008, Kumar Gala wrote:

>> I've got a patch that seems to address this for me building w/ 
>> CONFIG_RELOCATABLE on ppc32/85xx.
> 
> Has that been fixed in 2.6.27 and/or current mainline?

I think CONFIG_RELOCATABLE was introduced post 2.6.27, so shouldn't be a 
problem in that version.

Chris

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 2.6.27-git7 compile error (ppc)
  2008-10-24 22:55       ` Chris Friesen
@ 2008-10-25  0:02         ` Badari Pulavarty
  0 siblings, 0 replies; 6+ messages in thread
From: Badari Pulavarty @ 2008-10-25  0:02 UTC (permalink / raw)
  To: Chris Friesen; +Cc: Rafael J. Wysocki, LinuxPPC-dev, linux-kernel

On Fri, 2008-10-24 at 16:55 -0600, Chris Friesen wrote:
> Rafael J. Wysocki wrote:
> > On Friday, 17 of October 2008, Kumar Gala wrote:
> 
> >> I've got a patch that seems to address this for me building w/ 
> >> CONFIG_RELOCATABLE on ppc32/85xx.
> > 
> > Has that been fixed in 2.6.27 and/or current mainline?
> 
> I think CONFIG_RELOCATABLE was introduced post 2.6.27, so shouldn't be a 
> problem in that version.
> 
> Chris

Not quite true. CONFIG_RELOCATABLE is present in 2.6.27, but the changes
to types.h happend post 2.6.27 - so there is no problem with 2.6.27.

2.6.27-git11 compiles fine.

Thanks,
Badari

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-25  0:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17 17:47 2.6.27-git7 compile error (ppc) Badari Pulavarty
2008-10-17 18:11 ` Badari Pulavarty
2008-10-17 20:37   ` Kumar Gala
2008-10-24 22:54     ` Rafael J. Wysocki
2008-10-24 22:55       ` Chris Friesen
2008-10-25  0:02         ` Badari Pulavarty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).