mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Linux Kernel Cross-Compiling question
@ 2009-04-15 14:18 Jerry Wang
  2009-04-15 15:10 ` Jan-Benedict Glaw
  2009-04-15 23:43 ` Tony Breeds
  0 siblings, 2 replies; 3+ messages in thread
From: Jerry Wang @ 2009-04-15 14:18 UTC (permalink / raw)
  To: linux-kernel


Hi,

I am trying to cross-compile the linux 2.6.11.1 kernel on
i686 vm for ppc, and I've been getting the following
errors. Has anyone had this issue before?

Thanks,
Jerry 

> In file included from arch/ppc/kernel/asm-offsets.c:13:
> include/linux/sched.h: In function
> `arch_pick_mmap_layout':
> include/linux/sched.h:1174: error: `CONFIG_TASK_SIZE'
> undeclared (first use in this function)
> include/linux/sched.h:1174: error: (Each undeclared
> identifier is reported only once
> include/linux/sched.h:1174: error: for each function it
> appears in.)
> In file included from include/linux/mman.h:5,
>                  from arch/ppc/kernel/asm-offsets.c:19:
> include/linux/mm.h: In function `lowmem_page_address':
> include/linux/mm.h:437: error: `CONFIG_KERNEL_START'
> undeclared (first use in this function)
> In file included from arch/ppc/kernel/asm-offsets.c:21:
> include/asm/io.h: In function `virt_to_bus':
> include/asm/io.h:396: error: `CONFIG_KERNEL_START'
> undeclared (first use in this function)
> include/asm/io.h: In function `bus_to_virt':
> include/asm/io.h:407: error: `CONFIG_KERNEL_START'
> undeclared (first use in this function)
> include/asm/io.h: In function `virt_to_phys':
> include/asm/io.h:420: error: `CONFIG_KERNEL_START'
> undeclared (first use in this function)
> include/asm/io.h: In function `phys_to_virt':
> include/asm/io.h:429: error: `CONFIG_KERNEL_START'
> undeclared (first use in this function)
> arch/ppc/kernel/asm-offsets.c: In function `main':
> arch/ppc/kernel/asm-offsets.c:139: error:
> `CONFIG_TASK_SIZE' undeclared (first use in this
> function)
> make[1]: *** [arch/ppc/kernel/asm-offsets.s] Error 1
> make: *** [arch/ppc/kernel/asm-offsets.s] Error 2


      

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

* Re: Linux Kernel Cross-Compiling question
  2009-04-15 14:18 Linux Kernel Cross-Compiling question Jerry Wang
@ 2009-04-15 15:10 ` Jan-Benedict Glaw
  2009-04-15 23:43 ` Tony Breeds
  1 sibling, 0 replies; 3+ messages in thread
From: Jan-Benedict Glaw @ 2009-04-15 15:10 UTC (permalink / raw)
  To: Jerry Wang; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 986 bytes --]

On Wed, 2009-04-15 07:18:13 -0700, Jerry Wang <jerry18th@yahoo.com> wrote:
> > In file included from arch/ppc/kernel/asm-offsets.c:13: include/linux/sched.h: In function `arch_pick_mmap_layout':
> > include/linux/sched.h:1174: error: `CONFIG_TASK_SIZE' undeclared (first use in this function)
> > include/linux/sched.h:1174: error: (Each undeclared identifier is reported only once
> > include/linux/sched.h:1174: error: for each function it appears in.)
[...]
> 
> I am trying to cross-compile the linux 2.6.11.1 kernel on
> i686 vm for ppc, and I've been getting the following
> errors. Has anyone had this issue before?

Why are you trying to compile something that is /so/ old? Please
re-test with a current GIT snapshot.

MfG, JBG


-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
 Signature of:                            If it doesn't work, force it.
 the second  :                   If it breaks, it needed replacing anyway.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Linux Kernel Cross-Compiling question
  2009-04-15 14:18 Linux Kernel Cross-Compiling question Jerry Wang
  2009-04-15 15:10 ` Jan-Benedict Glaw
@ 2009-04-15 23:43 ` Tony Breeds
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Breeds @ 2009-04-15 23:43 UTC (permalink / raw)
  To: Jerry Wang; +Cc: linux-kernel

On Wed, Apr 15, 2009 at 07:18:13AM -0700, Jerry Wang wrote:
> 
> Hi,
> 
> I am trying to cross-compile the linux 2.6.11.1 kernel on
> i686 vm for ppc, and I've been getting the following
> errors. Has anyone had this issue before?

Can you post the command you used to genberate the .config and build the
kernel.  Also what is version of your powerpc binutils and gcc?

I assume you need 2.6.11.1 for some reason and newer kernels are out of the
question?

Yours Tony

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

end of thread, other threads:[~2009-04-15 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-15 14:18 Linux Kernel Cross-Compiling question Jerry Wang
2009-04-15 15:10 ` Jan-Benedict Glaw
2009-04-15 23:43 ` Tony Breeds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®