Bug 6398

Summary: "make check" error encountered in glibc-2.7
Product: glibc Reporter: Suma Sharma <suma.sharma>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED DUPLICATE    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: i686-pc-linux-gnu Target: sh4-unknown-linux-gnu
Build: i686-pc-linux-gnu Last reconfirmed:

Description Suma Sharma 2008-04-14 10:51:16 UTC
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.      
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Ulrich Drepper 2008-04-14 14:04:19 UTC

*** This bug has been marked as a duplicate of 333 ***