From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19094 invoked by alias); 6 Jun 2014 02:36:10 -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 19079 invoked by uid 89); 6 Jun 2014 02:36:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Jun 2014 02:36:08 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Wsk0i-0001SR-Rw from Yao_Qi@mentor.com ; Thu, 05 Jun 2014 19:36:04 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 5 Jun 2014 19:36:04 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Thu, 5 Jun 2014 19:36:03 -0700 Message-ID: <5391289F.7050109@codesourcery.com> Date: Fri, 06 Jun 2014 02:36:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Jan Kratochvil CC: , Sergio Durigan Junior Subject: Re: [patch] Fix TLS access for -static -pthread References: <20140410115204.GB16411@host2.jankratochvil.net> <539018F9.5060307@codesourcery.com> <20140605080639.GA32146@host2.jankratochvil.net> In-Reply-To: <20140605080639.GA32146@host2.jankratochvil.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00296.txt.bz2 On 06/05/2014 04:06 PM, Jan Kratochvil wrote: > I do not see any unsupported case on > * Fedora 20 x86_64 updates-testing disabled with debuginfos > * Fedora 20 x86_64 updates-testing enabled with debuginfos > * Fedora 20 x86_64 updates-testing enabled without debuginfos > * Fedora Rawhide x86_64 with debuginfos > for both nat and gdbserver runs. 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 Executing on host: gcc ../../../../git/gdb/testsuite/gdb.threads/staticthreads.c -static -DHAVE_TLS -g -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 -lm -o /home/yao/Source/gnu/gdb/build-git/x86/gdb/testsuite/gdb.threads/staticthreads^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 -lm^M /usr/bin/ld: cannot find -lc^M collect2: error: ld returned 1 exit status My glibc version is 2.18 12.fc20 and gcc version is 4.8.2 7.fc20. -- Yao (齐尧)