* fort77/f2c under Alpha Linux
@ 1997-09-24 4:00 Donald K.Sinclair
1997-09-25 4:00 ` Gregory G. Woodbury
0 siblings, 1 reply; 3+ messages in thread
From: Donald K.Sinclair @ 1997-09-24 4:00 UTC (permalink / raw)
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
(average is the name of the first routine, and I compiled with fort77 *.f).
I also see similar messages when I try to use f2c directly. Has anyone
encountered similar problems, or does anyone know what can cause this? This
even happens with codes that compile with fort77/f2c under Linux Intel.
Don Sinclair.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fort77/f2c under Alpha Linux
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
0 siblings, 1 reply; 3+ messages in thread
From: Gregory G. Woodbury @ 1997-09-25 4:00 UTC (permalink / raw)
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
>
>(average is the name of the first routine, and I compiled with fort77 *.f).
>I also see similar messages when I try to use f2c directly. Has anyone
>encountered similar problems, or does anyone know what can cause this? This
>even happens with codes that compile with fort77/f2c under Linux Intel.
>
> Don Sinclair.
>
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.
--
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"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fort77/f2c under Alpha Linux
1997-09-25 4:00 ` Gregory G. Woodbury
@ 1997-09-27 4:00 ` Gregory G. Woodbury
0 siblings, 0 replies; 3+ messages in thread
From: Gregory G. Woodbury @ 1997-09-27 4:00 UTC (permalink / raw)
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"
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-09-27 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox