linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.23-rc2 cross compile regressions (alpha,sparc,xtensa)
@ 2007-08-06  7:31 Jan Dittmer
  2007-08-06  7:34 ` David Miller
  2007-08-06  7:42 ` Christian Zankel
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Dittmer @ 2007-08-06  7:31 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: michal.k.k.piotrowski, wli, chris, rth

sparc/defconfig:
  CC      init/main.o
In file included from include/linux/proc_fs.h:5,
                 from init/main.c:14:
include/linux/fs.h:848: warning: `struct flock' declared inside parameter list
include/linux/fs.h:848: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/fs.h:850: warning: `struct flock' declared inside parameter list
include/linux/fs.h:853: warning: `struct flock64' declared inside parameter list
include/linux/fs.h:855: warning: `struct flock64' declared inside parameter list
init/main.c: In function `init_post':
init/main.c:782: error: `O_RDWR' undeclared (first use in this function)
init/main.c:782: error: (Each undeclared identifier is reported only once
init/main.c:782: error: for each function it appears in.)
make[2]: *** [init/main.o] Error 1
make[1]: *** [init] Error 2
make: *** [_all] Error 2

xtensa/defconfig:
  CC      arch/xtensa/kernel/process.o
arch/xtensa/kernel/process.c:50: error: `INR_OPEN' undeclared here (not in a function)
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[7].rlim_cur')
arch/xtensa/kernel/process.c:50: error: `INR_OPEN' undeclared here (not in a function)
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[7].rlim_max')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[7]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[8]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[9]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[10]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[11]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[12]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[13]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim[14]')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.rlim')
arch/xtensa/kernel/process.c:50: error: initializer element is not constant
arch/xtensa/kernel/process.c:50: error: (near initialization for `init_signals.<anonymous>')
arch/xtensa/kernel/process.c: In function `xtensa_execve':
arch/xtensa/kernel/process.c:449: error: implicit declaration of function `getname'
arch/xtensa/kernel/process.c:449: warning: assignment makes pointer from integer without a cast
arch/xtensa/kernel/process.c:460: error: implicit declaration of function `putname'
make[2]: *** [arch/xtensa/kernel/process.o] Error 1
make[1]: *** [arch/xtensa/kernel] Error 2
make: *** [_all] Error 2

alpha/defconfig:
  LD      .tmp_vmlinux1
arch/alpha/kernel/built-in.o(.text+0xaaa8): In function `pdev_save_srm_config':
include/linux/slub_def.h:154: undefined reference to `__kmalloc_size_too_large'
arch/alpha/kernel/built-in.o(.text+0xaaac):include/linux/slub_def.h:154: undefined reference to `__kmalloc_size_too_large'
arch/alpha/kernel/built-in.o(.text+0xd0a8): In function `module_frob_arch_sections':
include/linux/slub_def.h:154: undefined reference to `__kmalloc_size_too_large'
arch/alpha/kernel/built-in.o(.text+0xd0ac):include/linux/slub_def.h:154: undefined reference to `__kmalloc_size_too_large'
arch/alpha/kernel/built-in.o(.text+0x19388): In function `srmcons_get_private_struct':
include/linux/slub_def.h:154: undefined reference to `__kmalloc_size_too_large'
arch/alpha/kernel/built-in.o(.text+0x1938c):include/linux/slub_def.h:154: more undefined references to `__kmalloc_size_too_large' follow
make[1]: *** [.tmp_vmlinux1] Error 1
make: *** [_all] Error 2

With patch: ia64/defconfig.
Not compiling: blackfin,cris,frv,h8300,v850

Jan

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

* Re: 2.6.23-rc2 cross compile regressions (alpha,sparc,xtensa)
  2007-08-06  7:31 2.6.23-rc2 cross compile regressions (alpha,sparc,xtensa) Jan Dittmer
@ 2007-08-06  7:34 ` David Miller
  2007-08-06  7:42 ` Christian Zankel
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-08-06  7:34 UTC (permalink / raw)
  To: jdi; +Cc: linux-kernel, michal.k.k.piotrowski, wli, chris, rth

From: Jan Dittmer <jdi@l4x.org>
Date: Mon, 06 Aug 2007 09:31:55 +0200

> sparc/defconfig:
>   CC      init/main.o
> In file included from include/linux/proc_fs.h:5,
>                  from init/main.c:14:
> include/linux/fs.h:848: warning: `struct flock' declared inside parameter list
> include/linux/fs.h:848: warning: its scope is only this definition or declaration, which is probably not what you want
> include/linux/fs.h:850: warning: `struct flock' declared inside parameter list
> include/linux/fs.h:853: warning: `struct flock64' declared inside parameter list
> include/linux/fs.h:855: warning: `struct flock64' declared inside parameter list
> init/main.c: In function `init_post':
> init/main.c:782: error: `O_RDWR' undeclared (first use in this function)
> init/main.c:782: error: (Each undeclared identifier is reported only once
> init/main.c:782: error: for each function it appears in.)
> make[2]: *** [init/main.o] Error 1
> make[1]: *** [init] Error 2
> make: *** [_all] Error 2

Fix below has already been submmited.

BTW, you'll have much better luck with reports like this if you
direct them to the platform specific mailing list, which would
be sparclinux@vger.kernel.org in this case.

commit c8154c8a9aaf548ad91e413da8b319858e37bc52
Author: Mark Fortescue <mark@mtfhpc.demon.co.uk>
Date:   Sat Aug 4 21:17:18 2007 -0700

    [SPARC32]: Fix build.
    
    Correct incorrect removal of asm-generic/fcntl.h from asm-sparc/fcntl.h by
    commit 6ba60d2195cd65d72eaf7ce3903a707c5bf20c7b.
    
    Signed-off-by: Mark Fortescue <mark@mtfhpc.demon.co.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/include/asm-sparc/fcntl.h b/include/asm-sparc/fcntl.h
index 7bbdfc7..5ec5463 100644
--- a/include/asm-sparc/fcntl.h
+++ b/include/asm-sparc/fcntl.h
@@ -32,5 +32,6 @@
 #define __ARCH_FLOCK_PAD	short __unused;
 #define __ARCH_FLOCK64_PAD	short __unused;
 
+#include <asm-generic/fcntl.h>
 
 #endif

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

* Re: 2.6.23-rc2 cross compile regressions (alpha,sparc,xtensa)
  2007-08-06  7:31 2.6.23-rc2 cross compile regressions (alpha,sparc,xtensa) Jan Dittmer
  2007-08-06  7:34 ` David Miller
@ 2007-08-06  7:42 ` Christian Zankel
  1 sibling, 0 replies; 3+ messages in thread
From: Christian Zankel @ 2007-08-06  7:42 UTC (permalink / raw)
  To: Jan Dittmer; +Cc: Linux Kernel Mailing List, michal.k.k.piotrowski, wli, rth

Jan,

Thanks for your report. I am working on some patches that I plan to 
submit this week to fix those issues.

Thanks,
-Chris

Jan Dittmer wrote:
> sparc/defconfig:
>  CC      init/main.o
> In file included from include/linux/proc_fs.h:5,
>                 from init/main.c:14:
> include/linux/fs.h:848: warning: `struct flock' declared inside 
> parameter list
> include/linux/fs.h:848: warning: its scope is only this definition or 
> declaration, which is probably not what you want
> include/linux/fs.h:850: warning: `struct flock' declared inside 
> parameter list
> include/linux/fs.h:853: warning: `struct flock64' declared inside 
> parameter list
> include/linux/fs.h:855: warning: `struct flock64' declared inside 
> parameter list
> init/main.c: In function `init_post':
> init/main.c:782: error: `O_RDWR' undeclared (first use in this function)
> init/main.c:782: error: (Each undeclared identifier is reported only once
> init/main.c:782: error: for each function it appears in.)
> make[2]: *** [init/main.o] Error 1
> make[1]: *** [init] Error 2
> make: *** [_all] Error 2
> 
> xtensa/defconfig:
>  CC      arch/xtensa/kernel/process.o
> arch/xtensa/kernel/process.c:50: error: `INR_OPEN' undeclared here (not 
> in a function)
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[7].rlim_cur')
> arch/xtensa/kernel/process.c:50: error: `INR_OPEN' undeclared here (not 
> in a function)
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[7].rlim_max')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[7]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[8]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[9]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[10]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[11]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[12]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[13]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim[14]')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.rlim')
> arch/xtensa/kernel/process.c:50: error: initializer element is not constant
> arch/xtensa/kernel/process.c:50: error: (near initialization for 
> `init_signals.<anonymous>')
> arch/xtensa/kernel/process.c: In function `xtensa_execve':
> arch/xtensa/kernel/process.c:449: error: implicit declaration of 
> function `getname'
> arch/xtensa/kernel/process.c:449: warning: assignment makes pointer from 
> integer without a cast
> arch/xtensa/kernel/process.c:460: error: implicit declaration of 
> function `putname'
> make[2]: *** [arch/xtensa/kernel/process.o] Error 1
> make[1]: *** [arch/xtensa/kernel] Error 2
> make: *** [_all] Error 2
> 
> alpha/defconfig:
>  LD      .tmp_vmlinux1
> arch/alpha/kernel/built-in.o(.text+0xaaa8): In function 
> `pdev_save_srm_config':
> include/linux/slub_def.h:154: undefined reference to 
> `__kmalloc_size_too_large'
> arch/alpha/kernel/built-in.o(.text+0xaaac):include/linux/slub_def.h:154: 
> undefined reference to `__kmalloc_size_too_large'
> arch/alpha/kernel/built-in.o(.text+0xd0a8): In function 
> `module_frob_arch_sections':
> include/linux/slub_def.h:154: undefined reference to 
> `__kmalloc_size_too_large'
> arch/alpha/kernel/built-in.o(.text+0xd0ac):include/linux/slub_def.h:154: 
> undefined reference to `__kmalloc_size_too_large'
> arch/alpha/kernel/built-in.o(.text+0x19388): In function 
> `srmcons_get_private_struct':
> include/linux/slub_def.h:154: undefined reference to 
> `__kmalloc_size_too_large'
> arch/alpha/kernel/built-in.o(.text+0x1938c):include/linux/slub_def.h:154: 
> more undefined references to `__kmalloc_size_too_large' follow
> make[1]: *** [.tmp_vmlinux1] Error 1
> make: *** [_all] Error 2
> 
> With patch: ia64/defconfig.
> Not compiling: blackfin,cris,frv,h8300,v850
> 
> Jan
> 
> 


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

end of thread, other threads:[~2007-08-06  7:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-06  7:31 2.6.23-rc2 cross compile regressions (alpha,sparc,xtensa) Jan Dittmer
2007-08-06  7:34 ` David Miller
2007-08-06  7:42 ` Christian Zankel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).