Hi, I am building a Linux based toolchain for SH4 target using GCC-4.2.2 and Glibc- 2.7. After compiling the glibc using the "make" command, I ran “make check” but it gave me the following error--- 1) /var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux- gnu/glibc-2.7/work/build-default-sh4-unknown-linux-gnu-nptl/elf/tst-tls1- static.o: In function `do_test': /var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux- gnu/glibc-2.7/work/glibc-2.7/elf/tst-tls1.c:48: undefined reference to `__tls_get_addr' /var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux- gnu/glibc-2.7/work/glibc-2.7/elf/tst-tls1.c:49: undefined reference to `__tls_get_addr' /var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux- gnu/glibc-2.7/work/glibc-2.7/elf/tst-tls1.c:66: undefined reference to `__tls_get_addr' /var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux- gnu/glibc-2.7/work/glibc-2.7/elf/tst-tls1.c:67: undefined reference to `__tls_get_addr' collect2: ld returned 1 exit status The above mentioned error occurs for the following testcases, "elf/tst-tls1.c" "elf/tst-tls2.c" 2) /var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4-unknown-linux- gnu/glibc-2.7/work/build-default-sh4-unknown-linux-gnu-nptl/dlfcn/bug- atexit3-lib.os: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[2]: *** [/var/tmp/cross/sh4-unknown-linux-gnu/portage/cross-sh4- unknown-linux-gnu/glibc-2.7/work/build-default-sh4-unknown-linux-gnu- nptl/dlfcn/bug-atexit3-lib.so] Error 1 Any help would be appreciated. Regards, Suma Sharma KPIT Cummins Infosystems Ltd, Pune (INDIA) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Free download of GNU based SH-Linux toolchains for Renesas' SH Series. The following site also offers free technical support to its users. Visit http://www.kpitgnutools.com for details. Latest versions of KPIT GNU SH-Linux tools were released on October 19, 2007. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** This bug has been marked as a duplicate of 333 ***