Click to See Complete Forum and Search --> : Damnit it worked yesterday!


Tyr-7BE
03-24-2001, 12:50 AM
I've been trying to compile my 2.4.2 kernel under Debian, but have been having problems. Here's the latest. First of all, I compiled the kernel and things went great. I did a make modules then make modules_install, then rebooted. Well for some reason the modules weren't created or inserted, because none of them could be found anywhere. That's not the problem though. The problem is that when I tried to re-compile the kernel, I get this: (this is after "make dep" during "make bzImage"):

gcc -D__KERNEL__ -I/home/conor/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
m init/main.c:15:
/home/conor/linux/include/asm/hw_irq.h: In function `x86_do_profile':
/home/conor/linux/include/asm/hw_irq.h:198: `current' undeclared (first use in this function)
/home/conor/linux/include/asm/hw_irq.h:198: (Each undeclared identifier is reported only once
/home/conor/linux/include/asm/hw_irq.h:198: for each function it appears in.)
In file included from /home/conor/linux/include/linux/irq.h:57,
from /home/conor/linux/include/asm/hardirq.h:6,
from /home/conor/linux/include/linux/interrupt.h:45,
from /home/conor/linux/include/asm/string.h:296,
from /home/conor/linux/include/linux/string.h:21,
from /home/conor/linux/include/linux/fs.h:23,
from /home/conor/linux/include/linux/capability.h:17,
from /home/conor/linux/include/linux/binfmts.h:5,
from /home/conor/linux/include/linux/sched.h:9,
from /home/conor/linux/include/linux/mm.h:4,
from /home/conor/linux/include/linux/slab.h:14,
from /home/conor/linux/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/conor/linux/include/asm/hw_irq.h: In function `x86_do_profile':
/home/conor/linux/include/asm/hw_irq.h:198: `current' undeclared (first use in this function)
/home/conor/linux/include/asm/hw_irq.h:198: (Each undeclared identifier is reported only once
/home/conor/linux/include/asm/hw_irq.h:198: for each function it appears in.)
In file included from /home/conor/linux/include/asm/string.h:296,
from /home/conor/linux/include/linux/string.h:21,
from /home/conor/linux/include/linux/fs.h:23,
from /home/conor/linux/include/linux/capability.h:17,
from /home/conor/linux/include/linux/binfmts.h:5,
from /home/conor/linux/include/linux/sched.h:9,
from /home/conor/linux/include/linux/mm.h:4,
from /home/conor/linux/include/linux/slab.h:14,
from /home/conor/linux/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/conor/linux/include/linux/interrupt.h: In function `raise_softirq':
/home/conor/linux/include/linux/interrupt.h:89: `current' undeclared (first use in this function)
/home/conor/linux/include/linux/interrupt.h: In function `tasklet_schedule':
/home/conor/linux/include/linux/interrupt.h:160: `current' undeclared (first use in this function)
/home/conor/linux/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/home/conor/linux/include/linux/interrupt.h:174: `current' undeclared (first use in this function)
In file included from /home/conor/linux/include/linux/string.h:21,
from /home/conor/linux/include/linux/fs.h:23,
from /home/conor/linux/include/linux/capability.h:17,
from /home/conor/linux/include/linux/binfmts.h:5,
from /home/conor/linux/include/linux/sched.h:9,
from /home/conor/linux/include/linux/mm.h:4,
from /home/conor/linux/include/linux/slab.h:14,
from /home/conor/linux/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/conor/linux/include/asm/string.h: In function `__constant_memcpy3d':
/home/conor/linux/include/asm/string.h:305: `current' undeclared (first use in this function)
/home/conor/linux/include/asm/string.h: In function `__memcpy3d':
/home/conor/linux/include/asm/string.h:312: `current' undeclared (first use in this function)
make: *** [init/main.o] Error 1


Sorry if it's a little long, but there it is. I could compile yesterday, and today I can't. I've tried re-making the config, re-compiling, and re-downloading the source. Any ideas?

Gaccm
03-24-2001, 02:29 AM
if i ever need to recompile a kernel using the same source, i mv the .config file somewhere else, and rm -rf *. when you first compiled it made and did lots of stuff, and to be safe always use fresh source (that just sounds funny, fresh source).

Tyr-7BE
03-24-2001, 03:59 AM
I tried removing the entire source and re-installing source which has been apt-gotten from Debian's site, and also tried it with a download from kernel.org (and I remembered to fix the kernel.org Debian bug in /linux/arch/i386/boot/Makefile too!). Neither of the fresh sources worked. It gave me this both times. I have no idea why this won't work!

rod
03-24-2001, 09:48 AM
Take a look at this (http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=1&t=016216) thread, paying special attention to Derango's posts.

Regards,
Rod

Tyr-7BE
03-25-2001, 03:10 AM
Thanks rod, but I did fix that problem earlier. It was preventing me from compiling before, and I fixed it and it compiled like a dream. I didn't get it right, so I did a fresh source-install, and fixed it again. No dice this time :( I've re-installed the source and fixed it AGAIN, but it seems that this problem is here to stay.

Tyr-7BE
03-25-2001, 06:25 PM
Update...I try it with "make oldconfig" and it all compiles like a dream. Leads me to believe that it's a problem with one of the config parameters enabled/disabled. Anyone know of any options that could cause the compilation to crash and burn?

Gaccm
03-25-2001, 07:50 PM
make several copies of you .config file, and try altering one with a few changes, see if it screws up, if not, use fresh source (and the new .config) and make a few more changes. This might take awhile.
Also, you might want to do make dep; make clean; (i dont think it should make a diff but i did that for 2.4.1 and got no errors) also: you might want to try make zImage

Tyr-7BE
03-25-2001, 10:18 PM
I figured it out...maybe. I switched the processor type from Athlon/K7 to 6x86, and it compiled! Gives me an error I can't remember when I boot though. Ah well...gotta keep trying. And make oldconfig works well, but it doesn't compile ppp support, nor does it compile any modules so I'm stuck without internet. Does anyone know of a way to compile the ppp modules so I can use them with make oldconfig?

Tyr-7BE
03-26-2001, 01:24 AM
Well there ya go, how about that...turns out that the problem was compiling it for an Athlon/K7...the kernel likes to think of my Athlon 800 as a PIII. I changed that, and the thing worked like a charm :)