On Fri, Oct 21, 2005 at 03:05:59PM +0200, Bo?tjan Müller wrote: > I am trying to compile a 2.4.31 kernel (with some additional patches) > and have had no success in doing so today (i tried without patches - > vanilla kernel also). > $ export MAKEFLAGS="CC=gcc-2.95" > $ make-kpkg --revision 0 --bzimage --added_patches openswan > - --append-to-version -neonatus.net kernel-image > > [...] > make[2]: Entering directory > `/home/new_usr/src/linux-2.4.31-neonatus.net/arch/i386/kernel' > gcc-2.95 -D__KERNEL__ > - -I/home/new_usr/src/linux-2.4.31-neonatus.net/include -Wall > - -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common > - -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 > - -nostdinc -iwithprefix include -DKBUILD_BASENAME=process -c -o > process.o process.c > {standard input}: Assembler messages: > {standard input}:732: Error: suffix or operands invalid for `mov'
> Does anyone know why I get the above error? > What can I do to make it compile like it should? I successfully compiled the 2.4.31 kernel in Stable, so the kernel source should be alright. What the error message is saying is that the assembler source file that has been generated has errors in it. What might be happening is that you may be running out of disk space wherever the temp files are stored - would that be /tmp? You might try running df to see how your disk space is running - perhaps even while compiling the kernel. Did you try using a later version of gcc? The file Documentation/Changes still states that gcc 2.95 is the preferred compiler, but I've been using GCC 3.x for some time and all _appears_ to be fine. I believe I've seen where it's been stated that 3.x compilers are OK now.