2002-10-04 17:46:09

by Josh McKinney

[permalink] [raw]
Subject: 2.5.40-ac3 compile error

When compile the said kernel I get this error :

gcc-3.2 -Wp,-MD,./.timer_pit.o.d -D__KERNEL__
-I/usr/src/linux-2.5/linux-2.5.40/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=athlon-xp
-I/usr/src/linux-2.5/linux-2.5.40/arch/i386/mach-generic -nostdinc
-iwithprefix include -DKBUILD_BASENAME=timer_pit -c -o timer_pit.o
timer_pit.c
In file included from timer_pit.c:27:
/usr/src/linux-2.5/linux-2.5.40/arch/i386/mach-generic/do_timer.h: In function
`do_timer_interrupt_hook':
/usr/src/linux-2.5/linux-2.5.40/arch/i386/mach-generic/do_timer.h:26:
`using_apic_timer' undeclared (first use in this
function)/usr/src/linux-2.5/linux-2.5.40/arch/i386/mach-generic/do_timer.h:26:
(Each undeclared identifier is reported only once
/usr/src/linux-2.5/linux-2.5.40/arch/i386/mach-generic/do_timer.h:26: for each
function it appears in.)
/usr/src/linux-2.5/linux-2.5.40/arch/i386/mach-generic/do_timer.h:27: warning:
implicit declaration of function `smp_local_timer_interrupt'
make[2]: *** [timer_pit.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5/linux-2.5.40/arch/i386/kernel'
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5/linux-2.5.40'
make: *** [bzImage] Error 2

I have attached my .config, Thanks.

Josh
--
Linux, the choice | With clothes the new are best, with friends
of a GNU generation -o) | the old are best.
Kernel 2.4.20-pre7-ac3 /\ |
on a Athlon-XP _\_v |
|


Attachments:
(No filename) (1.57 kB)
config (26.32 kB)
Download all attachments

2002-10-05 15:50:06

by James Bottomley

[permalink] [raw]
Subject: Re: 2.5.40-ac3 compile error

> make[2]: *** [timer_pit.o] Error 1 make[2]: Leaving directory `/usr/
> src/linux-2.5/linux-2.5.40/arch/i386/kernel'

This is caused by timer_pit.c not having quite the right #includes for the
i386 subarch code.

The attached patch should fix it. (smp.h gets the smp_local_timer_interrupt,
mpspec.h gets using_apic_timer and arch_hooks is the primer for the hooks in
do_timer.h).

James


Attachments:
tmp.diff (356.00 B)
tmp.diff