2001-11-13 22:18:16

by Adam Schrotenboer

[permalink] [raw]
Subject: Kernel 2.4.15-pre4 compile error (gcc 2.95.3 and 3.0[12])

Please forgive me if this is already in the archives, my usual archive is
down (http://www.lib.uaa.alaska.edu) and I find MARC a bit hard to follow

When compiling 2.4.15-pre4 I get the following error

gcc -D__KERNEL__ -I/mnt/hda3/kernel/2.4.15-pre4/linux/include -Wall-
Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -malign-functions=4 -c -o setup.o setup.c
setup.c: In function `c_start':
setup.c:2791: subscripted value is neither array nor pointer
setup.c:2792: warning: control reaches end of non-void function
make[1]: *** [setup.o] Error 1


Ideas?

TIA
tabris


2001-11-13 23:43:23

by Chris Wright

[permalink] [raw]
Subject: Re: Kernel 2.4.15-pre4 compile error (gcc 2.95.3 and 3.0[12])

* Adam Schrotenboer ([email protected]) wrote:
> Please forgive me if this is already in the archives, my usual archive is
> down (http://www.lib.uaa.alaska.edu) and I find MARC a bit hard to follow
>
> When compiling 2.4.15-pre4 I get the following error
>
> gcc -D__KERNEL__ -I/mnt/hda3/kernel/2.4.15-pre4/linux/include -Wall-
> Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=i686 -malign-functions=4 -c -o setup.o setup.c
> setup.c: In function `c_start':
> setup.c:2791: subscripted value is neither array nor pointer
> setup.c:2792: warning: control reaches end of non-void function
> make[1]: *** [setup.o] Error 1

this is in the archives. you'll find a patch here:

http://marc.theaimsgroup.com/?l=linux-kernel&m=100559812101821&w=2

cheers,
-chris