Sorry, I forgot to post the error. It kinda looked like this:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-16mdk/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
-nostdinc -I /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.1/include
-DKBUILD_BASENAME=setup  -c -o setup.o setup.c
setup.c: In function `setup_arch':
setup.c:1058: initializer element is not constant
setup.c:1058: (near initialization for `__setup_noathlon_setup.setup_func')

I had to cut and paste that from another message from the mailing list. 
However, that is the same error message that I got.

It occurs when compiling the kernel ("make bzImage") not when compiling the 
modules. Moving that block of code out of the 'setup_arch' function fixes 
the problem. I moved it outside and the kernel compiled correctly.

                                Tim

>From: Borsenkow Andrej <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Cooker list <[EMAIL PROTECTED]>
>Subject: Re: [Cooker] kernel-2.4.18.16mdk and gcc 3.1 w/ athlon 
>architecture
>Date: 25 May 2002 12:23:04 +0400
>
>� ���, 25.05.2002, � 01:32, Tim Lee �������:
> > I might be a little rusty with my C programming, but I seem to remember 
>that
> > you can't have a function within a function as in the file
> > /usr/src/linux-2.4.18-16mdk/arch/i386/kernel/setup.c at line 1049, the
> > "#ifdef CONFIG_X86_USE_3DNOW" block. I'm assuming that this problem only
> > occurs when the processor type is set to an AMD processor (i.e.
> > Athlon/K7,etc.). I think moving that block out of the setup_arch 
>function
> > should fix the problem.
> >
>
>What problem? You cannot compile kernel or what? What errors you get
>then?
>
>Irrespectively, language that GCC implements is not C. It is GNU C.
>
>-andrej
>
> > (using kernel-source-2.4.18-16mdk.i586.rpm, compiling with gcc 3.1)
> >
> > Thank you,
> >     Tim
> >
> > _________________________________________________________________
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
>
>

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


Reply via email to