LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel 2.6.3-rc2 compile error/Failure- Any Ideas? (https://www.linuxquestions.org/questions/linux-general-1/kernel-2-6-3-rc2-compile-error-failure-any-ideas-144111/)

wrc1944 02-09-2004 01:45 PM

Kernel 2.6.3-rc2 compile error/Failure- Any Ideas?
 
Just tried to compile 2.6.3-rc1, using same method, same hardware, same cflags, same config I've used on countless 2.5 and 2.6 kernel versions with complete success, and it errors out on make bzImage. Then tried a make mrproper, and redo the config, and same result. Curiously, I tried a third time with a completely fresh tree in case of corruption, and while similar, the errors were on different items.

Has anyone else experienced this type error on 2.6.3-rc1, know what's going on, or have a solution? All I did was patch 2.6.2 with the 2.6.3-rc1 patch, and use my standard kernel compile routine and config file for this box.
I tried looking at net/core/neighbour.o, and the other files mentioned, but couldn't figure out what the invalid references to characters meant. Relevant output below.

wrc1944
--------------------------------------------------------------------------------
First compile attempt:

(Many output lines from make bzImage before the following)

gcc -Wp,-MD,net/core/.dst.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -march=athlon-xp -falign-functions=16 -falign-loops=16 -falign-jumps=16 -falign-labels=1 -ftracer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement -DKBUILD_BASENAME=dst -DKBUILD_MODNAME=dst -c -o net/core/dst.o net/core/dst.c
gcc -Wp,-MD,net/core/.neighbour.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -march=athlon-xp -falign-functions=16 -falign-loops=16 -falign-jumps=16 -falign-labels=1 -ftracer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement -DKBUILD_BASENAME=neighbour -DKBUILD_MODNAME=neighbour -c -o net/core/neighbour.o net/core/neighbour.c
{standard input}: Assembler messages:
{standard input}:14: Error: invalid character ';' in operand 1
{standard input}:46: Error: invalid character ';' in operand 2
{standard input}:51: Error: suffix or operands invalid for `sub'
{standard input}:51: Warning: rest of line ignored; first ignored character is `,'
{standard input}:52: Error: suffix or operands invalid for `mov'
{standard input}:52: Warning: rest of line ignored; first ignored character is `('
{standard input}:59: Error: suffix or operands invalid for `add'
{standard input}:59: Warning: rest of line ignored; first ignored character is `,'
{standard input}:60: Error: suffix or operands invalid for `add'
{standard input}:60: Warning: rest of line ignored; first ignored character is `,'
{standard input}:63: Error: suffix or operands invalid for `mov'
{standard input}:63: Warning: rest of line ignored; first ignored character is `('
{standard input}:68: Error: invalid character ';' in operand 2
{standard input}:85: Warning: rest of line ignored; first ignored character is `2'
{standard input}:97: Error: suffix or operands invalid for `mov'
{standard input}:97: Warning: rest of line ignored; first ignored character is `('
{standard input}:100: Error: suffix or operands invalid for `add'
{standard input}:100: Warning: rest of line ignored; first ignored character is `,'
{standard input}:108: Warning: rest of line ignored; first ignored character is `5'
{standard input}:134: Error: invalid character ';' in operand 1
{standard input}:147: Error: suffix or operands invalid for `sub'
{standard input}:147: Warning: rest of line ignored; first ignored character is `('
{standard input}:176: Error: invalid character ';' in operand 1
{standard input}:195: Error: invalid character ';' in operand 2
{standard input}:203: Error: invalid character ';' in mnemonic
{standard input}:220: Error: invalid character ';' in operand 1
{standard input}:237: Error: invalid character ';' in operand 1
{standard input}:262: Error: invalid character ';' in operand 2
{standard input}:269: Error: suffix or operands invalid for `mov'

Then about 300 more lines like the above, and errors out with:

standard input}:4849: Warning: rest of line ignored; first ignored character is `,'
{standard input}:4866: Error: suffix or operands invalid for `add'
{standard input}:4866: Warning: rest of line ignored; first ignored character is `,'
make[2]: *** [net/core/neighbour.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2
wrc@mymachine linux-2.6.2 $
------------------------------------------------------------------------------------

Third try, similar as first, but not as long, and errors out with:

{standard input}:2221: Warning: rest of line ignored; first ignored character is `0'
{standard input}:2228: Warning: rest of line ignored; first ignored character is `0'
{standard input}:2233: Warning: rest of line ignored; first ignored character is `0'
{standard input}:2238: Warning: rest of line ignored; first ignored character is `0'
make[2]: *** [net/sunrpc/clnt.o] Error 1
make[1]: *** [net/sunrpc] Error 2
make: *** [net] Error 2
wrc@mymachine linux-2.6.2 $
-------------------------------------------------------------
Then, a fourth try, on a completely new fresh download of the kernel, and the patch. Same results, but again, this time with a different error out.

gcc -Wp,-MD,drivers/char/.misc.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -march=athlon-xp -falign-functions=16 -falign-loops=16 -falign-jumps=16 -falign-labels=1 -ftracer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement -DKBUILD_BASENAME=misc -DKBUILD_MODNAME=misc -c -o drivers/char/misc.o drivers/char/misc.c
{standard input}: Assembler messages:
{standard input}:52: Warning: rest of line ignored; first ignored character is `1'
{standard input}:53: Warning: rest of line ignored; first ignored character is `3'
{standard input}:55: Warning: rest of line ignored; first ignored character is `2'
{standard input}:55: Warning: rest of line ignored; first ignored character is `1'
{standard input}:56: Warning: rest of line ignored; first ignored character is `4'
{standard input}:56: Warning: rest of line ignored; first ignored character is `3'
{standard input}:91: Warning: rest of line ignored; first ignored character is `1'
{standard input}:92: Warning: rest of line ignored; first ignored character is `3'
{standard input}:94: Warning: rest of line ignored; first ignored character is `2'
{standard input}:94: Warning: rest of line ignored; first ignored character is `1'
{standard input}:95: Warning: rest of line ignored; first ignored character is `4'
{standard input}:95: Warning: rest of line ignored; first ignored character is `3'
{standard input}:159: Error: suffix or operands invalid for `sub'
{standard input}:159: Warning: rest of line ignored; first ignored character is `,'
{standard input}:172: Error: suffix or operands invalid for `add'
{standard input}:172: Warning: rest of line ignored; first ignored character is `,'
{standard input}:221: Error: suffix or operands invalid for `sub'
{standard input}:221: Warning: rest of line ignored; first ignored character is `,'
{standard input}:222: Error: suffix or operands invalid for `mov'
{standard input}:222: Warning: rest of line ignored; first ignored character is `('
{standard input}:250: Warning: rest of line ignored; first ignored character is `1'
{standard input}:251: Warning: rest of line ignored; first ignored character is `3'
{standard input}:253: Warning: rest of line ignored; first ignored character is `2'
{standard input}:253: Warning: rest of line ignored; first ignored character is `1'
{standard input}:254: Warning: rest of line ignored; first ignored character is `4'
{standard input}:254: Warning: rest of line ignored; first ignored character is `3'
{standard input}:266: Error: invalid character ';' in operand 2
{standard input}:282: Warning: rest of line ignored; first ignored character is `1'
{standard input}:283: Warning: rest of line ignored; first ignored character is `3'
{standard input}:285: Warning: rest of line ignored; first ignored character is `2'
{standard input}:285: Warning: rest of line ignored; first ignored character is `1'
{standard input}:286: Warning: rest of line ignored; first ignored character is `4'
{standard input}:286: Warning: rest of line ignored; first ignored character is `3'
{standard input}:302: Error: suffix or operands invalid for `mov'
{standard input}:302: Warning: rest of line ignored; first ignored character is `('
{standard input}:303: Warning: rest of line ignored; first ignored character is `('
{standard input}:315: Error: invalid character ';' in operand 2
{standard input}:346: Error: suffix or operands invalid for `add'
{standard input}:346: Warning: rest of line ignored; first ignored character is `,'
{standard input}:356: Error: suffix or operands invalid for `mov'
{standard input}:356: Warning: rest of line ignored; first ignored character is `4'
{standard input}:361: Error: suffix or operands invalid for `mov'
{standard input}:361: Warning: rest of line ignored; first ignored character is `('
{standard input}:369: Error: suffix or operands invalid for `mov'
{standard input}:369: Warning: rest of line ignored; first ignored character is `('
{standard input}:377: Error: invalid character ';' in operand 2
{standard input}:399: Error: invalid character ';' in operand 2
{standard input}:410: Error: invalid character ';' in operand 2
{standard input}:423: Warning: rest of line ignored; first ignored character is `('
{standard input}:438: Error: suffix or operands invalid for `mov'
{standard input}:438: Warning: rest of line ignored; first ignored character is `4'
{standard input}:488: Warning: rest of line ignored; first ignored character is `1'
{standard input}:489: Warning: rest of line ignored; first ignored character is `3'
{standard input}:491: Warning: rest of line ignored; first ignored character is `2'
{standard input}:491: Warning: rest of line ignored; first ignored character is `1'
{standard input}:492: Warning: rest of line ignored; first ignored character is `4'
{standard input}:492: Warning: rest of line ignored; first ignored character is `3'
{standard input}:501: Warning: rest of line ignored; first ignored character is `5'
{standard input}:504: Error: invalid character ';' in operand 2
{standard input}:520: Warning: rest of line ignored; first ignored character is `1'
{standard input}:521: Warning: rest of line ignored; first ignored character is `3'
{standard input}:523: Warning: rest of line ignored; first ignored character is `2'
{standard input}:523: Warning: rest of line ignored; first ignored character is `1'
{standard input}:524: Warning: rest of line ignored; first ignored character is `4'
{standard input}:524: Warning: rest of line ignored; first ignored character is `3'
{standard input}:541: Warning: rest of line ignored; first ignored character is `9'
{standard input}:559: Warning: rest of line ignored; first ignored character is `9'
{standard input}:564: Warning: rest of line ignored; first ignored character is `5'
{standard input}:634: Error: suffix or operands invalid for `sub'
{standard input}:634: Warning: rest of line ignored; first ignored character is `,'
{standard input}:660: Warning: rest of line ignored; first ignored character is `1'
{standard input}:661: Warning: rest of line ignored; first ignored character is `3'
{standard input}:663: Warning: rest of line ignored; first ignored character is `2'
{standard input}:663: Warning: rest of line ignored; first ignored character is `1'
{standard input}:664: Warning: rest of line ignored; first ignored character is `4'
{standard input}:664: Warning: rest of line ignored; first ignored character is `3'
{standard input}:690: Warning: rest of line ignored; first ignored character is `1'
{standard input}:691: Warning: rest of line ignored; first ignored character is `3'
{standard input}:693: Warning: rest of line ignored; first ignored character is `2'
{standard input}:693: Warning: rest of line ignored; first ignored character is `1'
{standard input}:694: Warning: rest of line ignored; first ignored character is `4'
{standard input}:694: Warning: rest of line ignored; first ignored character is `3'
{standard input}:708: Error: missing or invalid immediate expression `' taken as 0
{standard input}:708: Error: suffix or operands invalid for `cmp'
{standard input}:708: Warning: rest of line ignored; first ignored character is `3'
{standard input}:727: Error: suffix or operands invalid for `or'
{standard input}:727: Warning: rest of line ignored; first ignored character is `0'
{standard input}:732: Error: suffix or operands invalid for `mov'
{standard input}:732: Warning: rest of line ignored; first ignored character is `0'
{standard input}:735: Error: suffix or operands invalid for `or'
{standard input}:735: Warning: rest of line ignored; first ignored character is `0'
{standard input}:762: Error: suffix or operands invalid for `add'
{standard input}:762: Warning: rest of line ignored; first ignored character is `,'
{standard input}:770: Error: missing or invalid immediate expression `' taken as 0
{standard input}:770: Error: suffix or operands invalid for `mov'
{standard input}:770: Warning: rest of line ignored; first ignored character is `4'
{standard input}:777: Error: missing or invalid immediate expression `' taken as 0
{standard input}:777: Error: suffix or operands invalid for `mov'
{standard input}:777: Warning: rest of line ignored; first ignored character is `3'
{standard input}:807: Error: suffix or operands invalid for `mov'
{standard input}:807: Warning: rest of line ignored; first ignored character is `,'
{standard input}:825: Warning: rest of line ignored; first ignored character is `('
{standard input}:853: Error: suffix or operands invalid for `mov'
{standard input}:853: Warning: rest of line ignored; first ignored character is `4'
{standard input}:856: Error: suffix or operands invalid for `or'
{standard input}:856: Warning: rest of line ignored; first ignored character is `0'
{standard input}:863: Error: missing or invalid immediate expression `' taken as 0
{standard input}:863: Error: suffix or operands invalid for `cmp'
{standard input}:863: Warning: rest of line ignored; first ignored character is `2'
{standard input}:893: Error: suffix or operands invalid for `mov'
{standard input}:893: Warning: rest of line ignored; first ignored character is `('
make[2]: *** [drivers/char/misc.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
wrc@mymachine linux-2.6.2 $

/bin/bash 02-09-2004 05:32 PM

I can tell you that 2.6.3-rc1 does compile and work. I'm running it right now. I also patched 2.6.2 so the patch should not be the problem. Unless you got a corrupted patch somehow, but you would get errors while patching if the patch file was corrupt.
You could try this:
find /usr/src/linux -name "*.rej"
If you find any .rej files then probably the patch didn't apply cleanly.

CMDR_PAIN 02-15-2004 04:38 PM

you are making jokes. You are compiling your linux kernel with CFLAGS -march=athlon-xp -falign-functions=16 -falign-loops=16 -falign-jumps=16 -falign-labels=1 -ftracer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 ?? Does it speed up your kernel, is it stable ??
I`m really impressed. I thought it is unsafe and many people don`t recommend to compile the kernel with additional CFLAGS. Maybe that`s your problem. Maybe this kernel won`t compile with those additional CFLAGS ?? Just a suggestion.


All times are GMT -5. The time now is 04:58 AM.