From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,753281f66cecdce1 X-Google-Attributes: gid111c93,public From: ggw@wolves.durham.nc.us (Gregory G. Woodbury) Subject: Re: fort77/f2c under Alpha Linux Date: 1997/09/27 Message-ID: #1/1 X-Deja-AN: 276150154 Sender: usenet@wolves.durham.nc.us (Usenet News Administrator) References: <60bf2i$f77@milo.mcs.anl.gov> Organization: My Own Usenet Node! Newsgroups: comp.os.linux.alpha Gregory G. Woodbury wrote: >Donald K.Sinclair 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"