Most recent kernel where this bug did not occur:linux-2.6.17.6 ,linux-2.6.15.4 and earlier ones also Distribution:Fedora core 4,5 Hardware Environment: X86 pc (p4 and AMD Athlon 64 running i386 FC5) Software Environment:Using cross compiler gcc-4.0.2-glibc-2.3.6/powerpc-860-linux-gnu/ Problem Description:It is observed that after selecting PPC or POWERPC for making make ie ARCH=powerpc for processor type "8xx" the compilation fails. The same problem appeared on diff machine with diff Linux distribution and kernel a. The error reported are of missing header file in case choosing the POWERPC and b. In case of PPC the compilation breaks with saying" _IO_BASE" undeclared in function outb c. We manage to copy the missing files for error "a" from ppc plathform and we went quite ahead with compilation but latter it failed at FEC --------------------------------------------------------------------------- Error screen shot ========================= with POWERPC option ================================== make ARCH=powerpc menuconfig scripts/kconfig/mconf arch/powerpc/Kconfig *** End of Linux kernel configuration. *** Execute 'make' to build the kernel or try 'make help'. [root@prom linux-2.6.15.4]# make ARCH=powerpc CHK include/linux/version.h UPD include/linux/version.h SYMLINK include/asm -> include/asm-powerpc SPLIT include/linux/autoconf.h -> include/config/* CC arch/powerpc/kernel/asm-offsets.s In file included from include/asm/irq.h:136, from include/asm/hardirq.h:4, from include/linux/hardirq.h:7, from include/linux/interrupt.h:11, from include/linux/rcuref.h:36, from include/linux/fs.h:12, from include/linux/mm.h:15, from include/linux/mman.h:5, from arch/powerpc/kernel/asm-offsets.c:23: arch/powerpc/include/asm/mpc8xx.h:24:31: error: platforms/rpxlite.h: No such file or directory make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 ====================== With PPC option========================================== *** End of Linux kernel configuration. *** Execute 'make' to build the kernel or try 'make help'. [root@prom linux-2.6.15.4]# make ARCH=ppc CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* CC arch/ppc/kernel/asm-offsets.s In file included from arch/ppc/kernel/asm-offsets.c:19: include/linux/suspend.h:5:25: error: asm/suspend.h: No such file or directory In file included from include/asm/hardirq.h:4, from include/linux/hardirq.h:7, from include/linux/interrupt.h:11, from include/linux/rcuref.h:36, from include/linux/fs.h:12, from include/linux/mm.h:15, from include/linux/mman.h:5, from arch/ppc/kernel/asm-offsets.c:20: include/asm/irq.h:136:24: error: asm/mpc8xx.h: No such file or directory In file included from include/asm/io.h:12, from arch/ppc/kernel/asm-offsets.c:22: include/asm-ppc/io.h: In function 'outb': include/asm-ppc/io.h:297: error: '_IO_BASE' undeclared (first use in this function) include/asm-ppc/io.h:297: error: (Each undeclared identifier is reported only once include/asm-ppc/io.h:297: error: for each function it appears in.) include/asm-ppc/io.h: In function 'inb': include/asm-ppc/io.h:312: error: '_IO_BASE' undeclared (first use in this function) include/asm-ppc/io.h: In function 'inw': include/asm-ppc/io.h:313: error: '_IO_BASE' undeclared (first use in this function) include/asm-ppc/io.h: In function 'inl': include/asm-ppc/io.h:314: error: '_IO_BASE' undeclared (first use in this function) include/asm-ppc/io.h: In function 'outw': include/asm-ppc/io.h:315: error: '_IO_BASE' undeclared (first use in this function) include/asm-ppc/io.h: In function 'outl': include/asm-ppc/io.h:316: error: '_IO_BASE' undeclared (first use in this function) include/asm-ppc/io.h: In function 'virt_to_bus': include/asm-ppc/io.h:401: error: 'PCI_DRAM_OFFSET' undeclared (first use in this function) include/asm-ppc/io.h: In function 'bus_to_virt': include/asm-ppc/io.h:412: error: 'PCI_DRAM_OFFSET' undeclared (first use in this function) make[1]: *** [arch/ppc/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 Steps to reproduce: a. (for POWERPC) 1. choose "make ARCH=powerpc menuconfig" 2. choose the processor as "freescale 8xx" 3. Run "make ARCH=powerpc" (provided u have installed a crosscompiler for 860 ppc family) b. (For PPC) 1. choose "make ARCH=ppc menuconfig" 2. choose the processor as "8xx" 3. Run "make ARCH=ppc" (provided u have installed a crosscompiler for 860 ppc family) PS: I have one doubt to ask , what is the differnce between ppc and powepc option in the kernel .I observed only one differnce that is 0f 64bit support in the powerpc one . Thanking you in advance Regards, Hrishikesh Gokhake
Correction to words : Most recent kernel where this bug did occur:linux-2.6.17.X ,linux-2.6.15.4 .
Hrishikesh, any updates on this?
Since it's been a long time closing the bug assuming that compile issue has been resolved.n