kernel.spec -r LINUX_2_6

Marcin Doliński devel-pl w pld-dc.org
Pon, 28 Mar 2005, 19:05:59 CEST


Wina kernela czy gcc? Sprawdzałem na 3.3.4 i 3.4.3 - to samo.

  CC      arch/sparc64/kernel/ioctl32.o
  CC      arch/sparc64/kernel/binfmt_elf32.o
In file included from include/asm/pgtable.h:15,
                 from arch/sparc64/kernel/binfmt_elf32.c:7:
include/asm-generic/pgtable-nopud.h:11: error: parse error before "pgd_t"
include/asm-generic/pgtable-nopud.h:11: warning: no semicolon at end of struct 
or union
include/asm-generic/pgtable-nopud.h:11: warning: type defaults to `int' in 
declaration of `pud_t'
include/asm-generic/pgtable-nopud.h:11: warning: data definition has no type 
or storage class
include/asm-generic/pgtable-nopud.h:23: error: parse error before "pgd"
include/asm-generic/pgtable-nopud.h:23: warning: function declaration isn't a 
prototype
include/asm-generic/pgtable-nopud.h:24: error: parse error before "pgd"
include/asm-generic/pgtable-nopud.h:24: warning: function declaration isn't a 
prototype
include/asm-generic/pgtable-nopud.h:26: error: parse error before '*' token
include/asm-generic/pgtable-nopud.h:26: warning: function declaration isn't a 
prototype
include/asm-generic/pgtable-nopud.h:36: error: parse error before '*' token
include/asm-generic/pgtable-nopud.h:36: error: parse error before '*' token
include/asm-generic/pgtable-nopud.h:37: warning: return type defaults to `int'
include/asm-generic/pgtable-nopud.h:37: warning: function declaration isn't a 
prototype
include/asm-generic/pgtable-nopud.h: In function `pud_offset':
include/asm-generic/pgtable-nopud.h:38: error: parse error before ')' token
In file included from arch/sparc64/kernel/binfmt_elf32.c:7:
include/asm/pgtable.h: In function `sun4u_get_pte':
include/asm/pgtable.h:392: error: `pudp' undeclared (first use in this 
function)
include/asm/pgtable.h:392: error: (Each undeclared identifier is reported only 
once
include/asm/pgtable.h:392: error: for each function it appears in.)
include/asm/pgtable.h:393: warning: ISO C90 forbids mixed declarations and 
code
In file included from arch/sparc64/kernel/../../../fs/binfmt_elf.c:17,
                 from arch/sparc64/kernel/binfmt_elf32.c:160:
include/linux/mm.h: At top level:
include/linux/mm.h:663: error: parse error before '*' token
include/linux/mm.h:663: warning: type defaults to `int' in declaration of 
`__pud_alloc'
include/linux/mm.h:663: warning: data definition has no type or storage class
include/linux/mm.h:664: error: parse error before "pud_t"
include/linux/mm.h:664: warning: function declaration isn't a prototype
include/linux/mm.h:723: error: parse error before '*' token
include/linux/mm.h:724: warning: return type defaults to `int'
include/linux/mm.h:730: error: parse error before "pud_t"
include/linux/mm.h:731: warning: function declaration isn't a prototype
include/linux/mm.h: In function `pmd_alloc':
include/linux/mm.h:732: error: `pud' undeclared (first use in this function)
include/linux/mm.h:733: error: `mm' undeclared (first use in this function)
include/linux/mm.h:733: error: `address' undeclared (first use in this 
function)
make[1]: *** [arch/sparc64/kernel/binfmt_elf32.o] Error 1
make: *** [arch/sparc64/kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.19826 (%build)

Pomijam już fakt, że kernel.spec domyślnie odmawia crosskompilacji dla 
sparc64.

To pomaga:
%ifarch sparc64
        %{__make} $CrossOpts image \
                %{?with_verbose:V=1}

        %{__make} $CrossOpts modules \
                %{?with_verbose:V=1}
%else
        sparc32 %{__make} \
                %{?with_verbose:V=1}
%endif




Więcej informacji o liście dyskusyjnej pld-devel-pl