From: Lee Revell <rlrevell@joe-job.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: david singleton <dsingleton@mvista.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>
Subject: Re: 2.6.15-rc5-rt1 will not compile (was Re: 2.6.14-rt15: cannot build with !PREEMPT_RT)
Date: Mon, 12 Dec 2005 17:14:48 -0500 [thread overview]
Message-ID: <1134425688.17058.5.camel@mindpipe> (raw)
In-Reply-To: <1134424143.24145.6.camel@localhost.localdomain>
On Mon, 2005-12-12 at 16:49 -0500, Steven Rostedt wrote:
> On Mon, 2005-12-12 at 12:44 -0500, Lee Revell wrote:
> > On Fri, 2005-12-09 at 19:25 -0500, Lee Revell wrote:
> > > > We are unable to build a similar .config (PREEMPT_DESKTOP with soft and
> > > > hardirq preemption disabled) on x86-64:
> > >
> > > Here is the build output, .config attached.
> >
> > Similar problem with 2.6.15-rc5-rt1:
> >
> > $ make
> > CHK include/linux/version.h
> > UPD include/linux/version.h
> > SYMLINK include/asm -> include/asm-x86_64
> > SPLIT include/linux/autoconf.h -> include/config/*
> > CC arch/x86_64/kernel/asm-offsets.s
> > In file included from include/asm/semaphore.h:48,
> > from include/linux/sched.h:20,
> > from arch/x86_64/kernel/asm-offsets.c:7:
> > include/linux/rwsem.h:43:66: error: asm/rwsem.h: No such file or
> > directory
> > In file included from include/asm/semaphore.h:48,
> > from include/linux/sched.h:20,
> > from arch/x86_64/kernel/asm-offsets.c:7:
>
> Looks like Ingo has a generic rwsem to work with, but if your arch turns
> on CONFIG_RWSEM_XCHGADD_ALGORITHM, it will compile lib/rwsem.c which
> won't compile as you've seen.
>
> Try out this patch: I changed the Makefile, instead of going to each
> and every arch and change its Kconfig to do it properly.
The patch had no effect.
In fact x86-64 does not set CONFIG_RWSEM_XCHGADD_ALGORITHM so this test
in include/linux/rwsem.h causes asm/rwsem.h to be included which does
not exist on x86-64:
36 #ifdef CONFIG_RWSEM_GENERIC_SPINLOCK
37 # include <linux/rwsem-spinlock.h> /* use a generic implementation */
38 # ifndef CONFIG_PREEMPT_RT
39 # define __RWSEM_INITIALIZER __COMPAT_RWSEM_INITIALIZER
40 # define DECLARE_RWSEM COMPAT_DECLARE_RWSEM
41 # endif
42 #else
43 # include <asm/rwsem.h> /* use an arch-specific implementation */
44 #endif
If I change that code to always include <linux/rwsem-spinlock.h>, I get
the exact same failures I did with 2.6.14-rt22:
$ make
CHK include/linux/version.h
CC arch/x86_64/kernel/asm-offsets.s
GEN include/asm-x86_64/asm-offsets.h
CC init/main.o
In file included from include/linux/proc_fs.h:6,
from init/main.c:17:
include/linux/fs.h: In function 'lock_super':
include/linux/fs.h:867: warning: implicit declaration of function 'down'
include/linux/fs.h: In function 'unlock_super':
include/linux/fs.h:873: warning: implicit declaration of function 'up'
CHK include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
In file included from include/linux/tty.h:20,
from init/do_mounts.c:5:
include/linux/fs.h: In function 'lock_super':
include/linux/fs.h:867: warning: implicit declaration of function 'down'
include/linux/fs.h: In function 'unlock_super':
include/linux/fs.h:873: warning: implicit declaration of function 'up'
etc.
Lee
next prev parent reply other threads:[~2005-12-12 22:12 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-26 6:52 2.6.14-rt15: cannot build with !PREEMPT_RT Lee Revell
2005-11-26 12:23 ` Ingo Molnar
2005-11-26 19:05 ` Lee Revell
2005-11-26 19:46 ` Thomas Gleixner
2005-11-27 12:30 ` Ingo Molnar
2005-11-27 19:57 ` Lee Revell
2005-11-28 11:44 ` Ingo Molnar
2005-11-28 1:27 ` Lee Revell
2005-11-28 11:48 ` Ingo Molnar
2005-11-28 14:56 ` Lee Revell
2005-11-28 16:00 ` Ingo Molnar
2005-11-28 17:50 ` Lee Revell
2005-11-28 20:34 ` Lee Revell
2005-11-28 22:40 ` Lee Revell
2005-11-29 2:08 ` Lee Revell
2005-11-29 7:29 ` Ingo Molnar
2005-11-29 9:32 ` Ingo Molnar
2005-11-29 23:19 ` Lee Revell
2005-12-09 1:05 ` Lee Revell
2005-12-10 0:25 ` Lee Revell
2005-12-12 17:44 ` 2.6.15-rc5-rt1 will not compile (was Re: 2.6.14-rt15: cannot build with !PREEMPT_RT) Lee Revell
2005-12-12 21:49 ` Steven Rostedt
2005-12-12 22:14 ` Lee Revell [this message]
2005-12-12 22:22 ` Steven Rostedt
2005-12-12 22:31 ` Lee Revell
2005-12-12 22:34 ` Steven Rostedt
2005-12-13 3:28 ` Steven Rostedt
2005-12-13 8:08 ` Ingo Molnar
2005-12-16 20:53 ` Lee Revell
2005-12-12 22:39 ` K.R. Foley
2005-12-13 8:15 ` Ingo Molnar
2005-12-13 14:32 ` [PATCH -RT] fix i386 RWSEM_GENERIC_SPINLOCK (was: Re: 2.6.15-rc5-rt1 will not compile) Steven Rostedt
2005-12-13 15:03 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1134425688.17058.5.camel@mindpipe \
--to=rlrevell@joe-job.com \
--cc=dsingleton@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.