Discussion:
[BUILD-FAILURE] 2.6.27-rc1-mm1 - allyesconfig build fails on powerpc
(too old to reply)
Kamalesh Babulal
2008-07-31 12:43:28 UTC
Permalink
Hi Andrew,

make allyesconfig with 2.6.27-rc1-mm1 kernel on powerpc fails with build error

LD .tmp_vmlinux1
ld: drivers/built-in.o section .devexit.text exceeds stub group size
ld: sound/built-in.o section .devinit.text exceeds stub group size
ld: drivers/built-in.o section .devinit.text exceeds stub group size
ld: net/built-in.o section .exit.text exceeds stub group size
ld: drivers/built-in.o section .exit.text exceeds stub group size
ld: net/built-in.o section .init.text exceeds stub group size
ld: sound/built-in.o section .init.text exceeds stub group size
ld: drivers/built-in.o section .init.text exceeds stub group size
ld: fs/built-in.o section .init.text exceeds stub group size
ld: mm/built-in.o section .init.text exceeds stub group size
ld: kernel/built-in.o section .init.text exceeds stub group size
ld: arch/powerpc/platforms/built-in.o section .init.text exceeds stub group size
ld: arch/powerpc/kernel/built-in.o section .init.text exceeds stub group size
ld: init/built-in.o section .init.text exceeds stub group size
ld: kernel/built-in.o section .sched.text exceeds stub group size
ld: net/built-in.o section .text exceeds stub group size
ld: arch/powerpc/oprofile/built-in.o section .text exceeds stub group size
ld: sound/built-in.o section .text exceeds stub group size
ld: drivers/built-in.o section .text exceeds stub group size
ld: lib/built-in.o section .text exceeds stub group size
ld: tests/built-in.o section .text exceeds stub group size
ld: block/built-in.o section .text exceeds stub group size
ld: crypto/built-in.o section .text exceeds stub group size
ld: security/built-in.o section .text exceeds stub group size
ld: ipc/built-in.o section .text exceeds stub group size
ld: fs/built-in.o section .text exceeds stub group size
ld: mm/built-in.o section .text exceeds stub group size
ld: kernel/built-in.o section .text exceeds stub group size
ld: arch/powerpc/xmon/built-in.o section .text exceeds stub group size
ld: arch/powerpc/platforms/built-in.o section .text exceeds stub group size
ld: arch/powerpc/sysdev/built-in.o section .text exceeds stub group size
ld: arch/powerpc/mm/built-in.o section .text exceeds stub group size
ld: arch/powerpc/kernel/built-in.o section .text exceeds stub group size
ld: arch/powerpc/kernel/head_64.o section .text exceeds stub group size
drivers/built-in.o: In function `usb_cleanup':
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:846: relocation truncated to fit: R_PPC64_REL24 against symbol `.kfree' defined in .text section in mm/built-in.o
drivers/built-in.o: In function `get_icons':
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:692: relocation truncated to fit: R_PPC64_REL24 against symbol `.up_read' defined in .text section in kernel/built-in.o
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:699: relocation truncated to fit: R_PPC64_REL24 against symbol `.sprintf' defined in .text section in lib/lib.a(vsprintf.o)
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:703: relocation truncated to fit: R_PPC64_REL24 against symbol `.up_read' defined in .text section in kernel/built-in.o
drivers/built-in.o: In function `usb_disconnect':
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:858: relocation truncated to fit: R_PPC64_REL24 against symbol `.up_write' defined in .text section in kernel/built-in.o
drivers/built-in.o: In function `usb_make_path':
/tmp/linux-2.6.27-rc1/include/linux/usb.h:611: relocation truncated to fit: R_PPC64_REL24 against symbol `.snprintf' defined in .text section in lib/lib.a(vsprintf.o)
drivers/built-in.o: In function `usb_probe':
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:947: relocation truncated to fit: R_PPC64_REL24 against symbol `.strlcat' defined in .text section in lib/lib.a(string.o)
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:987: relocation truncated to fit: R_PPC64_REL24 against symbol `.sysfs_create_group' defined in .text section in fs/built-in.o
drivers/built-in.o: In function `input_open':
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:511: relocation truncated to fit: R_PPC64_REL24 against symbol `._mcount' defined in .text section in arch/powerpc/kernel/entry_64.o
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:525: relocation truncated to fit: R_PPC64_REL24 against symbol `.memset' defined in .text section in arch/powerpc/lib/built-in.o
drivers/built-in.o: In function `urb_irq_callback':
/tmp/linux-2.6.27-rc1/drivers/input/misc/yealink.c:427: additional relocation overflows omitted from the output
make: *** [.tmp_vmlinux1] Error 1

# ld -v
GNU ld version 2.17.50.0.6-5.el5 20061020

# gcc -v
Using built-in specs.
Target: ppc64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-secureplt --with-long-double-128 --host=ppc64-redhat-linux --build=ppc64-redhat-linux --target=ppc64-redhat-linux --with-cpu=default32
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
--
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config-ppc64-2.6.26.rc1-mm1
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080731/35534a73/attachment.asc>
Tony Breeds
2008-08-01 05:29:36 UTC
Permalink
Post by Kamalesh Babulal
Hi Andrew,
make allyesconfig with 2.6.27-rc1-mm1 kernel on powerpc fails with build error
<snip>

Turning off GCOV "fixes" this. Not really the best solution but at
least it narrows doen the search effort.

Peter,
Can you have a look at how this can be fixed, if at all?

Yours Tony

linux.conf.au http://www.marchsouth.org/
Jan 19 - 24 2009 The Australian Linux Technical Conference!
Andrew Morton
2008-08-01 06:12:06 UTC
Permalink
Post by Tony Breeds
Post by Kamalesh Babulal
Hi Andrew,
make allyesconfig with 2.6.27-rc1-mm1 kernel on powerpc fails with build error
<snip>
Turning off GCOV "fixes" this. Not really the best solution but at
least it narrows doen the search effort.
Thanks.
Post by Tony Breeds
Peter,
Can you have a look at how this can be fixed, if at all?
Am not terribly happy with the state of the gcov patches. They STILL
leave thousands of dead symlinks lying around after `make mrproper' and
generally seem to muck up the kbuild system a bit, although nothing
that a bit of Sam love wouldn't fix.

Plus it breaks the build on a few architectures (branch out of range,
mainly), but that's a fairly minor thing which could even be worked
around in Kconfig (disable the offending code if gcov is enabled)
Sam Ravnborg
2008-08-01 16:45:25 UTC
Permalink
Post by Andrew Morton
Am not terribly happy with the state of the gcov patches. They STILL
leave thousands of dead symlinks lying around after `make mrproper' and
generally seem to muck up the kbuild system a bit, although nothing
that a bit of Sam love wouldn't fix.
Have not had time / energy to get aroud to it.
Other things continue to pop up and time is limited at the moment
as in more limited than usual).

Sam
Kamalesh Babulal
2008-08-01 16:16:07 UTC
Permalink
Post by Tony Breeds
Post by Kamalesh Babulal
Hi Andrew,
make allyesconfig with 2.6.27-rc1-mm1 kernel on powerpc fails with build error
<snip>
Turning off GCOV "fixes" this. Not really the best solution but at
least it narrows doen the search effort.
Thanks, kernel compiles after turning off the GCOV profiling options.
Post by Tony Breeds
Peter,
Can you have a look at how this can be fixed, if at all?
Peter,
kindly let me know if you want me to test any test patches/fixes.
Post by Tony Breeds
Yours Tony
linux.conf.au http://www.marchsouth.org/
Jan 19 - 24 2009 The Australian Linux Technical Conference!
--
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.
Peter 1 Oberparleiter
2008-08-01 15:40:29 UTC
Permalink
On Fri, 1 Aug 2008 15:29:36 +1000 Tony Breeds <tony at bakeyournoodle.com>
Post by Tony Breeds
Post by Kamalesh Babulal
Hi Andrew,
make allyesconfig with 2.6.27-rc1-mm1 kernel on powerpc fails
with build error
<snip>
Turning off GCOV "fixes" this. Not really the best solution but at
least it narrows doen the search effort.
Thanks.
Post by Tony Breeds
Peter,
Can you have a look at how this can be fixed, if at all?
Am not terribly happy with the state of the gcov patches. They STILL
leave thousands of dead symlinks lying around after `make mrproper'
This is caused by patch

gcov-create-links-to-gcda-files-in-build-directory.patch

which can be simply removed as it is no longer needed since patch

gcov-add-gcov-profiling-infrastructure-revert-link-changes.patch

has been added to -mm.
and
generally seem to muck up the kbuild system a bit, although nothing
that a bit of Sam love wouldn't fix.
Hm, by now the only change to kbuild is the addition of gcc options
-fprofile-arcs/-ftest-coverage depending on the respective config
symbols. If there is anything else that should be changed, please
let me know.
Plus it breaks the build on a few architectures (branch out of range,
mainly), but that's a fairly minor thing which could even be worked
around in Kconfig (disable the offending code if gcov is enabled)
Some of the problems caused/uncovered by enabling gcov profiling for
a kernel build on some architectures simply cannot be fixed by a change
to the kernel patch itself. I'm wondering if it would be possible
to disable this configuration option when specifying allyesconfig. That
way at least generic testing wouldn't be affected.


Regards,
Peter
Peter 1 Oberparleiter
2008-08-01 15:44:07 UTC
Permalink
Post by Kamalesh Babulal
Post by Kamalesh Babulal
Hi Andrew,
make allyesconfig with 2.6.27-rc1-mm1 kernel on powerpc fails with
build error
<snip>
Turning off GCOV "fixes" this. Not really the best solution but at
least it narrows doen the search effort.
Peter,
Can you have a look at how this can be fixed, if at all?
I did some testing with a cross-compiler myself and I don't think
there is a general solution to this problem. It's not one particular
file that is causing the problem but seemingly the sheer size of the
resulting vmlinux file - even though the toal vmlinux.o size is
"merely" up about 100MiB (from around 1,03Gib to 1,13Gib).

I think I'll need help from people with knowledge of the powerpc
toolchain here.


Regards,
Peter

Continue reading on narkive:
Loading...