Re: Will's kernel compilation error
From: Thorsten Kranzkowski <hidden>
Date: 2010-03-16 18:44:15
Also in:
lkml
Subsystem:
alpha port, the rest · Maintainers:
Richard Henderson, Matt Turner, Magnus Lindholm, Linus Torvalds
On Tue, Mar 16, 2010 at 12:50:32AM -0500, Will L Givens wrote:
quoted
quoted
GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 kernel/built-in.o: In function `kthread_create': (.text+0x1ece4): relocation truncated to fit: GPREL16 against symbol `kthreadd_task' defined in .sbss section in kernel/built-in.o kernel/built-in.o: In function `check_cpu_itimer': (.text+0x21784): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `check_cpu_itimer': (.text+0x2179c): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `free_nsproxy': (.text+0x23064): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `create_new_namespaces': (.text+0x230a4): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `create_new_namespaces': (.text+0x23254): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `notify_die': (.text+0x2413c): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `register_die_notifier': (.text+0x241a4): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `unregister_die_notifier': (.text+0x241bc): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `sched_clock_init': (.text+0x24ba4): relocation truncated to fit: GPREL16 against `.sbss' kernel/built-in.o: In function `sched_clock_cpu': (.text+0x24bb4): additional relocation overflows omitted from theoutputquoted
make: *** [.tmp_vmlinux1] Error 1It seems the problem, GPREL16, is pretty wide spread. I've tried building the drivers as modules, since that doesn't appear to be a problem *knock on wood* but one driver after another, after another, after another generates a new GPREL16 error! Raid0 drivers, numerous NetFilter modules, IR drivers (guess I can't use a Hauppauge card), and various other components. I'm going to try a few more configurations... then hit the sack. I'm pretty sure this is going to be a long process.
when I hit the relocation overflow a couple of releases before, I locally applied this patch, which fixes it for me. I assume the kernel is slightly bigger this way, but I didn't measure it. ev6, everything built in, gcc 4.4 I think Thorsten
diff --git a/arch/alpha/Makefile b/arch/alpha/Makefile
index 4759fe7..2cc3cc5 100644
--- a/arch/alpha/Makefile
+++ b/arch/alpha/Makefile@@ -12,7 +12,7 @@ NM := $(NM) -B LDFLAGS_vmlinux := -static -N #-relax CHECKFLAGS += -D__alpha__ -m64 -cflags-y := -pipe -mno-fp-regs -ffixed-8 -msmall-data +cflags-y := -pipe -mno-fp-regs -ffixed-8 cflags-y += $(call cc-option, -fno-jump-tables) cpuflags-$(CONFIG_ALPHA_EV4) := -mcpu=ev4
--
| Thorsten Kranzkowski Internet: dl8bcu@dl8bcu.de |
| Mobile: ++49 170 1876134 Snail: Kiebitzstr. 14, 49324 Melle, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html