2002-06-17 10:59:14

by Hanno Böck

[permalink] [raw]
Subject: 2.5.22 compile problems

I tried to compile 2.5.22 and got the following errors:

ld -m elf_i386 -r -o init.o main.o version.o do_mounts.o
make[1]: Verlassen des Verzeichnisses Verzeichnis ?/usr/src/linux-2.5.22/init?
ld -m elf_i386 -T /usr/src/linux-2.5.22/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/init.o --start-group arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o /usr/src/linux-2.5.22/arch/i386/lib/lib.a lib/lib.a /usr/src/linux-2.5.22/arch/i386/lib/lib.a drivers/built-in.o sound/sound.o arch/i386/pci/pci.o net/network.o --end-group -o vmlinux
arch/i386/kernel/kernel.o: In function `intel_thermal_interrupt':
arch/i386/kernel/kernel.o(.text+0x7821): undefined reference to `ack_APIC_irq'
arch/i386/kernel/kernel.o: In function `intel_init_thermal':
arch/i386/kernel/kernel.o(.text.init+0x1450): undefined reference to `apic_read'
arch/i386/kernel/kernel.o(.text.init+0x149b): undefined reference to `apic_write_around'
arch/i386/kernel/kernel.o(.text.init+0x14cd): undefined reference to `apic_read'
arch/i386/kernel/kernel.o(.text.init+0x14e0): undefined reference to `apic_write_around'
make: *** [vmlinux] Fehler 1



I have tried kernels 2.5.18, 2.5.20, 2.5.21 and 2.5.22 and I always had compile problems. Can't someone test the kernel-source with all options activated before it is released?
I think it doesn't matter if this happens sometimes in the 2.5-series, but it should not become usual.


2002-06-17 11:03:13

by Morten Helgesen

[permalink] [raw]
Subject: Re: 2.5.22 compile problems

enable APIC support ... the intel thermal stuff depends on it.

On Mon, Jun 17, 2002 at 12:59:05PM +0200, Hanno B?ck wrote:
> I tried to compile 2.5.22 and got the following errors:
>
> ld -m elf_i386 -r -o init.o main.o version.o do_mounts.o
> make[1]: Verlassen des Verzeichnisses Verzeichnis ?/usr/src/linux-2.5.22/init?
> ld -m elf_i386 -T /usr/src/linux-2.5.22/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/init.o --start-group arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o /usr/src/linux-2.5.22/arch/i386/lib/lib.a lib/lib.a /usr/src/linux-2.5.22/arch/i386/lib/lib.a drivers/built-in.o sound/sound.o arch/i386/pci/pci.o net/network.o --end-group -o vmlinux
> arch/i386/kernel/kernel.o: In function `intel_thermal_interrupt':
> arch/i386/kernel/kernel.o(.text+0x7821): undefined reference to `ack_APIC_irq'
> arch/i386/kernel/kernel.o: In function `intel_init_thermal':
> arch/i386/kernel/kernel.o(.text.init+0x1450): undefined reference to `apic_read'
> arch/i386/kernel/kernel.o(.text.init+0x149b): undefined reference to `apic_write_around'
> arch/i386/kernel/kernel.o(.text.init+0x14cd): undefined reference to `apic_read'
> arch/i386/kernel/kernel.o(.text.init+0x14e0): undefined reference to `apic_write_around'
> make: *** [vmlinux] Fehler 1
>
>
>
> I have tried kernels 2.5.18, 2.5.20, 2.5.21 and 2.5.22 and I always had compile problems. Can't someone test the kernel-source with all options activated before it is released?
> I think it doesn't matter if this happens sometimes in the 2.5-series, but it should not become usual.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--

"Livet er ikke for nybegynnere" - sitat fra en klok person.

mvh
Morten Helgesen
UNIX System Administrator & C Developer
Nextframe AS
[email protected] / 93445641
http://www.nextframe.net

2002-06-17 11:18:32

by Zwane Mwaikambo

[permalink] [raw]
Subject: Re: 2.5.22 compile problems

On Mon, 17 Jun 2002, Hanno B?ck wrote:

> I tried to compile 2.5.22 and got the following errors:
>
> arch/i386/kernel/kernel.o(.text.init+0x1450): undefined reference to `apic_read'
> arch/i386/kernel/kernel.o(.text.init+0x149b): undefined reference to `apic_write_around'
> arch/i386/kernel/kernel.o(.text.init+0x14cd): undefined reference to `apic_read'
> arch/i386/kernel/kernel.o(.text.init+0x14e0): undefined reference to `apic_write_around'
> make: *** [vmlinux] Fehler 1

Thanks, I'll look into that.

> I have tried kernels 2.5.18, 2.5.20, 2.5.21 and 2.5.22 and I always had compile problems. Can't someone test the kernel-source with all options activated before it is released?
> I think it doesn't matter if this happens sometimes in the 2.5-series, but it should not become usual.

Well this particular one would actually 'go away' with all options set, so
you can't win em all.

Cheers,
Zwane
--
http://function.linuxpower.ca


2002-06-17 12:23:22

by Zwane Mwaikambo

[permalink] [raw]
Subject: [PATCH][2.5] Make SMP/APIC config option earlier

Patch to reorder the APIC configuration so that dependencies are
determined beforehand for MCE. Keith Owens pointed this out a whiles back
actually.

Please apply,
Zwane

--- linux-2.5.22-mk/arch/i386/config.in.orig Mon Jun 17 13:55:08 2002
+++ linux-2.5.22-mk/arch/i386/config.in Mon Jun 17 14:03:16 2002
@@ -153,9 +153,24 @@
define_bool CONFIG_X86_OOSTORE y
fi

+bool 'Symmetric multi-processing support' CONFIG_SMP
+bool 'Preemptible Kernel' CONFIG_PREEMPT
+if [ "$CONFIG_SMP" != "y" ]; then
+ bool 'Local APIC support on uniprocessors' CONFIG_X86_UP_APIC
+ dep_bool 'IO-APIC support on uniprocessors' CONFIG_X86_UP_IOAPIC $CONFIG_X86_UP_APIC
+ if [ "$CONFIG_X86_UP_APIC" = "y" ]; then
+ define_bool CONFIG_X86_LOCAL_APIC y
+ fi
+ if [ "$CONFIG_X86_UP_IOAPIC" = "y" ]; then
+ define_bool CONFIG_X86_IO_APIC y
+ fi
+else
+ bool 'Multiquad NUMA system' CONFIG_MULTIQUAD
+fi
+
bool 'Machine Check Exception' CONFIG_X86_MCE
dep_bool 'Check for non-fatal errors on Athlon/Duron' CONFIG_X86_MCE_NONFATAL $CONFIG_X86_MCE
-dep_bool 'check for P4 thermal throttling interrupt.' CONFIG_X86_MCE_P4THERMAL $CONFIG_X86_MCE $CONFIG_X86_LOCAL_APIC
+dep_bool 'check for P4 thermal throttling interrupt.' CONFIG_X86_MCE_P4THERMAL $CONFIG_X86_MCE $CONFIG_X86_UP_APIC


tristate 'Toshiba Laptop support' CONFIG_TOSHIBA
@@ -185,20 +200,6 @@

bool 'Math emulation' CONFIG_MATH_EMULATION
bool 'MTRR (Memory Type Range Register) support' CONFIG_MTRR
-bool 'Symmetric multi-processing support' CONFIG_SMP
-bool 'Preemptible Kernel' CONFIG_PREEMPT
-if [ "$CONFIG_SMP" != "y" ]; then
- bool 'Local APIC support on uniprocessors' CONFIG_X86_UP_APIC
- dep_bool 'IO-APIC support on uniprocessors' CONFIG_X86_UP_IOAPIC $CONFIG_X86_UP_APIC
- if [ "$CONFIG_X86_UP_APIC" = "y" ]; then
- define_bool CONFIG_X86_LOCAL_APIC y
- fi
- if [ "$CONFIG_X86_UP_IOAPIC" = "y" ]; then
- define_bool CONFIG_X86_IO_APIC y
- fi
-else
- bool 'Multiquad NUMA system' CONFIG_MULTIQUAD
-fi

if [ "$CONFIG_SMP" = "y" -o "$CONFIG_PREEMPT" = "y" ]; then
if [ "$CONFIG_X86_CMPXCHG" = "y" ]; then