* 2.6.32-rc5-git3 compile problems
@ 2009-10-27 20:50 Alex
2009-10-28 3:07 ` Xiaotian Feng
0 siblings, 1 reply; 4+ messages in thread
From: Alex @ 2009-10-27 20:50 UTC (permalink / raw)
To: lkml
Hi,
I receive the following error when using defconfig on 2.6.32-rc5-git3:
CC kernel/seccomp.o
CC kernel/rcutree.o
kernel/rcutree.c: In function `__rcu_init':
kernel/rcutree.h:296: sorry, unimplemented: inlining failed in call to
'rcu_bootup_announce': function body not available
kernel/rcutree.c:1702: sorry, unimplemented: called from here
make[1]: *** [kernel/rcutree.o] Error 1
make: *** [kernel] Error 2
Is this something I'm doing wrong? I'm actually trying to compile
2.6.31.5 with the default config, and it too fails, for another
reason. I'm having difficulty compiling 2.6.31 and 2.6.31.5 on x86
with gcc-3.4.4 and binutils-2.20.51.0.2. I'm also using glibc-2.3.6.
AS arch/x86/lib/thunk_32.o
CC arch/x86/lib/usercopy_32.o
AR arch/x86/lib/lib.a
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `con_init':
vt.c:(.init.text+0x3c5b): undefined reference to `.L1446'
make: *** [.tmp_vmlinux1] Error 1
I'd sure appreciate any pointers on how to troubleshoot this.
Thanks,
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.32-rc5-git3 compile problems
2009-10-27 20:50 2.6.32-rc5-git3 compile problems Alex
@ 2009-10-28 3:07 ` Xiaotian Feng
2009-10-28 6:37 ` Paul E. McKenney
2009-10-28 16:00 ` Alex
0 siblings, 2 replies; 4+ messages in thread
From: Xiaotian Feng @ 2009-10-28 3:07 UTC (permalink / raw)
To: Alex; +Cc: lkml, paulmck
Try this patch, thanks.
---
index b40ac57..04a4272 100644
--- a/kernel/rcutree.h
+++ b/kernel/rcutree.h
@@ -292,8 +292,24 @@ DECLARE_PER_CPU(struct rcu_data, rcu_preempt_data);
#else /* #ifdef RCU_TREE_NONCORE */
-/* Forward declarations for rcutree_plugin.h */
-static inline void rcu_bootup_announce(void);
+#ifdef CONFIG_TREE_PREEMPT_RCU
+/*
+ * Tell them what RCU they are running.
+ */
+static inline void rcu_bootup_announce(void)
+{
+ printk(KERN_INFO
+ "Experimental preemptable hierarchical RCU implementation.\n");
+}
+#else
+/*
+ * Tell them what RCU they are running.
+ */
+static inline void rcu_bootup_announce(void)
+{
+ printk(KERN_INFO "Hierarchical RCU implementation.\n");
+}
+#endif
long rcu_batches_completed(void);
static void rcu_preempt_note_context_switch(int cpu);
static int rcu_preempted_readers(struct rcu_node *rnp);
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
index c0cb783..1b96445 100644
--- a/kernel/rcutree_plugin.h
+++ b/kernel/rcutree_plugin.h
@@ -31,15 +31,6 @@ struct rcu_state rcu_preempt_state =
RCU_STATE_INITIALIZER(rcu_preempt_state);
DEFINE_PER_CPU(struct rcu_data, rcu_preempt_data);
/*
- * Tell them what RCU they are running.
- */
-static inline void rcu_bootup_announce(void)
-{
- printk(KERN_INFO
- "Experimental preemptable hierarchical RCU implementation.\n");
-}
-
-/*
* Return the number of RCU-preempt batches processed thus far
* for debug and statistics.
*/
@@ -462,14 +453,6 @@ void exit_rcu(void)
#else /* #ifdef CONFIG_TREE_PREEMPT_RCU */
/*
- * Tell them what RCU they are running.
- */
-static inline void rcu_bootup_announce(void)
-{
- printk(KERN_INFO "Hierarchical RCU implementation.\n");
-}
-
-/*
* Return the number of RCU batches processed thus far for debug & stats.
*/
long rcu_batches_completed(void)
On Wed, Oct 28, 2009 at 4:50 AM, Alex <mysqlstudent@gmail.com> wrote:
> Hi,
>
> I receive the following error when using defconfig on 2.6.32-rc5-git3:
>
> CC kernel/seccomp.o
> CC kernel/rcutree.o
> kernel/rcutree.c: In function `__rcu_init':
> kernel/rcutree.h:296: sorry, unimplemented: inlining failed in call to
> 'rcu_bootup_announce': function body not available
> kernel/rcutree.c:1702: sorry, unimplemented: called from here
> make[1]: *** [kernel/rcutree.o] Error 1
> make: *** [kernel] Error 2
>
> Is this something I'm doing wrong? I'm actually trying to compile
> 2.6.31.5 with the default config, and it too fails, for another
> reason. I'm having difficulty compiling 2.6.31 and 2.6.31.5 on x86
> with gcc-3.4.4 and binutils-2.20.51.0.2. I'm also using glibc-2.3.6.
>
> AS arch/x86/lib/thunk_32.o
> CC arch/x86/lib/usercopy_32.o
> AR arch/x86/lib/lib.a
> LD vmlinux.o
> MODPOST vmlinux.o
> GEN .version
> CHK include/linux/compile.h
> UPD include/linux/compile.h
> CC init/version.o
> LD init/built-in.o
> LD .tmp_vmlinux1
> drivers/built-in.o: In function `con_init':
> vt.c:(.init.text+0x3c5b): undefined reference to `.L1446'
> make: *** [.tmp_vmlinux1] Error 1
>
> I'd sure appreciate any pointers on how to troubleshoot this.
>
> Thanks,
> Alex
> --
> 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 related [flat|nested] 4+ messages in thread
* Re: 2.6.32-rc5-git3 compile problems
2009-10-28 3:07 ` Xiaotian Feng
@ 2009-10-28 6:37 ` Paul E. McKenney
2009-10-28 16:00 ` Alex
1 sibling, 0 replies; 4+ messages in thread
From: Paul E. McKenney @ 2009-10-28 6:37 UTC (permalink / raw)
To: Xiaotian Feng; +Cc: Alex, lkml
On Wed, Oct 28, 2009 at 11:07:13AM +0800, Xiaotian Feng wrote:
> Try this patch, thanks.
> ---
> index b40ac57..04a4272 100644
> --- a/kernel/rcutree.h
> +++ b/kernel/rcutree.h
> @@ -292,8 +292,24 @@ DECLARE_PER_CPU(struct rcu_data, rcu_preempt_data);
>
> #else /* #ifdef RCU_TREE_NONCORE */
>
> -/* Forward declarations for rcutree_plugin.h */
> -static inline void rcu_bootup_announce(void);
> +#ifdef CONFIG_TREE_PREEMPT_RCU
> +/*
> + * Tell them what RCU they are running.
> + */
> +static inline void rcu_bootup_announce(void)
> +{
> + printk(KERN_INFO
> + "Experimental preemptable hierarchical RCU implementation.\n");
> +}
> +#else
> +/*
> + * Tell them what RCU they are running.
> + */
> +static inline void rcu_bootup_announce(void)
> +{
> + printk(KERN_INFO "Hierarchical RCU implementation.\n");
> +}
> +#endif
> long rcu_batches_completed(void);
> static void rcu_preempt_note_context_switch(int cpu);
> static int rcu_preempted_readers(struct rcu_node *rnp);
> diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
> index c0cb783..1b96445 100644
> --- a/kernel/rcutree_plugin.h
> +++ b/kernel/rcutree_plugin.h
> @@ -31,15 +31,6 @@ struct rcu_state rcu_preempt_state =
> RCU_STATE_INITIALIZER(rcu_preempt_state);
> DEFINE_PER_CPU(struct rcu_data, rcu_preempt_data);
>
> /*
> - * Tell them what RCU they are running.
> - */
> -static inline void rcu_bootup_announce(void)
Given that this is anything but performance-critical, could we instead
remove the "inline" above and on the forward declaration, possibly
also marking as __init?
Or am I misunderstanding the problem?
Thanx, Paul
> -{
> - printk(KERN_INFO
> - "Experimental preemptable hierarchical RCU implementation.\n");
> -}
> -
> -/*
> * Return the number of RCU-preempt batches processed thus far
> * for debug and statistics.
> */
> @@ -462,14 +453,6 @@ void exit_rcu(void)
> #else /* #ifdef CONFIG_TREE_PREEMPT_RCU */
>
> /*
> - * Tell them what RCU they are running.
> - */
> -static inline void rcu_bootup_announce(void)
> -{
> - printk(KERN_INFO "Hierarchical RCU implementation.\n");
> -}
> -
> -/*
> * Return the number of RCU batches processed thus far for debug & stats.
> */
> long rcu_batches_completed(void)
>
> On Wed, Oct 28, 2009 at 4:50 AM, Alex <mysqlstudent@gmail.com> wrote:
> > Hi,
> >
> > I receive the following error when using defconfig on 2.6.32-rc5-git3:
> >
> > CC kernel/seccomp.o
> > CC kernel/rcutree.o
> > kernel/rcutree.c: In function `__rcu_init':
> > kernel/rcutree.h:296: sorry, unimplemented: inlining failed in call to
> > 'rcu_bootup_announce': function body not available
> > kernel/rcutree.c:1702: sorry, unimplemented: called from here
> > make[1]: *** [kernel/rcutree.o] Error 1
> > make: *** [kernel] Error 2
> >
> > Is this something I'm doing wrong? I'm actually trying to compile
> > 2.6.31.5 with the default config, and it too fails, for another
> > reason. I'm having difficulty compiling 2.6.31 and 2.6.31.5 on x86
> > with gcc-3.4.4 and binutils-2.20.51.0.2. I'm also using glibc-2.3.6.
> >
> > AS arch/x86/lib/thunk_32.o
> > CC arch/x86/lib/usercopy_32.o
> > AR arch/x86/lib/lib.a
> > LD vmlinux.o
> > MODPOST vmlinux.o
> > GEN .version
> > CHK include/linux/compile.h
> > UPD include/linux/compile.h
> > CC init/version.o
> > LD init/built-in.o
> > LD .tmp_vmlinux1
> > drivers/built-in.o: In function `con_init':
> > vt.c:(.init.text+0x3c5b): undefined reference to `.L1446'
> > make: *** [.tmp_vmlinux1] Error 1
> >
> > I'd sure appreciate any pointers on how to troubleshoot this.
> >
> > Thanks,
> > Alex
> > --
> > 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] 4+ messages in thread
* Re: 2.6.32-rc5-git3 compile problems
2009-10-28 3:07 ` Xiaotian Feng
2009-10-28 6:37 ` Paul E. McKenney
@ 2009-10-28 16:00 ` Alex
1 sibling, 0 replies; 4+ messages in thread
From: Alex @ 2009-10-28 16:00 UTC (permalink / raw)
To: Xiaotian Feng; +Cc: lkml, paulmck
Hi,
> Try this patch, thanks.
I believe your patch to rcutree_plugin.h and rcutree.h worked, but I'm
now still having difficulty with con_init():
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `con_init':
vt.c:(.init.text+0x3a6b): undefined reference to `.L1626'
make: *** [.tmp_vmlinux1] Error 1
Is this also a bug, or am I doing something wrong? Is there something
I can do to produce more debugging info, or troubleshoot it further?
This is 2.6.32-rc5-git3, gcc-3.4.4, glibc-2.3.6, and binutils-2.20.51.0.2.
Thanks,
Alex
> ---
> index b40ac57..04a4272 100644
> --- a/kernel/rcutree.h
> +++ b/kernel/rcutree.h
> @@ -292,8 +292,24 @@ DECLARE_PER_CPU(struct rcu_data, rcu_preempt_data);
>
> #else /* #ifdef RCU_TREE_NONCORE */
>
> -/* Forward declarations for rcutree_plugin.h */
> -static inline void rcu_bootup_announce(void);
> +#ifdef CONFIG_TREE_PREEMPT_RCU
> +/*
> + * Tell them what RCU they are running.
> + */
> +static inline void rcu_bootup_announce(void)
> +{
> + printk(KERN_INFO
> + "Experimental preemptable hierarchical RCU implementation.\n");
> +}
> +#else
> +/*
> + * Tell them what RCU they are running.
> + */
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-28 16:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27 20:50 2.6.32-rc5-git3 compile problems Alex
2009-10-28 3:07 ` Xiaotian Feng
2009-10-28 6:37 ` Paul E. McKenney
2009-10-28 16:00 ` Alex
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox