home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 12975 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  2.1 KB

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!darwin.sura.net!jvnc.net!princeton!bessel!mikulska
  2. From: mikulska@bessel.Princeton.EDU (Margaret Mikulska)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: gcc2.2.2 on Iris Crimson (HELP!)
  5. Message-ID: <1992Aug27.155700.9756@Princeton.EDU>
  6. Date: 27 Aug 92 15:57:00 GMT
  7. References: <TOTSUKA.92Aug27145458@avaia.av.crl.sony.co.jp> <1992Aug27.131203.11184@dcs.warwick.ac.uk>
  8. Sender: news@Princeton.EDU (USENET News System)
  9. Distribution: comp
  10. Organization: Princeton University
  11. Lines: 30
  12. Originator: news@nimaster
  13. Nntp-Posting-Host: bessel.princeton.edu
  14.  
  15. In article <1992Aug27.131203.11184@dcs.warwick.ac.uk> steve@maths.warwick.ac.uk (Steve Rumsby) writes:
  16. >In article <TOTSUKA.92Aug27145458@avaia.av.crl.sony.co.jp>, totsuka@av.crl.sony.co.jp (Takashi Totsuka) writes:
  17. >> 
  18. >>     Is there anyone who has successfully installed GCC(G++)2.2.2 and
  19. >>     libg++2.2.2 on IRIS Crimson ?
  20. >> 
  21. >>     I am having a strange problem with one of the test program
  22. >>     (tComplex.cc).  The sqrt() method of Complex class returns
  23. >>     different value each time it is called with the same constant
  24. >>     arguments...  Specifying -mcpu=r4000 didn't help.
  25. >> 
  26. >>     I appreciate any suggestions. Thanks in advance.
  27. >>
  28. >Same things happens on a R3000 Indigo too. I finally trace the problem
  29. >to the hypot function in the C library (SGI's library, not glibc) which
  30. >was returning bizarre results, but only after printing a double on cout!
  31. >I couldn't see any way that these two functions could interfere with
  32. >each other, so I gave up at that point. If anybody has any ideas about
  33. >what might be going on, I'd love to hear them.
  34.  
  35. I assume you mean the math library, since math functions in C require
  36. linking with libmath.a, and that you mean the hypotenuse in a right-angled
  37. triangle.  Some 6 years ago we were doing some programming on a 3130,
  38. and we discovered that this particular math function was broken; I
  39. believe that this turned out to be an acknowledged bug in the code for
  40. this function.  (I don't recall if the results were _always_ wrong, or
  41. only under some circumstances.)  Could it be that is has never been fixed?
  42.  
  43. -Margaret
  44. mikulska@astro.princeton.edu
  45.