Subject: [BUILD-FAILURE] 2.6.27-rc1-mm1 - allyesconfig build fails on powerpc

From: Kamalesh Babulal <[email-masked]>
Date: Thu, 31 Jul 2008 18:13:28 +0530

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.