* Compile fails on SPARC64 - include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union
@ 2005-03-28 12:41 Turbo Fredriksson
2005-03-28 12:56 ` Willy Tarreau
0 siblings, 1 reply; 2+ messages in thread
From: Turbo Fredriksson @ 2005-03-28 12:41 UTC (permalink / raw)
To: linux-kernel
Tried 2.6.11.6, 2.6.11.6-bk1 and 2.6.12-rc1.
----- s n i p -----
CHROOT Aurora/Woody-devel# make
CHK include/linux/version.h
CC init/main.o
In file included from include/linux/module.h:10,
from init/main.c:16:
include/linux/sched.h: In function `lock_need_resched':
include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
----- s n i p -----
rgrep'ing in include/ shows that it's defined in all
but 'include/asm-sparc64/spinlock.h':
----- s n i p -----
CHROOT Aurora/Woody-devel# rgrep break_lock include | sort | uniq
include/asm-alpha/spinlock.h: unsigned int break_lock;
include/asm-arm/spinlock.h: unsigned int break_lock;
include/asm-i386/spinlock.h: unsigned int break_lock;
include/asm-ia64/spinlock.h: unsigned int break_lock;
include/asm-m32r/spinlock.h: unsigned int break_lock;
include/asm-mips/spinlock.h: unsigned int break_lock;
include/asm-parisc/spinlock.h: unsigned int break_lock;
include/asm-parisc/system.h: unsigned int break_lock;
include/asm-ppc/spinlock.h: unsigned int break_lock;
include/asm-ppc64/spinlock.h: unsigned int break_lock;
include/asm-s390/spinlock.h: unsigned int break_lock;
include/asm-sh/spinlock.h: unsigned int break_lock;
include/asm-sparc/spinlock.h: unsigned int break_lock;
include/asm-x86_64/spinlock.h: unsigned int break_lock;
include/linux/sched.h:# define need_lockbreak(lock) ((lock)->break_lock)
----- s n i p -----
Kernel config can be found at http://www.bayour.com/config-2.6.12-rc1.txt.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compile fails on SPARC64 - include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union
2005-03-28 12:41 Compile fails on SPARC64 - include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union Turbo Fredriksson
@ 2005-03-28 12:56 ` Willy Tarreau
0 siblings, 0 replies; 2+ messages in thread
From: Willy Tarreau @ 2005-03-28 12:56 UTC (permalink / raw)
To: Turbo Fredriksson; +Cc: linux-kernel
It should work if you disable PREEMPT.
Willy
On Mon, Mar 28, 2005 at 02:41:34PM +0200, Turbo Fredriksson wrote:
> Tried 2.6.11.6, 2.6.11.6-bk1 and 2.6.12-rc1.
>
> ----- s n i p -----
> CHROOT Aurora/Woody-devel# make
> CHK include/linux/version.h
> CC init/main.o
> In file included from include/linux/module.h:10,
> from init/main.c:16:
> include/linux/sched.h: In function `lock_need_resched':
> include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union
> make[1]: *** [init/main.o] Error 1
> make: *** [init] Error 2
> ----- s n i p -----
>
> rgrep'ing in include/ shows that it's defined in all
> but 'include/asm-sparc64/spinlock.h':
>
> ----- s n i p -----
> CHROOT Aurora/Woody-devel# rgrep break_lock include | sort | uniq
> include/asm-alpha/spinlock.h: unsigned int break_lock;
> include/asm-arm/spinlock.h: unsigned int break_lock;
> include/asm-i386/spinlock.h: unsigned int break_lock;
> include/asm-ia64/spinlock.h: unsigned int break_lock;
> include/asm-m32r/spinlock.h: unsigned int break_lock;
> include/asm-mips/spinlock.h: unsigned int break_lock;
> include/asm-parisc/spinlock.h: unsigned int break_lock;
> include/asm-parisc/system.h: unsigned int break_lock;
> include/asm-ppc/spinlock.h: unsigned int break_lock;
> include/asm-ppc64/spinlock.h: unsigned int break_lock;
> include/asm-s390/spinlock.h: unsigned int break_lock;
> include/asm-sh/spinlock.h: unsigned int break_lock;
> include/asm-sparc/spinlock.h: unsigned int break_lock;
> include/asm-x86_64/spinlock.h: unsigned int break_lock;
> include/linux/sched.h:# define need_lockbreak(lock) ((lock)->break_lock)
> ----- s n i p -----
>
> Kernel config can be found at http://www.bayour.com/config-2.6.12-rc1.txt.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-28 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28 12:41 Compile fails on SPARC64 - include/linux/sched.h:1171: request for member `break_lock' in something not a structure or union Turbo Fredriksson
2005-03-28 12:56 ` Willy Tarreau
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).