Problem: kernel 2.5.33 won't compile
I get this error message when I try to compile 2.5.33:
Generating build number
make[1]: Entering directory `/usr/src/linux-2.5.33/init'
Generating /usr/src/linux-2.5.33/include/linux/compile.h (updated)
gcc -Wp,-MD,./.version.o.d -D__KERNEL__
-I/usr/src/linux-2.5.33/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=version -c -o version.o version.c
ld -m elf_i386 -r -o init.o main.o version.o do_mounts.o
make[1]: Leaving directory `/usr/src/linux-2.5.33/init'
ld -m elf_i386 -T arch/i386/vmlinux.lds -e stextarch/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 security/built-in.o /usr/src/linux-2.5.33/arch/i386/lib/lib.a lib/lib.a /usr/src/linux-2.5.33/arch/i386/lib/lib.a drivers/built-in.o sound/sound.o arch/i386/pci/pci.o net/network.o --end-group -o vmlinux drivers/built-in.o(.data+0x2d8d4): undefined reference to `local symbols in discarded section .text.exit'
make: *** [vmlinux] Error 1
Quoted 3 lines · Adam Johnson
I get this error message when I try to compile 2.5.33:
drivers/built-in.o(.data+0x2d8d4): undefined reference to `local symbols in discarded section .text.exit'
Try seaching ihttp://marc.theaimsgroup.com
Hint: binutils compatibility problem, time to upgrade.
Sam
Quoted 7 lines · Sam Ravnborg
Quoted 3 lines · Adam Johnson
I get this error message when I try to compile 2.5.33:
drivers/built-in.o(.data+0x2d8d4): undefined reference to `local symbols in discarded section .text.exit'Try seaching ihttp://marc.theaimsgroup.com
Hint: binutils compatibility problem, time to upgrade.
Your answer is 100% wrong:
- You see this problem only with recent binutils, so a workaround would be to _downgrade_ binutils.
- These .text.exit errors are generally considered bugs in the kernel. (Most of them are already fixed in recent kernels.)
- I suspect CONFIG_DE2104X and/or CONFIG_DM9102 is set in the .config, and then it's a well-known error.
Quoted 1 line
Sam
cu
Adrian
Signature · 3 lines
You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox