2002-08-14 17:29:44

by Jean-Luc Coulon (f5ibh)

[permalink] [raw]
Subject: 2.4.20-pre2-ac1 does not compile

Hi,

I've the following message :

gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.20-pre2-ac1/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
-nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include
-DKBUILD_BASENAME=swap_state -c -o swap_state.o swap_state.c
swap_state.c:155: macro `PAGE_BUG' used without args
make[3]: *** [swap_state.o] Erreur 1
make[3]: Leaving directory `/usr/src/kernel-source-2.4.20-pre2-ac1/mm'
make[2]: *** [first_rule] Erreur 2
make[2]: Leaving directory `/usr/src/kernel-source-2.4.20-pre2-ac1/mm'
make[1]: *** [_dir_mm] Erreur 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.20-pre2-ac1'


-------
Regards
Jean-Luc


2002-08-14 17:36:48

by Christoph Hellwig

[permalink] [raw]
Subject: Re: 2.4.20-pre2-ac1 does not compile

On Wed, Aug 14, 2002 at 07:33:05PM +0200, Jean-Luc Coulon wrote:
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
> -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include
> -DKBUILD_BASENAME=swap_state -c -o swap_state.o swap_state.c
> swap_state.c:155: macro `PAGE_BUG' used without args

make that a plain BUG() - no idea what drove alan into that..

2002-08-14 19:50:34

by Alexander Hoogerhuis

[permalink] [raw]
Subject: Re: 2.4.20-pre2-ac1 does not compile

Christoph Hellwig <[email protected]> writes:

> On Wed, Aug 14, 2002 at 07:33:05PM +0200, Jean-Luc Coulon wrote:
> > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
> > -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include
> > -DKBUILD_BASENAME=swap_state -c -o swap_state.o swap_state.c
> > swap_state.c:155: macro `PAGE_BUG' used without args
>
> make that a plain BUG() - no idea what drove alan into that..
>

When nfsd is compiled as a module it fails on depmod -a, as
exp_readunlock can't be found.

mvh,
A
--
Alexander Hoogerhuis | [email protected]
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy

2002-08-14 19:58:51

by David Weinehall

[permalink] [raw]
Subject: Re: 2.4.20-pre2-ac1 does not compile

On Wed, Aug 14, 2002 at 06:40:40PM +0100, Christoph Hellwig wrote:
> On Wed, Aug 14, 2002 at 07:33:05PM +0200, Jean-Luc Coulon wrote:
> > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
> > -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include
> > -DKBUILD_BASENAME=swap_state -c -o swap_state.o swap_state.c
> > swap_state.c:155: macro `PAGE_BUG' used without args
>
> make that a plain BUG() - no idea what drove alan into that..

Shouldn't it be PAGE_BUG(page)?!


Regards: David
--
/> David Weinehall <[email protected]> /> Northern lights wander <\
// Maintainer of the v2.0 kernel // Dance across the winter sky //
\> http://www.acc.umu.se/~tao/ </ Full colour fire </

2002-08-14 20:00:19

by Christoph Hellwig

[permalink] [raw]
Subject: Re: 2.4.20-pre2-ac1 does not compile

On Wed, Aug 14, 2002 at 10:02:40PM +0200, David Weinehall wrote:
> On Wed, Aug 14, 2002 at 06:40:40PM +0100, Christoph Hellwig wrote:
> > On Wed, Aug 14, 2002 at 07:33:05PM +0200, Jean-Luc Coulon wrote:
> > > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> > > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
> > > -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include
> > > -DKBUILD_BASENAME=swap_state -c -o swap_state.o swap_state.c
> > > swap_state.c:155: macro `PAGE_BUG' used without args
> >
> > make that a plain BUG() - no idea what drove alan into that..
>
> Shouldn't it be PAGE_BUG(page)?!


Have you ever looked at the defintion of PAGE_BUG()? :)

2002-08-14 20:08:20

by David Weinehall

[permalink] [raw]
Subject: Re: 2.4.20-pre2-ac1 does not compile

On Wed, Aug 14, 2002 at 09:04:10PM +0100, Christoph Hellwig wrote:
> On Wed, Aug 14, 2002 at 10:02:40PM +0200, David Weinehall wrote:
> > On Wed, Aug 14, 2002 at 06:40:40PM +0100, Christoph Hellwig wrote:
> > > On Wed, Aug 14, 2002 at 07:33:05PM +0200, Jean-Luc Coulon wrote:
> > > > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> > > > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
> > > > -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include
> > > > -DKBUILD_BASENAME=swap_state -c -o swap_state.o swap_state.c
> > > > swap_state.c:155: macro `PAGE_BUG' used without args
> > >
> > > make that a plain BUG() - no idea what drove alan into that..
> >
> > Shouldn't it be PAGE_BUG(page)?!
>
>
> Have you ever looked at the defintion of PAGE_BUG()? :)

Yes I have (it simply ignores its argument and calls BUG()), but
I find it likely that there is some thought behind the existance of
PAGE_BUG. I may be wrong of course; I just saw it as reasonable that
it is planned to become somewhat more useful.


Regards: David
--
/> David Weinehall <[email protected]> /> Northern lights wander <\
// Maintainer of the v2.0 kernel // Dance across the winter sky //
\> http://www.acc.umu.se/~tao/ </ Full colour fire </