Linux Kernel Cross-Compiling question
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
Quoted 33 lines
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 onceinclude/linux/sched.h:1174: error: for each function it appears in.)
In file included frominclude/linux/mman.h:5,
fromarch/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 fromarch/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 functionbus_to_virt':include/asm/io.h:407: error:CONFIG_KERNEL_START' undeclared (first use in this function) include/asm/io.h: In functionvirt_to_phys':include/asm/io.h:420: error:CONFIG_KERNEL_START' undeclared (first use in this function) include/asm/io.h: In functionphys_to_virt':include/asm/io.h:429: error:CONFIG_KERNEL_START' undeclared (first use in this function) arch/ppc/kernel/asm-offsets.c: In functionmain':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
Quoted 4 lines · Jerry Wang
Quoted 4 lines
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 onceinclude/linux/sched.h:1174: error: for each function it appears in.)
[...]
Quoted 4 lines
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
Signature · 3 lines
Jan-Benedict Glaw [email protected] +49-172-7608481 Signature of: If it doesn't work, force it. the second : If it breaks, it needed replacing anyway.
Quoted 6 lines · Jerry Wang
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