delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/12/20:15:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "James W. McKelvey" <mckelvey AT maskull DOT com>
Reply-To: mckelvey AT maskull DOT com
To: Danny Smith <dannysmith AT users DOT sourceforge DOT net>,
Danny Smith <dannysmith AT clear DOT net DOT nz>, Cygwin <cygwin AT cygwin DOT com>
Subject: Re: Segmentation faults with g++ 4.0
Date: Sun, 12 Dec 2004 17:13:02 -0800
Cc: mckelvey AT maskull DOT com
References: <000f01c4e0a6$5c015280$a54861cb AT DANNY>
In-Reply-To: <000f01c4e0a6$5c015280$a54861cb@DANNY>
MIME-Version: 1.0
Message-Id: <04121217130200.28365@alpha1>
X-IsSubscribed: yes

On Sunday 12 December 2004 15:57 pm, Danny Smith wrote:
> James W. McKelvey wrote:
> > I installed CYGWIN_NT-5.1 a few days ago and then built g++ from the
>
> latest
>
> > CVS. Simple programs like the one below will compile and link, but
>
> then get
>
> > segmentation faults in pthread_specific on execution:
> >
> > #include <locale>
> > #include <iostream>
> >
> > static const std::locale l;
> > //static std::ostream&     o = std::cerr;
> >
> > int main(const int,
> >          const char * const * const)
> > {
> >     return 0;
> > }
> >
> > Is this a known bug? The c++ that comes with Cygwin is way too old to
>
> compile
>
> > my code; I need at least 3.4.
>
> GCC-4.0.0 (C++) is very broken on cygwin.
> Have a look at test results, here:
>
> http://gcc.gnu.org/ml/gcc-testresults/2004-12/msg00544.html
>
> There is a problem with pthreads and the recently added weak-linkage
> support for windows targets.
>
> But I'm glad to see someone is keen enough to test the bleeding edge.
> Care to submit a bug report?
>
> http://gcc.gnu.org/bugzilla
>
> Danny

Thanks, Danny, I'll submit a bug report to GNU. I would have done that 
initially, except I'm pretty sure that pthread_getspecific is in a Cygwin 
dll, not part of g++. Also, g++ 4.0 is pretty solid on Alpha and Sun, at 
least for my code.




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019