2002-09-21 15:54:54

by Alexis de Bernis

[permalink] [raw]
Subject: 2.5.37 : compile failed with undefined reference to find_smp_config with SMP disabled


Hi,


This happens with the vanilla 2.5.37 kernel. More information available
on demand.

Note : I have even more undefined reference with APIC enabled (and even, even more
with IO-APIC enabled).


-- Alexis




ld -m elf_i386 -e stext -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/built-in.o --start-group arch/i386/kernel/built-in.o arch/i386/mm/built-in.o arch/i386/mach-generic/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o lib/lib.a arch/i386/lib/lib.a drivers/built-in.o sound/built-in.o arch/i386/pci/built-in.o net/built-in.o --end-group -o vmlinux
arch/i386/kernel/built-in.o: dans la fonction ? setup_memory ?:
arch/i386/kernel/built-in.o(.text.init+0xea1): r?f?rence ind?finie vers ? find_smp_config ?
make: *** [vmlinux] Erreur 1



#
# Processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
CONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_SMP is not set
CONFIG_PREEMPT=y
# CONFIG_X86_UP_APIC is not set
# CONFIG_X86_UP_IOAPIC is not set
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
# CONFIG_X86_MCE_P4THERMAL is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
CONFIG_X86_CPUID=m
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y



2002-09-21 16:33:03

by Dan Aloni

[permalink] [raw]
Subject: Re: 2.5.37 : compile failed with undefined reference to find_smp_config with SMP disabled

On Sat, Sep 21, 2002 at 11:59:42AM -0400, Alexis de Bernis wrote:

> This happens with the vanilla 2.5.37 kernel. More information available
> on demand.
>
> Note : I have even more undefined reference with APIC enabled (and even, even more
> with IO-APIC enabled).


The problem is that CONFIG_X86_FIND_SMP_CONFIG gets always enabled when you
enable APIC (CONFIG_X86_LOCAL_APIC).


--- linux-2.5-BKcurr/arch/i386/config.in.orig 2002-09-21 19:32:26.000000000 +0300
+++ linux-2.5-BKcurr/arch/i386/config.in 2002-09-21 19:33:00.000000000 +0300
@@ -440,7 +440,9 @@

if [ "$CONFIG_X86_LOCAL_APIC" = "y" ]; then
define_bool CONFIG_X86_EXTRA_IRQS y
- define_bool CONFIG_X86_FIND_SMP_CONFIG y
+ if [ "$CONFIG_SMP" = "y" ]; then
+ define_bool CONFIG_X86_FIND_SMP_CONFIG y
+ fi
fi

endmenu


--
Dan Aloni
[email protected]