From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dcd6a6bea1586410 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-05 18:35:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!144.212.100.101.MISMATCH!newsfeed!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!news-west.rr.com!cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!twister.neo.rr.com.POSTED!not-for-mail Subject: Re: gcc 3.2.3 and trancendental functions From: jim hopper Newsgroups: comp.lang.ada Message-ID: <050520032134372707%hopperj@macconnect.com> References: <030520030858096351%hopperj@macconnect.com> <3EB6A8DD.D67AF5F9@raytheon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: Thoth/1.6.0 (Carbon/OS X) Date: Tue, 06 May 2003 01:43:06 GMT NNTP-Posting-Host: 24.166.209.22 X-Complaints-To: abuse@rr.com X-Trace: twister.neo.rr.com 1052185386 24.166.209.22 (Mon, 05 May 2003 21:43:06 EDT) NNTP-Posting-Date: Mon, 05 May 2003 21:43:06 EDT Organization: Road Runner High Speed Online -- Northeast Ohio Xref: archiver1.google.com comp.lang.ada:36996 Date: 2003-05-06T01:43:06+00:00 List-Id: Mark, i don't have a support contract, they want to much money for my small project. :-( your supported 5.0 is i am sure far in advance of the 3.2 version available with redhat. i found reference to the problem and a proposed fix, but the easiest fix would appear to be to just go to 3.3 which i did and it does fix the problem, but it has other problems. jim In article <3EB6A8DD.D67AF5F9@raytheon.com>, Mark Johnson wrote: > jim hopper wrote: > > > > We have a problem. we have a couple new linux boxes. one is red hat 8, > > the other in 9.0. when i try to run our radar sim it hangs. finally > > traced it down to a problem with sin/cos etc. so i created a little > > program that just calls cosine with 45" (tried both degrees version > > and radians. the cos returns NAN. [attempts snipped] > > > > Does anyone have any insight into why transendentals fail on gcc 3.2.3 > > compiler?? > > Hmm. I'm running with the new compiler and have not seen any problems > like that. I tried both: > cos(45.0, 360.0); > and > cos(pi*45.0/180.0); > with a test program and both yield > 7.07107E-01 > as expected. > > This is with GNAT 5.00a (an ACT supported GCC 3 version) and Red Hat 7.3 > (w/ a custom 2.4.20 kernel). Unless your test program does something > significantly different, I don't understand the problem. Perhaps you can > post the test program? > > It may be more dependent on the changes Red Hat put into the RH 9 > release. I know glibc has a number of significant changes - perhaps > something there is a problem. You may also want to check Bugzilla at Red > Hat to see if other people are having problems w/ numeric functions. > > Another thought - when you built on RH 8 and moved it to RH 9, was the > application built with the static libraries? If not, I suggest you try > that as well. > > --Mark