2002-11-16 15:19:47

by James Bottomley

[permalink] [raw]
Subject: Re: 2.5.47-ac5:undefined reference to `boot_gdt_table'

> 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
> usr/built-in.o \ 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 crypto/
> built-in.o drivers/built-in.o \ sound/built-in.o arch/i386/pci/
> built-in.o net/built-in.o lib/lib.a \ arch/i386/lib/lib.a
> --end-group -o .tmp_vmlinux1 \ arch/i386/kernel/built-in.o(.data+0x15a
> 5): In function `gdt_48': : undefined \
> reference to `boot_gdt_table' make: ***
> [.tmp_vmlinux1] Error 1

I think this is because -ac5 has X86_TRAMPOLINE dependent on X86_LOCAL_APIC.
If you change

config X86_TRAMPOLINE
bool
depends on SMP || (VOYAGER && SMP) || X86_LOCAL_APIC

to

depends on SMP

in arch/i386/Kconfig

does this fix the problem?

Alan: I'm just getting -ac5 up and running on voyager now, so I'll send in
this as part of the rebased patches.

James



2002-11-16 21:24:16

by Samuli Suonpaa

[permalink] [raw]
Subject: Re: 2.5.47-ac5:undefined reference to `boot_gdt_table'

"J.E.J. Bottomley" <[email protected]> writes:
>> 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
>> usr/built-in.o \ 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 crypto/
>> built-in.o drivers/built-in.o \ sound/built-in.o arch/i386/pci/
>> built-in.o net/built-in.o lib/lib.a \ arch/i386/lib/lib.a
>> --end-group -o .tmp_vmlinux1 \ arch/i386/kernel/built-in.o(.data+0x15a
>> 5): In function `gdt_48': : undefined \
>> reference to `boot_gdt_table' make: ***
>> [.tmp_vmlinux1] Error 1
> I think this is because -ac5 has X86_TRAMPOLINE dependent on
> X86_LOCAL_APIC.

> If you change
>
> config X86_TRAMPOLINE
> bool
> depends on SMP || (VOYAGER && SMP) || X86_LOCAL_APIC
>
> to
>
> depends on SMP
>
> in arch/i386/Kconfig
>
> does this fix the problem?

Worked here, at least.

Suonp??...