Skip to contentSkip to conversation

2.5.11 SMP, APIC, build breaks

DISCUSSION blitzkrieg 2 participants 2 messages Apr 29, 2002 – Apr 30, 2002

lore
Share & tools
lore

blitzkrieg

author
#0 lore raw

HI,
I was trying to compile 2.5.11, I noticed that if
# CONFIG_SMP is not set

and

# CONFIG_X86_LOCAL_APIC is not set
# CONFIG_X86_IO_APIC is not set

the build breaks with the following errors

arch/i386/kernel/kernel.o: In function `intel_thermal_interrupt':
arch/i386/kernel/kernel.o(.text+0x7271): undefined reference to ack_APIC_irq' arch/i386/kernel/kernel.o: In function intel_init_thermal':
arch/i386/kernel/kernel.o(.text.init+0x2ad2): undefined reference to apic_read' arch/i386/kernel/kernel.o(.text.init+0x2b12): undefined reference to apic_write_around' arch/i386/kernel/kernel.o(.text.init+0x2b31): undefined reference to apic_read' arch/i386/kernel/kernel.o(.text.init+0x2b41): undefined reference to apic_write_around'
make: *** [vmlinux] Error 1

moreover, all works fine if

CONFIG_SMP= y

or

CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y

I have a single processor machine (Celeron (Mendocino)) and, yes, I did 'make mrproper'

bye bye
-b

Signature · 1 line
head --lines=4 $HOME/.signature
#1 lore raw
Quoted 8 lines · blitzkrieg

HI,
I was trying to compile 2.5.11, I noticed that if
# CONFIG_SMP is not set

and

# CONFIG_X86_LOCAL_APIC is not set
# CONFIG_X86_IO_APIC is not set

Basically, that code needs CONFIG_X86_LOCAL_APIC, which is set for SMP or Local-APIC on UP (no IOAPIC needed). -dj has the following which fixes that dependancy.

dep_bool 'check for P4 thermal throttling interrupt.' \
CONFIG_X86_MCE_P4THERMAL $CONFIG_X86_MCE $CONFIG_X86_LOCAL_APIC

It'll get fixed when that stuff gets merged from -dj (where it originates from). For now simply enabling CONFIG_X86_LOCAL_APIC should suffice.

Thanks,
Zwane Mwaikambo

Signature · 1 line
http://function.linuxpower.ca