linux-next: sparc tree build failure
Hi Dave,
Today's linux-next build (sparc defconfig) failed like this:
Building modules, stage 2.
.tmp_kallsyms2.o(.rodata+0x0): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x4): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x8): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0xc): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x10): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x14): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x18): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x1c): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x20): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x24): In function `kallsyms_addresses':
: relocation truncated to fit: R_SPARC_32 _text .tmp_kallsyms2.o(.rodata+0x28): In function `kallsyms_addresses':
: additional relocation overflows omitted from the output
Sorry, I have no idea how to fix this.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 2 lines · On Fri, 25 Jul 2008 17:05:27 +1000 Stephen Rothwell <[email protected]>…
Today's linux-next build (sparc defconfig) failed like this:
This was after I had merged all the trees into linux-next.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
From: Stephen Rothwell <[email protected]>
Date: Fri, 25 Jul 2008 17:05:27 +1000
Quoted 5 lines
Today's linux-next build (sparc defconfig) failed like this:
Building modules, stage 2.
.tmp_kallsyms2.o(.rodata+0x0): In function `kallsyms_addresses':
: relocation truncated to fit:R_SPARC_32_text
That's impressive, getting a relocation overflow for a 32-bit relocation on a 32-bit platforms, amazing! :-)
I'll try to figure out whats wrong if someone else doesn't beat me to it.
From: Stephen Rothwell <[email protected]>
Date: Fri, 25 Jul 2008 17:05:27 +1000
Quoted 7 lines
Hi Dave,
Today's linux-next build (sparc defconfig) failed like this:
Building modules, stage 2.
.tmp_kallsyms2.o(.rodata+0x0): In function `kallsyms_addresses':
: relocation truncated to fit:R_SPARC_32_text
FWIW, Sam had narrowed it down to:
commit fd593d12770d4a0d1ff095d44b96436c18479ee8
Author: Eric W. Biederman <[email protected]> Date: Thu Dec 7 02:14:04 2006 +0100
[PATCH] relocatable kernel: Kallsyms generate relocatable symbols
Print the addresses of non-absolute symbols relative to _text so that ld will generate relocations. Allowing a relocatable kernel to relocate them. We can't actually use the symbol names because kallsyms includes static symbols that are not exported from their object files.
Add the _text symbol definitions to the architectures which don't define it otherwise linker will fail.
and
commit 2c22d8baa98a92022acb85b0b7c6f4a60df55f47
Author: Vivek Goyal <[email protected]> Date: Thu Dec 7 02:14:10 2006 +0100
[PATCH] relocatable kernel: Fix kallsyms on avr32 after relocatable kernel changes
o On some platforms like avr32, section init comes before .text and not necessarily a symbol's relative position w.r.t _text is positive. In such cases assembler detects the overflow and emits warning. This patch fixes it.
but I personally still can't reproduce this. I even had the gcc-3.4.5 that's installed on my box, using defconfig just like you, and I can't trigger this problem.
Hi Dave,
Quoted 52 lines · On Sun, 03 Aug 2008 21:26:20 -0700 (PDT) David Miller <[email protected]>…
From: Stephen Rothwell <[email protected]>
Date: Fri, 25 Jul 2008 17:05:27 +1000Quoted 7 lines
Hi Dave,
Today's linux-next build (sparc defconfig) failed like this:
Building modules, stage 2.
.tmp_kallsyms2.o(.rodata+0x0): In function `kallsyms_addresses':
: relocation truncated to fit:R_SPARC_32_textFWIW, Sam had narrowed it down to:
commit
fd593d12770d4a0d1ff095d44b96436c18479ee8Author: Eric W. Biederman <[email protected]> Date: Thu Dec 7 02:14:04 2006 +0100[PATCH] relocatable kernel: Kallsyms generate relocatable symbols
Print the addresses of non-absolute symbols relative to
_textso that ld will generate relocations. Allowing a relocatable kernel to relocate them. We can't actually use the symbol names because kallsyms includes static symbols that are not exported from their object files.Add the
_textsymbol definitions to the architectures which don't define it otherwise linker will fail.Signed-off-by Eric W. Biederman <[email protected]>Signed-off-by Vivek Goyal <[email protected]>Signed-off-by Andi Kleen <[email protected]>and
commit
2c22d8baa98a92022acb85b0b7c6f4a60df55f47Author: Vivek Goyal <[email protected]> Date: Thu Dec 7 02:14:10 2006 +0100[PATCH] relocatable kernel: Fix kallsyms on avr32 after relocatable kernel changes
o On some platforms like avr32, section init comes before .text and not necessarily a symbol's relative position w.r.t
_textis positive. In such cases assembler detects the overflow and emits warning. This patch fixes it.Signed-off-by Vivek Goyal <[email protected]>Signed-off-by Andi Kleen <[email protected]>Cc Andi Kleen <[email protected]>Cc Haavard Skinnemoen <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Quoted 3 lines
but I personally still can't reproduce this. I even had the gcc-3.4.5 that's installed on my box, using defconfig just like you, and I can't trigger this problem.
Weird because I tracked it down to the following:
I finally bisected it down to this commit:
commit f9247273cb69ba101877e946d2d83044409cc8c5
Author: Steven Whitehouse <[email protected]> Date: Thu Jul 24 17:22:13 2008 +0100
UFS: add const to parser token table
(I sent you an email about this on July 31.)
If I revert this and the followup commit:
commit fb2e405fc1fc8b20d9c78eaa1c7fd5a297efde43
Author: Adrian Bunk <[email protected]> Date: Fri Jul 25 02:55:49 2008 +0300
fix fs/nfs/nfsroot.c compilation
the build succeeds. Though I must admit Sam's culprits look more likely.
Also weird because I first saw this on July 25 (commit f9247273cb69ba101877e946d2d83044409cc8c5 first appeared in linux-next (via Linus' tree) on that day). It could be some interaction between the two sets of patches.
Weirder yet, my build system (kisskb) never got this failure even though it uses the same toolchain that I used.
I just tried again and reverting the two patches I mentioned above does make the failure go away.
Steve Whitehouse and Andrew asked Linus to revert those two patches but nothing has happened yet.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/