2001-11-14 16:25:03

by Chris Meadors

[permalink] [raw]
Subject: 2.4.15-pre4 fails to build in setup.c

I don't think I've seen this yet.

Build failed with this error:

gcc -D__KERNEL__ -I/usr/src/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
make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

My "grep ^CONFIG .config" is attatched.

-Chris
--
Two penguins were walking on an iceberg. The first penguin said to the
second, "you look like you are wearing a tuxedo." The second penguin
said, "I might be..." --David Lynch, Twin Peaks


Attachments:
config (2.50 kB)

2001-11-14 17:36:36

by Chris Meadors

[permalink] [raw]
Subject: Re: 2.4.15-pre4 fails to build in setup.c

On Wed, 14 Nov 2001, Chris Meadors wrote:

> I don't think I've seen this yet.
>
> Build failed with this error:
>
> gcc -D__KERNEL__ -I/usr/src/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
> make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
> make: *** [_dir_arch/i386/kernel] Error 2
>
> My "grep ^CONFIG .config" is attatched.
>
> -Chris
>

I'm replying to my own post because I've received serveral off list
replies. None of them quite correct. It seems there are two files that
need to be patched.

I'm attaching the patch that finally allowed my kernel to compile. It is
mostly the one that Horst von Brand sent me (which he said Linus
prescribed), but with a correction to the first hunk.

-Chris
--
Two penguins were walking on an iceberg. The first penguin said to the
second, "you look like you are wearing a tuxedo." The second penguin
said, "I might be..." --David Lynch, Twin Peaks


Attachments:
setup.c.patch (773.00 B)

2001-11-14 17:52:58

by John Weber

[permalink] [raw]
Subject: Re: 2.4.15-pre4 fails to build in setup.c

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

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



Chris Meadors wrote:
>
> I don't think I've seen this yet.
>
> Build failed with this error:
>
> gcc -D__KERNEL__ -I/usr/src/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
> make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
> make: *** [_dir_arch/i386/kernel] Error 2
>
> My "grep ^CONFIG .config" is attatched.
>
> -Chris
> --
> Two penguins were walking on an iceberg. The first penguin said to the
> second, "you look like you are wearing a tuxedo." The second penguin
> said, "I might be..." --David Lynch, Twin Peaks
>
> ------------------------------------------------------------------------
> Name: config
> config Type: Plain Text (TEXT/PLAIN)
> Encoding: BASE64