From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18591 invoked by alias); 6 Jun 2014 05:34:26 -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 18580 invoked by uid 89); 6 Jun 2014 05:34:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 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 05:34:24 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s565YLYq027202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Jun 2014 01:34:22 -0400 Received: from psique (ovpn-113-28.phx2.redhat.com [10.3.113.28]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s565YIAS019332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 6 Jun 2014 01:34:20 -0400 From: Sergio Durigan Junior To: Jan Kratochvil Cc: Yao Qi , gdb-patches@sourceware.org Subject: Re: [patch] Fix TLS access for -static -pthread References: <20140410115204.GB16411@host2.jankratochvil.net> <539018F9.5060307@codesourcery.com> <20140605080639.GA32146@host2.jankratochvil.net> X-URL: http://www.redhat.com Date: Fri, 06 Jun 2014 05:34:00 -0000 In-Reply-To: <20140605080639.GA32146@host2.jankratochvil.net> (Jan Kratochvil's message of "Thu, 5 Jun 2014 10:06:39 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00298.txt.bz2 On Thursday, June 05 2014, Jan Kratochvil wrote: >> Is it good to you? b.t.w, this case is UNSUPPORTED on FC 20, because >> staticthreads.c can't be compiled. I guess this case requires >> some recent version of glibc. > > 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. > > Sergio said he saw some problem with mktemp symbol on some Fedora but I do not > have that reproducible so I cannot fix it. I saw this: Executing on host: gcc ../../../gdb/testsuite/gdb.threads/staticthreads.c -static -DHAVE_TLS -g -lpthread -lm -o /patch/to/gdb/testsuite/gdb.threads/staticthreads (timeout = 300) spawn -ignore SIGHUP gcc ../../../gdb/testsuite/gdb.threads/staticthreads.c -static -DHAVE_TLS -g -lpthread -lm -o /patch/to/gdb/testsuite/gdb.threads/staticthreads^M /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':^M (.text+0x774d): warning: the use of `mktemp' is dangerous, better use `mkstemp'^M output is: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':^M (.text+0x774d): warning: the use of `mktemp' is dangerous, better use `mkstemp'^M This is on RHEL-6.5, with gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4). I had to do a small workaround in gdb_compile_pthreads (from testsuite/lib/gdb.exp) in order to make the compilation succeed. -- Sergio GPG key ID: 65FC5E36 Please send encrypted e-mail if possible http://blog.sergiodj.net/