I am trying to build the toolchain with set gcc-3.4.3, glibc2.3.3 and kernel header 2.4.31 for sh4 platform. While building glibc i am facing following problem, make -s -C nptl subdir_lib make[2]: Entering directory `/home/vijayr/WORKSHORE/rpm_build/BUILD/glibc-2.3.3/nptl' mkdir /home/vijayr/WORKSHORE/rpm_build/BUILD/glibc-2.3.3/build-sh4-linux-nptl/nptl make[2]: Leaving directory `/home/vijayr/WORKSHORE/rpm_build/BUILD/glibc-2.3.3/nptl' make[2]: Entering directory `/home/vijayr/WORKSHORE/rpm_build/BUILD/glibc-2.3.3/nptl' ../nptl/sysdeps/unix/sysv/linux/register-atfork.c: In function `__register_atfork': ../nptl/sysdeps/unix/sysv/linux/register-atfork.c:88: warning: unused variable `val' ../nptl/sysdeps/unix/sysv/linux/register-atfork.c: In function `free_mem': ../nptl/sysdeps/unix/sysv/linux/register-atfork.c:115: warning: unused variable `val' ../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: In function `__unregister_atfork': ../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c:57: warning: unused variable `val' ../nptl/sysdeps/unix/sysv/linux/register-atfork.c: In function `__register_atfork': ../nptl/sysdeps/unix/sysv/linux/register-atfork.c:88: warning: unused variable `val' ../nptl/sysdeps/unix/sysv/linux/register-atfork.c: In function `free_mem': ../nptl/sysdeps/unix/sysv/linux/register-atfork.c:115: warning: unused variable `val' ../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: In function `__unregister_atfork': ../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c:57: warning: unused variable `val' init.c:53:3: #error "define __NR_set_tid_address" init.c: In function `__pthread_initialize_minimal_internal': init.c:216: error: `__NR_set_tid_address' undeclared (first use in this function) init.c:216: error: (Each undeclared identifier is reported only once init.c:216: error: for each function it appears in.) make[2]: *** [/home/vijayr/WORKSHORE/rpm_build/BUILD/glibc-2.3.3/build-sh4-linux-nptl/nptl/init.o] Error 1 make[2]: Leaving directory `/home/vijayr/WORKSHORE/rpm_build/BUILD/glibc-2.3.3/nptl' make[1]: *** [nptl/subdir_lib] Error 2 make[1]: Leaving directory `/home/vijayr/WORKSHORE/rpm_build/BUILD/glibc-2.3.3' make: *** [all] Error 2
*** This bug has been marked as a duplicate of 333 ***