cross-emerging a new sh4 toolchain with linux-headers-2.6.20 + glibc-2.5 breaks with this error: In file included from /usr/sh4-unknown-linux-gnu/usr/include/asm/user.h:5, from ../sysdeps/unix/sysv/linux/sh/sys/user.h:24, from ../sysdeps/unix/sysv/linux/sh/sys/procfs.h:31, from ../nptl/../nptl_db/thread_db.h:29, from ../nptl/descr.h:33, from ../nptl/sysdeps/sh/tls.h:86, from ../include/tls.h:6, from ../sysdeps/unix/sysv/linux/sh/sysdep.h:27, from ../sysdeps/unix/sysv/linux/sh/sh4/sysdep.h:4, from <stdin>:1: /usr/sh4-unknown-linux-gnu/usr/include/asm/page.h:24:3: error: #error "Bogus kernel page size?" make[2]: *** [/var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux-gnu/glibc-2.5/work/build-default-sh4-unknown-linux-gnu-nptl/tcb-offsets.h] Error 1 make[2]: Leaving directory `/var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux-gnu/glibc-2.5/work/glibc-2.5/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux-gnu/glibc-2.5/work/glibc-2.5' make: *** [all] Error 2 It is okay to "#if 0" the whole contents of the /usr/sh4-unknown-linux-gnu/usr/include/asm/page.h file, the cross toolchain builds (and works) fine. Reproducible: Always Steps to Reproduce: 1. crossdev -t sh4 --b 2.17 --g 4.1.2 --k 2.6.20 --l 2.5 2. 3.
ive fixed this in 2.6.20-r1