Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <008501bfcb53$27bac960$a8a11dcb@ihug.co.nz>
From: "Ross Smith" <ross.s@ihug.co.nz>
To: "Parker, Ron" <rdparker@butlermfg.com>, <cygwin@sourceware.cygnus.com>
References: <E12xGdc-0002uy-00@mx1.ihug.co.nz>
Subject: Re: Major bug -- Exception handling broken
Date: Thu, 1 Jun 2000 10:54:13 +1200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

From: "Parker, Ron" <rdparker@butlermfg.com>
> 
> My hunch about the specs file was wrong.  There are no entries related to
> g++.  However I did track this down to a problem with g++ using libm.a.
> 
> [snip]
> 
> gcc -v foo.cpp -o foo -lstd++ (OKAY)
> gcc -v foo.cpp -o foo -lstd++ -lm(BAD)
> gcc -v foo.cpp -o foo -lm (BAD)
> 
> So the problem seems to be with libm.a.  

Cygwin's libm.a is a symlink to libcygwin.a. I'll try replacing it
with a dummy stub library ... <tries it> ... nope, that made ld crash.

> I did a little more looking around and discovered that g++ should not be
> linking against -lm.  So, I came up with the following patch that at least
> make g++ able to compile a working version of the trivial test listed above.
> It looks like a previous patch of Mumit's may have gotten dropped.
> 
> If you cannot rebuild gcc, I can email a stripped and gzip'd version of the
> fixed g++. It is only 29,995 bytes.

That would be good. Thanks for all your help!

-- 
Ross Smith <ross.s@ihug.co.nz> The Internet Group, Auckland, New Zealand
========================================================================
   "So that's 2 T-1s and a newsfeed ... would you like clues with that?"
                                                       -- Peter Da Silva




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

