LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-09-2004, 12:45 PM   #1
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Rep: Reputation: 15
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 $
 
Old 02-09-2004, 04:32 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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.
 
Old 02-15-2004, 03:38 PM   #3
CMDR_PAIN
LQ Newbie
 
Registered: Jul 2003
Location: Poland
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failure of sound and PCMCIA modem after Kernel compile iainagray Ubuntu 3 11-29-2005 02:16 PM
Ideas about what this kernel error means? harken Linux - Software 10 03-12-2005 02:44 PM
Kernel 2.6.9 compile error burn0ut Linux - General 3 12-08-2004 08:05 AM
new kernel compile error gauravdawra Linux - Newbie 0 04-02-2004 09:16 PM
kernel compile error r4v5 Slackware 2 07-04-2003 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration