home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11108 < prev    next >
Encoding:
Text File  |  1993-01-10  |  2.4 KB  |  63 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!paladin.american.edu!gatech!destroyer!fmsrl7!lynx.unm.edu!zia.aoc.nrao.edu!laphroaig!cflatter
  3. From: cflatter@nrao.edu (Chris Flatters)
  4. Subject: Re: [386bsd] gcc 2.3.2/2.3.3 compile solution
  5. Message-ID: <1993Jan10.223405.23735@zia.aoc.nrao.edu>
  6. Sender: news@zia.aoc.nrao.edu
  7. Reply-To: cflatter@nrao.edu
  8. Organization: NRAO
  9. References: <1993Jan08.184051.5674@mav.com>
  10. Date: Sun, 10 Jan 93 22:34:05 GMT
  11. Lines: 50
  12.  
  13. In article 5674@mav.com, rick@mav.com (Hendrik Groeneveld) writes:
  14. >In article <RICH.92Dec27171213@superego.Rice.edu> Rich@rice.edu writes:
  15. >>>>>>> In article <BLYMN.92Dec27161320@siren.awadi.com.au>, blymn@awadi.com.au (Brett Lymn) writes:
  16. >>>>>>> On 20 Dec 92 00:43:03 GMT, dhess@Xenon.Stanford.EDU (Drew William Hess) said:
  17. >>D> I'm having problems getting gcc 2.3.2 to compile under 386bsd.  It's choking
  18. >>D> on enquire.c, line 2303, and complaining about a floating point constant
  19. >>D> being out of range.  Can someone please post or email me a fix?  Thanks.
  20. >
  21. >The problem is not a floating constant out of range. The problem
  22. >is a floating point stack overflow. To get passed this, manually
  23. >compile fold-const.c using -S in place of -c. Edit fold-const.s
  24. >and replace "fsts" with "fstps" in _real_value_truncate. Then
  25. >assemble (as -o fold-const.o fold-const.s). 
  26.  
  27. I didn't get this problem but I have had problems with the macro DBL_MAX.
  28. It turns out that the values of DBL_MAX and DBL_MIN are one digit too
  29. short in /usr/include/float.h: this is a problem since DBL_MAX is
  30. rounded to the next highest digit and is therefore larger than the
  31. maximum representable double.  The float.h generated by fixincludes also
  32. has a wrong value for DBL_MAX.  The correct values for the DBL_* macros are
  33.  
  34. #define DBL_MANT_DIG    53
  35. #define DBL_EPSILON     2.2204460492503131E-16
  36. #define DBL_DIG         15
  37. #define DBL_MIN_EXP     (-1021)
  38. #define DBL_MIN         2.2250738585072014E-308
  39. #define DBL_MIN_10_EXP  (-307)
  40. #define DBL_MAX_EXP     (+1024)
  41. #define DBL_MAX         1.7976931348623157E+308
  42. #define DBL_MAX_10_EXP  (+308)
  43.  
  44. >
  45. >There is also a circular dependancy for protoize.o/unprotoize.o in the
  46. >Makefile. Add the lines
  47. >
  48. >    touch protoize.o
  49. >    touch unprotoize.o
  50. >
  51. >after the line
  52. >
  53. >    touch stamp-proto
  54. >
  55. >After this "make bootstrap" will run to completion.
  56.  
  57. I think that the makefile will work without modification if you have GNU make
  58. installed.
  59.  
  60.     Chris Flatters
  61.     cflatter@nrao.edu
  62.  
  63.