From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5228 invoked by alias); 6 Jun 2014 14:20:15 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 5218 invoked by uid 89); 6 Jun 2014 14:20:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Jun 2014 14:20:13 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s56EKB49009847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Jun 2014 10:20:11 -0400 Received: from host2.jankratochvil.net (ovpn-116-48.ams2.redhat.com [10.36.116.48]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s56EK7Cn003767 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Fri, 6 Jun 2014 10:20:10 -0400 Date: Fri, 06 Jun 2014 14:20:00 -0000 From: Jan Kratochvil To: Yao Qi Cc: gdb-patches@sourceware.org, Sergio Durigan Junior Subject: Re: [patch] Fix TLS access for -static -pthread Message-ID: <20140606142007.GA5187@host2.jankratochvil.net> References: <20140410115204.GB16411@host2.jankratochvil.net> <539018F9.5060307@codesourcery.com> <20140605080639.GA32146@host2.jankratochvil.net> <5391289F.7050109@codesourcery.com> <53915C44.3010904@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53915C44.3010904@codesourcery.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00327.txt.bz2 On Fri, 06 Jun 2014 08:14:28 +0200, Yao Qi wrote: > On 06/06/2014 10:34 AM, Yao Qi wrote: > > My machine is Fedora 20 x86, and staticthreads.c can't be compiled > > like this: > > > > Executing on host: gcc > > ../../../../git/gdb/testsuite/gdb.threads/staticthreads.c -static > > -DHAVE_TLS -g -lpthread -lm -o > > /home/yao/Source/gnu/gdb/build-git/x86/gdb/testsuite/gdb.threads/staticthreads > > (timeout = 300) > > spawn -ignore SIGHUP gcc > > ../../../../git/gdb/testsuite/gdb.threads/staticthreads.c -static > > -DHAVE_TLS -g -lpthread -lm -o > > /home/yao/Source/gnu/gdb/build-git/x86/gdb/testsuite/gdb.threads/staticthreads^M > > /usr/bin/ld: cannot find -lpthread^M > > /usr/bin/ld: cannot find -lm^M > > /usr/bin/ld: cannot find -lc^M > > collect2: error: ld returned 1 exit status^M > > compiler exited with status 1 > > output is: > > /usr/bin/ld: cannot find -lpthread^M > > /usr/bin/ld: cannot find -lm^M > > /usr/bin/ld: cannot find -lc^M > > collect2: error: ld returned 1 exit status^M > > Installed glibc-static on my machine, then it is compiled successfully. Therefore considering the current FSF GDB state as correct. Jan