The attached patch allows to build klibc-1.1.1 against kernel 2.6.14, that moves some includes from asm-ppc{,64} to asm-powerpc, and then symlinks in ppc{,64}/include the other directory. HTH, Diego
Created attachment 73029 [details, diff] klibc-1.1.1-ppc-2.6.14.patch
thx diego, i had trouble compiling splashutils becuase of klibc-1.1.1 failing here on my ppc32 machine and 2.6.14-gentoo-r7 kernel... i added your patch to the .ebuild in my overlay and everything compiled fine! i think this patch should really be added to the ebuild because klibc now simply doesn't work with 2.6.14 kernels and i guess that 2.6.15 will handle includes more like 2.6.14 than <2.6.14 and thus also breaking the compile... perhaps someone running 2.6.15 on ppc could verify this... :) steffen (In reply to comment #0) > The attached patch allows to build klibc-1.1.1 against kernel 2.6.14, that > moves some includes from asm-ppc{,64} to asm-powerpc, and then symlinks in > ppc{,64}/include the other directory. > > HTH, > Diego
Compiling against 2.6.15, klibc-1.1.1-ppc-2.6.14.patch seems to improve the situation but we still hit: gcc -Wp,-MT,fork.o,-MD,./.fork.o.d -Os -D__KLIBC__=1 -D__KLIBC_MINOR__=1 -nostdlib -nostd inc -iwithprefix include -I../include/arch/ppc -I../include/bits32 -I../include -I/usr/src /linux/include -I/usr/src/linux/include2 -I../linux/include -I/usr/src/linux/arch/ppc/incl ude -I./zlib -I./zlib -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-pro totypes -Winline -DDYNAMIC_CRC_TABLE -c -o fork.o fork.c In file included from ../include/signal.h:13, from fork.c:9: /usr/src/linux/arch/ppc/include/asm/signal.h:14: error: ‘BITS_PER_LONG’ undeclared here (n ot in a function)
(In reply to comment #3) > Compiling against 2.6.15, klibc-1.1.1-ppc-2.6.14.patch seems to improve the > situation but we still hit: > > gcc -Wp,-MT,fork.o,-MD,./.fork.o.d -Os -D__KLIBC__=1 -D__KLIBC_MINOR__=1 > -nostdlib -nostd inc -iwithprefix include -I../include/arch/ppc > -I../include/bits32 -I../include -I/usr/src /linux/include > -I/usr/src/linux/include2 -I../linux/include -I/usr/src/linux/arch/ppc/incl ude > -I./zlib -I./zlib -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings > -Wstrict-pro totypes -Winline -DDYNAMIC_CRC_TABLE -c -o fork.o fork.c > In file included from ../include/signal.h:13, > from fork.c:9: > /usr/src/linux/arch/ppc/include/asm/signal.h:14: error: > ‘BITS_PER_LONG’ undeclared here (n ot in a function) See this Forum and my stupid work-around way. http://forums.gentoo.org/viewtopic-t-423933.html
hi, klibc-1.1.16 compiled fine against gentoo-sources 2.6.15-r1 on ppc32! steffen (In reply to comment #4) > (In reply to comment #3) > > Compiling against 2.6.15, klibc-1.1.1-ppc-2.6.14.patch seems to improve the > > situation but we still hit: > > > > gcc -Wp,-MT,fork.o,-MD,./.fork.o.d -Os -D__KLIBC__=1 -D__KLIBC_MINOR__=1 > > -nostdlib -nostd inc -iwithprefix include -I../include/arch/ppc > > -I../include/bits32 -I../include -I/usr/src /linux/include > > -I/usr/src/linux/include2 -I../linux/include -I/usr/src/linux/arch/ppc/incl ude > > -I./zlib -I./zlib -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings > > -Wstrict-pro totypes -Winline -DDYNAMIC_CRC_TABLE -c -o fork.o fork.c > > In file included from ../include/signal.h:13, > > from fork.c:9: > > /usr/src/linux/arch/ppc/include/asm/signal.h:14: error: > > ‘BITS_PER_LONG’ undeclared here (n ot in a function) > See this Forum and my stupid work-around way. > http://forums.gentoo.org/viewtopic-t-423933.html >
(In reply to comment #5) > klibc-1.1.16 compiled fine against gentoo-sources 2.6.15-r1 on ppc32! Good to hear, I didn't know that. Then, should this bug be closed?
(In reply to comment #6) > Then, should this bug be closed? We don't have any other chance on ppc ;-) I verified the correct build and marked stable. So, this bug could be closed.