2007-08-02 19:57:20

by Jesper Juhl

[permalink] [raw]
Subject: error: implicit declaration of function 'rcu_dereference' - current -git fails to build

I get this build error with the current mainline git tree.
Let me know if further details are needed...

...
In file included from include/linux/sched.h:75,
from include/linux/smp_lock.h:5,
from include/linux/hardirq.h:5,
from include/linux/slub_def.h:13,
from include/linux/slab.h:116,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:41,
from include/linux/key.h:21,
from include/linux/syscalls.h:67,
from init/noinitramfs.c:23:
include/linux/pid.h:51: error: field 'rcu' has incomplete type
In file included from include/linux/smp_lock.h:5,
from include/linux/hardirq.h:5,
from include/linux/slub_def.h:13,
from include/linux/slab.h:116,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:41,
from include/linux/key.h:21,
from include/linux/syscalls.h:67,
from init/noinitramfs.c:23:
include/linux/sched.h:1187: error: field 'rcu' has incomplete type
include/linux/sched.h: In function 'next_thread':
include/linux/sched.h:1650: error: implicit declaration of function
'rcu_dereference'
include/linux/sched.h:1650: warning: initialization makes pointer from
integer without a cast
make[1]: *** [init/noinitramfs.o] Error 1
make: *** [init] Error 2


--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html


2007-08-02 20:10:17

by Jesper Juhl

[permalink] [raw]
Subject: Re: error: implicit declaration of function 'rcu_dereference' - current -git fails to build

On 02/08/07, Jesper Juhl <[email protected]> wrote:
> I get this build error with the current mainline git tree.

When I say "current mainline git tree" I mean that HEAD is at
370504cf7c68b953de55c41d5e0be97d30f3cf00

> Let me know if further details are needed...
>
> ...
> In file included from include/linux/sched.h:75,
> from include/linux/smp_lock.h:5,
> from include/linux/hardirq.h:5,
> from include/linux/slub_def.h:13,
> from include/linux/slab.h:116,
> from include/linux/percpu.h:5,
> from include/linux/rcupdate.h:41,
> from include/linux/key.h:21,
> from include/linux/syscalls.h:67,
> from init/noinitramfs.c:23:
> include/linux/pid.h:51: error: field 'rcu' has incomplete type
> In file included from include/linux/smp_lock.h:5,
> from include/linux/hardirq.h:5,
> from include/linux/slub_def.h:13,
> from include/linux/slab.h:116,
> from include/linux/percpu.h:5,
> from include/linux/rcupdate.h:41,
> from include/linux/key.h:21,
> from include/linux/syscalls.h:67,
> from init/noinitramfs.c:23:
> include/linux/sched.h:1187: error: field 'rcu' has incomplete type
> include/linux/sched.h: In function 'next_thread':
> include/linux/sched.h:1650: error: implicit declaration of function
> 'rcu_dereference'
> include/linux/sched.h:1650: warning: initialization makes pointer from
> integer without a cast
> make[1]: *** [init/noinitramfs.o] Error 1
> make: *** [init] Error 2
>
>
> --
> Jesper Juhl <[email protected]>
> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
> Plain text mails only, please http://www.expita.com/nomime.html
>


--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html

2007-08-02 20:14:17

by Adrian Bunk

[permalink] [raw]
Subject: Re: error: implicit declaration of function 'rcu_dereference' - current -git fails to build

On Thu, Aug 02, 2007 at 09:57:07PM +0200, Jesper Juhl wrote:
> I get this build error with the current mainline git tree.
> Let me know if further details are needed...
>...

-ENODOTCONFIG

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

2007-08-02 20:16:41

by Jesper Juhl

[permalink] [raw]
Subject: Re: error: implicit declaration of function 'rcu_dereference' - current -git fails to build

On 02/08/07, Adrian Bunk <[email protected]> wrote:
> On Thu, Aug 02, 2007 at 09:57:07PM +0200, Jesper Juhl wrote:
> > I get this build error with the current mainline git tree.
> > Let me know if further details are needed...
> >...
>
> -ENODOTCONFIG
>

Attached.

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html


Attachments:
(No filename) (441.00 B)
config (34.61 kB)
Download all attachments

2007-08-02 20:49:21

by Jesper Juhl

[permalink] [raw]
Subject: Re: error: implicit declaration of function 'rcu_dereference' - current -git fails to build

On 02/08/07, Jesper Juhl <[email protected]> wrote:
> On 02/08/07, Adrian Bunk <[email protected]> wrote:
> > On Thu, Aug 02, 2007 at 09:57:07PM +0200, Jesper Juhl wrote:
> > > I get this build error with the current mainline git tree.
> > > Let me know if further details are needed...
> > >...
> >
> > -ENODOTCONFIG
> >
>
> Attached.
>

Forget about this.

I thought I had a clean tree, but it turns out that I did not. I had
some local (buggy) changes in there that I had overlooked. I did
git reset --hard master
git clean -d
and now everything builds fine with that config.

Sorry about the noise.

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html