[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: error compiling kernel: undefined reference to `local symbols



This one time, at band camp, Marcio Roberto Teixeira said:
> 
> 
> Hi.
> 
> I was compiling the kernel (Debian way) and:
> 
> (root)$ make-kpkg kernel_image
> 
> <cut>
> 
> make[3]: Leaving directory `/usr/src/kernel-source-2.4.16/arch/i386/lib'
> make[2]: Leaving directory `/usr/src/kernel-source-2.4.16/arch/i386/lib'
> ld -m elf_i386 -T
> /usr/src/kernel-source-2.4.16/arch/i386/vmlinux.lds -e stext
> arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
> init/version.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 \
> 	         drivers/char/char.o drivers/block/block.o
> 		 drivers/misc/misc.o drivers/net/net.o
> 		 drivers/media/media.o drivers/ide/idedriver.o
> 		 drivers/cdrom/driver.o drivers/pci/driver.o
> 		 drivers/pnp/pnp.o drivers/video/video.o \
> 		         net/network.o \
> 			         /usr/src/kernel-source-2.4.16/arch/i386/lib/lib.a
> 				 /usr/src/kernel-source-2.4.16/lib/lib.a
> 				 /usr/src/kernel-source-2.4.16/arch/i386/lib/lib.a
> 				 \
> 				         --end-group \
> 					         -o vmlinux
> 
> drivers/char/char.o(.data+0x46b4): undefined reference to `local symbols in discarded section .text.exit'
> make[1]: ** [vmlinux] Erro 1
> make[1]: Leaving directory `/usr/src/kernel-source-2.4.16'
> make: ** [stamp-build] Erro 2
> funes:/usr/src/kernel-source-2.4.16#
> 
> What's happening? What means "undefined reference to `local symbols in 
> discarded section .text.exit' "? How can I workaround it?
> 
> My setup: unstable, i386.
> 
> Regards,
> -- 
> Marcio Roberto Teixeira

It's a binutils issue, IIRC.  Debconf even emailed me about it a while
back, but I can't find it right now.  Let's see . . . try the thread
starting here:

http://lists.debian.org/debian-devel/2001/debian-devel-200112/msg00199.html

I think the easy answer is: for this version of binutils, only compile
2.4.17 or newer kernels.

HTH,
Steve
-- 
For the first time we have a weapon that nobody has used for thirty years.
This gives me great hope for the human race.
		-- Harlan Ellison

Attachment: pgpKd_c3l7HF3.pgp
Description: PGP signature


Reply to: