[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems compiling 2.2.15pre4 kernel



On Mon, Jan 24, Renaud Dreyer wrote:

> has anyone managed to successfully compile 2.2.15pre4? I get the following
> error:
> 
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__powerpc__ -fsigned-char -msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -c -o openpic.o openpic.c
> openpic.c: In function `openpic_initirq':
> openpic.c:455: `OPENPIC_SENSE_POLARITY' undeclared (first use in this function)
> openpic.c:455: (Each undeclared identifier is reported only once
> openpic.c:455: for each function it appears in.)
> make[2]: *** [openpic.o] Error 1
> make[2]: Leaving directory `/usr/local/src/linux-2.2.15pre4/arch/ppc/kernel'
> make[1]: *** [_dir_arch/ppc/kernel] Error 2
> make[1]: Leaving directory `/usr/local/src/linux-2.2.15pre4'
> make: *** [stamp-build] Error 2

The kernel from kernel.org is not bugfree,especially the ppc section
;-)

Please try the patches from Benjamin Herrenschmidt. This will solve the
problem. 
http://calvaweb.calvacom.fr/bh40/test.html



But I have another problem: We want (basic) support for APUS in the
upcoming release and the current kernel 2.2.15pre4 can not be compiled.

gcc -D__KERNEL__ -I/abuild/apus/linux/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -D__powe
gcc -D__KERNEL__ -I/abuild/apus/linux/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -D__powe
ppc_ksyms.c:72: `isa_io_base' undeclared here (not in a function)
ppc_ksyms.c:72: initializer element for `__ksymtab_isa_io_base.value' is
not constant
ppc_ksyms.c:73: `isa_mem_base' undeclared here (not in a function)
ppc_ksyms.c:73: initializer element for `__ksymtab_isa_mem_base.value'
is not constant
ppc_ksyms.c:74: `pci_dram_offset' undeclared here (not in a function)
ppc_ksyms.c:74: initializer element for
`__ksymtab_pci_dram_offset.value' is not constant
make[1]: *** [ppc_ksyms.o] Error 1
make[1]: Leaving directory `/abuild/apus/linux/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2


Is there a fix for this problem? 
We don't have any APUS hardware here.




Grusss Olaf

-- 
 $ man 1 current_release

BUGS
       Users never read manuals...


Reply to: