Kernel 2.5.8 compilation fail...
Quoted 22 lines · In article <[email protected]> Jan Marek wrote:
--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inlineHallo,
I have problems with linking of kernel 2.5.8-usagi. Compilation ended with:
ld -m
elf_i386-T/usr/src/usagi/kernel/linux25/arch/i386/vmlinux.lds-e stextarch/i386/kernel/head.oarch/i386/kernel/init_task.oinit/main.oinit/version.o init/do_mounts.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/usagi/kernel/linux25/arch/i386/lib/lib.a
/usr/src/usagi/kernel/linux25/lib/lib.a/usr/src/usagi/kernel/linux25/arch/i386/lib/lib.a\
drivers/base/base.odrivers/char/char.odrivers/block/block.odrivers/misc/misc.odrivers/net/net.odrivers/media/media.odrivers/char/agp/agp.odrivers/ide/idedriver.odrivers/cdrom/driver.osound/sound.odrivers/pci/driver.odrivers/pnp/pnp.o
Quoted 8 lines
drivers/video/video.o \ net/network.o \ --end-group \ -o vmlinux
init/main.o: In function `start_kernel':
init/main.o(.text.init+0x5db): undefined reference to `setup_per_cpu_areas'
make: *** [vmlinux] Error 1
You can use the attached (text/plain) patch to fix this.
Thanks
Signature · 2 lines
Dipankar Sarma <[email protected]> http://lse.sourceforge.net Linux Technology Center, IBM Software Lab, Bangalore, India.
init/main.c +12 -12
@@ -274,6 +274,18 @@#else +/* Called by boot processor to activate the rest. */ +static void __init smp_init (void ) +{ +/* Get other processors into their bootup holding patterns. */ +smp_boot_cpus (); + + smp_threads_ready=1 ; +smp_commence (); +} + +#endif +#ifdef __GENERIC_PER_CPUunsigned long __per_cpu_offset[NR_CPUS ];
@@ -302,18 +314,6 @@ }#endif /* !__GENERIC_PER_CPU */ -/* Called by boot processor to activate the rest. */ -static void __init smp_init (void ) -{ -/* Get other processors into their bootup holding patterns. */ -smp_boot_cpus (); - - smp_threads_ready=1 ; -smp_commence (); -} - -#endif -/* * We need to finalize in a non-__init function or else race conditions * between the root thread and the init thread may cause start_kernel to