This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Major bug -- Exception handling broken
- To: "Parker, Ron" <rdparker at butlermfg dot com>, <cygwin at sourceware dot cygnus dot com>
- Subject: Re: Major bug -- Exception handling broken
- From: "Ross Smith" <ross dot s at ihug dot co dot nz>
- Date: Thu, 1 Jun 2000 10:54:13 +1200
- References: <E12xGdc-0002uy-00@mx1.ihug.co.nz>
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