2002-02-14 08:28:30

by Julian Gomez

[permalink] [raw]
Subject: [BUG?] -- Kernel compilation on v2.5.4 source breaks


The error is :

-- start here --

make[1]: Entering directory `/network-fs/linux-2.5.4/arch/i386/kernel'
gcc -D__KERNEL__ -I/network-fs/linux-2.5.4/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -DKBUILD_BASENAME=process -c -o process.o process.c
process.c:60: parse error before `unsigned'
make[1]: *** [process.o] Error 1
make[1]: Leaving directory `/network-fs/linux-2.5.4/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

-- end here --

on a pristine v2.5.4 with the patch for processor.h from David Howell's
applied. Configuration file is attached to this message. Same
configuration file can compile without a problem on a pristine v2.4.17
kernel (incremental patches).

A quick grep through my remaining 700++ emails shows that only a couple of
patches modify process.c and one of them involves APM which I do not use
therefore I am sending this out.

If any further information is required - please ask. (gcc v2.96 in case it
matters)


Attachments:
2.5.4-kernelconfig (19.33 kB)
config-file

2002-02-14 22:02:40

by Skip Ford

[permalink] [raw]
Subject: Re: [BUG?] -- Kernel compilation on v2.5.4 source breaks

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Julian Gomez wrote:
>
> The error is :
>
> -- start here --
>
> make[1]: Entering directory `/network-fs/linux-2.5.4/arch/i386/kernel'
> gcc -D__KERNEL__ -I/network-fs/linux-2.5.4/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=i686 -DKBUILD_BASENAME=process -c -o process.o process.c
> process.c:60: parse error before `unsigned'
> make[1]: *** [process.o] Error 1
> make[1]: Leaving directory `/network-fs/linux-2.5.4/arch/i386/kernel'
> make: *** [_dir_arch/i386/kernel] Error 2
>
> -- end here --
>
> on a pristine v2.5.4 with the patch for processor.h from David Howell's
> applied. Configuration file is attached to this message. Same

Well, you're saying 2.5.4 but that error is what you get if you apply
2.5.5-pre1 to a tree that has the processor.h patch already applied.

You need to change the following line in processor.h:
'#define thread_saved_pc(TSK) (((unsigned long*)(TSK)->thread.esp)[3])'

to:

'extern unsigned long thread_saved_pc(struct task_struct *tsk);'

- --
Skip ID: 0x7EDDDB0A
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAjxsM18ACgkQBMKxVH7d2wptawCfdWCv2uZxRfHibIpx3uryRQWj
6DcAnRqqdkzlDFL5ZAt8DiYsBE/62sxX
=fZfn
-----END PGP SIGNATURE-----