Click to See Complete Forum and Search --> : Oh my what ever did I do


Jeepsta
01-12-2001, 12:54 AM
Ok...I compiled my kernel as per the NHF and it worked fine. I got through it all flawlessly. I found out that I had overlooked some things so I decided to recompile but I decided to upgrade my "modutils" as I read in another thread. Now when I try to do a "make bzImage" I get this [root@zechariah linux]# make bzImage
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -c -o init/main.o init/main.c
In file included from /usr/src/linux/include/linux/irq.h:57,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:45,
from /usr/src/linux/include/asm/string.h:296,
from /usr/src/linux/include/linux/string.h:21,
from /usr/src/linux/include/linux/fs.h:23,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from /usr/src/linux/include/linux/malloc.h:4,
from /usr/src/linux/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux/include/asm/hw_irq.h: In function `x86_do_profile':
/usr/src/linux/include/asm/hw_irq.h:198: `current' undeclared (first use in this function)
/usr/src/linux/include/asm/hw_irq.h:198: (Each undeclared identifier is reported only once
/usr/src/linux/include/asm/hw_irq.h:198: for each function it appears in.)
In file included from /usr/src/linux/include/asm/string.h:296,
from /usr/src/linux/include/linux/string.h:21,
from /usr/src/linux/include/linux/fs.h:23,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from /usr/src/linux/include/linux/malloc.h:4,
from /usr/src/linux/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux/include/linux/interrupt.h: In function `raise_softirq':
/usr/src/linux/include/linux/interrupt.h:89: `current' undeclared (first use in this function)
/usr/src/linux/include/linux/interrupt.h: In function `tasklet_schedule':
/usr/src/linux/include/linux/interrupt.h:160: `current' undeclared (first use in this function)
/usr/src/linux/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/usr/src/linux/include/linux/interrupt.h:174: `current' undeclared (first use in this function)
In file included from /usr/src/linux/include/linux/string.h:21,
from /usr/src/linux/include/linux/fs.h:23,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from /usr/src/linux/include/linux/malloc.h:4,
from /usr/src/linux/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux/include/asm/string.h: In function `__constant_memcpy3d':
/usr/src/linux/include/asm/string.h:305: `current' undeclared (first use in this function)
/usr/src/linux/include/asm/string.h: In function `__memcpy3d':
/usr/src/linux/include/asm/string.h:312: `current' undeclared (first use in this function)
make: *** [init/main.o] Error 1

What did I do and how do I fix it? What does the "[init/main.o]" mean? Please help.

Thanks,

Zach

------------------
Its a jeep thing... You wouldn't understand.

CMonster
01-12-2001, 08:57 AM
..sorry man I don't have the foggiest, but I will try to help:

Did you run make mrproper or make clean before you did the second recompile?

Perhaps something in your source got corrupted -you might consider starting all over by unzip/tar your *kernel-2.4-linux-user-couldn't-resist-tinkering.tar.gz-or-.bz2 http://www.linuxnewbie.org/ubb/biggrin.gif

------------------
CMonster says, "You can't choose the right OS if you don't have a choice."

Jeepsta
01-12-2001, 03:23 PM
Does any of these errors mean anything to anyone? I am at a loss right now and cant get my 2.4.0 kernel to compile. I cant figure out what happened and how to fix it. I guess I will keep playin unless someone has an idea.

Zach

------------------
Its a jeep thing... You wouldn't understand.

CMonster
01-12-2001, 04:43 PM
Through numerous recompiles I believe I have discovered what you are doing wrong - be sure NOT to include smp in your kernel!

I believe under Processor options you have included smp and you don't have multiple processors.

------------------
CMonster says, "You can't choose the right OS if you don't have a choice."

Jeepsta
01-12-2001, 07:38 PM
Yes sir my friend I believe that you have solve my problem. Many thanks to ya. If at all possible would you know how to tell that from the output I was given. Thanks again.

Zach

------------------
Its a jeep thing... You wouldn't understand.

CMonster
01-12-2001, 10:35 PM
In a way, Yes, I could tell by the error you posted: At first I thought that the modutils patch had somehow corrupted your source files but a lucky mistake revealed the problem:

My son and I were installing 2.4 in his machine, the first compile went well, but like you we needed to do it again -when we did it again we got an almost identical error as yours.

I remembered your post and was determined to see what we had misconfigured - turned out to be the smp option -doh!

So I posted back as soon as I could.


------------------
CMonster says, "You can't choose the right OS if you don't have a choice."

Jeepsta
01-12-2001, 11:20 PM
Originally posted by CMonster:
doh!
Kinda how I felt when you told me to check that. I cant believe that I missed that somehow. I'm am idiot...what can I say. Thanks again.

------------------
Its a jeep thing... You wouldn't understand.