Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <008501bfcb53$27bac960$a8a11dcb@ihug.co.nz> From: "Ross Smith" To: "Parker, Ron" , References: 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" > > 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 ... ... 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 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 AT sourceware DOT cygnus DOT com