*BSD News Article 10378


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA23 ; Wed, 27 Jan 93 13:10:43 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!uwm.edu!cs.utexas.edu!sun-barr!ames!eos!aio!poirot
From: poirot@aio.jsc.nasa.gov (Daniel T. Poirot/LESC)
Subject: Re: floating point exceptions (DBL_MIN DBL_MAX)
Message-ID: <1993Jan26.143646.24315@aio.jsc.nasa.gov>
Keywords: signal 6, gcc2.3.3
Organization: NASA Johnson Space Center
References: <31080@toad.com>
Date: Tue, 26 Jan 1993 14:36:46 GMT
Lines: 23

In article <31080@toad.com> curt@toad.com (Curt Mayer) writes:
>alright, so i reinstalled from ground zero for the 4th time, installed
>the latest patch kit from agate, recompiled the world, so why do i
>still get these signal 6's all over the place when trying to recompile ?

The problem is in DBL_MAX and DBL_MIN in /usr/include/float.h.  I
changed them to:

#define DBL_MIN         2.2250738585072014E-308
#define DBL_MAX         1.7976931348623157E+308

and STILL got 'signal 6's all over the place' (particularly in
recompiling g++).  I then changed DBL_MAX to 1.7976931348623147E+308
(note second to last digit) and had better luck.

I would really like to see a definitive answer on this and see it fixed
in the distribution files or patchkit.

-- 
Daniel Poirot           poirot@aio.jsc.nasa.gov
NASA JSC                "The mind is a terrible thing."
ER3                     tel: (713)483-8793
Houston, TX 77058       fax: (713)483-3204