X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0	tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_NEUTRAL,TW_CX,TW_JL
X-Spam-Check-By: sourceware.org
Message-ID: <5122178E.20705@cs.utoronto.ca>
Date: Mon, 18 Feb 2013 06:59:10 -0500
From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Weird threading / __thread behavior
References: <loom.20130218T042711-4@post.gmane.org>
In-Reply-To: <loom.20130218T042711-4@post.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 17/02/2013 10:38 PM, Zach Saw wrote:
> The following test case fails on Cygwin but passes on Linux (both tested using
> GCC 4.7.2).
Cygwin doesn't have a gcc-4.7.2 package yet (not even for testing); 
4.5.3 is the highest I see this morning in setup.exe.

If you got it from ports, you need to ping their mailing list. If you 
built it yourself, we'll need to know how you built it.

Meanwhile, WJJFM with my home-brew 4.7.1:
> ../src/gcc-4.7.1/configure --prefix=/home/Ryan/apps/gcc-4.7 
> --enable-bootstrap --enable-version-specific-runtime-libs 
> --enable-static --enable-shared --enable-shared-libgcc 
> --disable-__cxa_atexit --with-dwarf2 --disable-sjlj-exceptions 
> --enable-languages=c,c++,lto --enable-lto --enable-libssp 
> --enable-threads=posix

Note 1: I've had TLS problems in the past, usually caused by my gcc-4.7 
install colliding with the cygwin 4.5.3 install (that 
--enable-version-specific-runtime-libs configure flag is really important).

Note 2: I got the above configure incantation by passing -v to cygwin's 
official gcc (I figure they know what they're doing).

Ryan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

