>=2.6.17-rc4-mm1 kernel compilation problem (relocation truncated to fit)
I am getting compilation errors for 2.6.17-rc5-mm1 all the way back to 2.6.17-rc4-mm1. Kernel 2.6.17-rc3-mm1 compiles better for me (I get the undefined reference to __udivdi3 error that has been reported previously). Here are the errors that I get for 2.6.17-rc5-mm1:
... (previous output snipped)
KLIBCCC usr/kinit/ipconfig/main.o
KLIBCCC usr/kinit/ipconfig/netdev.o
KLIBCCC usr/kinit/ipconfig/packet.o
KLIBCCC usr/kinit/ipconfig/dhcp_proto.o
KLIBCCC usr/kinit/ipconfig/bootp_proto.o
LD usr/kinit/ipconfig/lib.a
KLIBCLD usr/kinit/ipconfig/static/ipconfig
KLIBCLD usr/kinit/ipconfig/shared/ipconfigusr/kinit/ipconfig/main.o: In function `complete_device':
main.c:(.text+0x6c): relocation truncated to fit: R_PPC_REL24 against symbol inet_ntoa' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0x84): relocation truncated to fit: R_PPC_REL24 against symbol printf' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0xac): relocation truncated to fit: R_PPC_REL24 against symbol inet_ntoa' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0xc4): relocation truncated to fit: R_PPC_REL24 against symbol printf' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0xe4): relocation truncated to fit: R_PPC_REL24 against symbol inet_ntoa' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0xfc): relocation truncated to fit: R_PPC_REL24 against symbol printf' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0x134): relocation truncated to fit: R_PPC_REL24 against symbol printf' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0x158): relocation truncated to fit: R_PPC_REL24 against symbol printf' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0x17c): relocation truncated to fit: R_PPC_REL24 against symbol printf' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0x19c): relocation truncated to fit: R_PPC_REL24 against symbol snprintf' defined in .text section in /usr/src/linux-2.6.17-rc5-mm1/usr/klibc/libc.so main.c:(.text+0x1ac): additional relocation overflows omitted from the output
make[3]: *** [usr/kinit/ipconfig/shared/ipconfig] Error 1 make[2]: *** [usr/kinit/ipconfig] Error 2
make[1]: *** [_usr_kinit] Error 2
make: *** [usr] Error 2
I assume that the errors I am seeing are regarding the klibc changes that went into 2.6.17-rc4-mm1 (and apparently no one else is seeing these errors as I would think that I would have found them reported somewhere). I am running a gentoo system on an eMac 7450 PowerPC. Here's my gcc info:
# gcc -v Reading specs from /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.5/specs Configured with: /var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/configure --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/3.4.5 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.5/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.4.5 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.4.5/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/3.4.5/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.5/include/g++-v3 --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --enable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
Need anything else? Can anyone offer some help or ideas? Thanks, nathanp.
(please cc me on responses)
Quoted 5 lines · Nathan Pilatzke
I am getting compilation errors for 2.6.17-rc5-mm1 all the way back to 2.6.17-rc4-mm1. Kernel 2.6.17-rc3-mm1 compiles better for me (I get the undefined reference to
__udivdi3error that has been reported previously). Here are the errors that I get for 2.6.17-rc5-mm1:
Could you try the following patch?
-hpa
usr/klibc/arch/ppc/MCONFIG +2 -2
@@ -13,9 +13,9 @@ KLIBCBITSIZE = 32 # Extra linkflags when building the shared version of the library # This address needs to be reachable using normal inter-module # calls, and work on the memory models for this architecture -# 256-16 MB - normal binaries start at 256 MB, and jumps are limited +# 256-8 MB - normal binaries start at 256 MB, and jumps are limited # to +/- 16 MB -KLIBCSHAREDFLAGS = -Ttext 0x0f000200 +KLIBCSHAREDFLAGS = -Ttext 0x0f800200 # The kernel so far has both asm-ppc* and asm-powerpc. KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)arch/$(KLIBCARCH)/include
Applied the patch, did a 'make clean' and 'make'. The patch had no effect for me, exact same errors.
Quoted 30 lines · H. Peter Anvin
Quoted 5 lines · Nathan Pilatzke
I am getting compilation errors for 2.6.17-rc5-mm1 all the way back to 2.6.17-rc4-mm1. Kernel 2.6.17-rc3-mm1 compiles better for me (I get the undefined reference to
__udivdi3error that has been reported previously). Here are the errors that I get for 2.6.17-rc5-mm1:Could you try the following patch?
-hpa
------------------------------------------------------------------------
usr/klibc/arch/ppc/MCONFIG +2
-2@@ -13,9 +13,9 @@ KLIBCBITSIZE = 32 # Extra linkflags when building the shared version of the library # This address needs to be reachable using normal inter-module # calls, and work on the memory models for this architecture -# 256-16 MB - normal binaries start at 256 MB, and jumps are limited +# 256-8 MB - normal binaries start at 256 MB, and jumps are limited # to +/- 16 MB -KLIBCSHAREDFLAGS = -Ttext 0x0f000200 +KLIBCSHAREDFLAGS = -Ttext 0x0f800200 # The kernel so far has both asm-ppc* and asm-powerpc. KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)arch/$(KLIBCARCH)/include