X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4E6994B8.5080600@gmail.com>
Date: Fri, 09 Sep 2011 05:23:20 +0100
From: Dave Korn <dave.korn.cygwin@gmail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: stable compiler package gcc4-4.5.3-2
References: <announce.4E60524C.2000401@gmail.com>	 <4E667838.4020004@prager.ws> <1315344479.3736.49.camel@YAAKOV04> <4E68EE66.9020709@prager.ws>
In-Reply-To: <4E68EE66.9020709@prager.ws>
Content-Type: text/plain; charset=UTF-8
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 08/09/2011 17:33, Bernd Prager wrote:
> On 9/6/2011 5:27 PM, Yaakov (Cygwin/X) wrote:
>> On Tue, 2011-09-06 at 15:44 -0400, Bernd Prager wrote:
>>> I recompiled the recent boost libraries with the new gcc-4 package.
>>>
>>> The thread example fails with:
>>>
>>> $ g++ thread.cpp -L /usr/local/lib -lboost_thread
>>> /tmp/cccfCagO.o:thread.cpp:(.text+0xa4): undefined reference to
>>> `__Unwind_Resume'
>> There will be new boost packages soon built for gcc-4.5.

> Yaakov,
> 
> Are you certain this is a boost issue?
> 
> _Unwind_Resume resumes propagation of an existing exception object and I
> think should be a part of the c++ standard library.

  It is part of libgcc:

> $ nm /usr/lib/gcc/i686-pc-cygwin/4.5.3/libgcc_s.dll.a | grep __Unwind_Resume
> 00000000 T __Unwind_Resume_or_Rethrow
> 00000000 I __imp___Unwind_Resume_or_Rethrow
> 00000000 T __Unwind_Resume
> 00000000 I __imp___Unwind_Resume
> 
> $ nm /usr/lib/gcc/i686-pc-cygwin/4.5.3/libgcc_eh.a | grep __Unwind_Resume
> 00001f10 T __Unwind_Resume
> 00001fd0 T __Unwind_Resume_or_Rethrow
> 
> $

  Adding "-v -Wl,--verbose" to the command line should give us an idea why the
link is failing for you.  I'm also leaving a build of boost running overnight
to see if I can reproduce the problem.

    cheers,
      DaveK


--
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

