Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: ggw@wolves.durham.nc.us (Gregory G. Woodbury)
Subject: Re: fort77/f2c under Alpha Linux
Date: 1997/09/27	[thread overview]
Message-ID: <EH6v91.sB@wolves.durham.nc.us> (raw)
In-Reply-To: EH1rIq.7Co@wolves.durham.nc.us


Gregory G. Woodbury <ggw@wolves.durham.nc.us> wrote:
>Donald K.Sinclair  <dks@sgi9.hep.anl.gov> wrote:
>>I have had a problem with using fort77/f2c under Alpha Linux in that it crashes
>>with the following error message:
>>
>>   average:
>>Compiler error line 121 of : floating exception during constant evaluation; cannot recover
>>
>
>This is a known bug in part of the f2c code that breaks when int and pointers
>are not the same size.  A patch for this particular bug was sent to the
>f2c maintainers and is in the current netlib.bell-labs.com archives.  There
>should also be an archive of the discussion on the RH-Alpha list at the RedHat
>website.

Specifically, the patch applied to the module proc.c in the f2c/src directory
and corrected a type problem.  Here is the patch I submitted.


--- proc.c.orig Wed Jul 16 14:46:29 1997
+++ proc.c      Wed Jul 16 14:48:04 1997
@@ -911,9 +911,9 @@
                dclerr("adjustable dimension on non-argument", q);
        else if (!ONEOF(nelt->headblock.vtype, MSKINT|MSKREAL))
                bad_dimtype(q);
-       else if (ISINT(nelt->headblock.vtype)
-                   && nelt->constblock.Const.ci <= 0
-                || nelt->constblock.Const.cd[0] <= 0)
+       else if (ISINT(nelt->headblock.vtype) ?
+                   nelt->constblock.Const.ci <= 0 :
+                   nelt->constblock.Const.cd[0] <= 0.0 )
                dclerr("nonpositive dimension", q);
        }

-----------------------

This is probably not the only thing "wrong" with f2c, but it took care of
most of my problems with it on the alpha.
-- 
Gregory G. "Wolfe" Woodbury   `-_-'         Owner/Admin: wolves.durham.nc.us
ggw at wolves.durham.nc.us      U
"The Line Eater is a               Hug your wolf. (Thanks Peter!)
 Boojum Snark"



      reply	other threads:[~1997-09-27  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-24  4:00 fort77/f2c under Alpha Linux Donald K.Sinclair
1997-09-25  4:00 ` Gregory G. Woodbury
1997-09-27  4:00   ` Gregory G. Woodbury [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox