Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Hirsim{ki Mika <mhi@alpha.cc.tut.fi>
To: axp-list@redhat.com
Subject: egcs g77 and DgncppB
Date: Sun, 15 Nov 1998 11:55:35 +0200	[thread overview]
Message-ID: <199811150955.AA13857@tau.cc.tut.fi> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

Hi!

I am trying to compile Matthias Fuchs' pseudopotential generation 
program (DgncppB, written in fortran, available at fhi-berlin.mpg.de) 
with egcs-1.1. If anyone here has been able to compile it on Alpha
Linux, I would appreciate if you could help me.

The problem is that I keep running into runtime arithmetic exceptions
(SIGFPE). Using -mieee got rid of a number of these in the actual
program, but for some reason I haven't been able to fix a problem that 
seems to be occuring in the egcs' libI77-sources.

Here's an excerpt from my gdb session...

--<cut here>--

(gdb) run
Starting program: /home/mhi/DgncppB/src/gncpp.x 

Program received signal SIGFPE, Arithmetic exception.
0x12003e350 in wrt_E (p=0x120166818, w=12, d=5, e=2, len=8) at wref.c:46
46              if (dd < 0.) {
(gdb) whatis dd
type = double
(gdb) print dd
$1 = -NaN(0x4344a80000000)

--<cut here>--

If I continue the program execution with "signal 0", I get another
exception a bit later, but after that the program exists normally.
It also seems to have produced all the output files properly. What
is going on? Does this look like a bug in egcs' Fortran front? Its 
version is:

GNU F77 version egcs-2.91.57 19980901 (egcs-1.1 release) (alphaev5-unknown-linux-gnu) compiled by GNU C version egcs-2.91.57 19980901 
(egcs-1.1 release). 
GNU Fortran Front End version 0.5.24-19980804
__G77_LIBF77_VERSION__: 0.5.23
@(#)LIBF77 VERSION 19970919
__G77_LIBI77_VERSION__: 0.5.23
@(#) LIBI77 VERSION pjw,dmg-mods 19980617
__G77_LIBU77_VERSION__: 0.5.23
@(#) LIBU77 VERSION 19980709

--
Mika Hirsimäki






             reply	other threads:[~1998-11-15  9:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-15  9:55 Hirsim{ki Mika [this message]
1998-11-16 17:22 ` egcs g77 and DgncppB Greg Lindahl
1998-11-16 23:07   ` Wes Bauske
  -- strict thread matches above, loose matches on Subject: below --
1998-11-17 17:25 Greg Lindahl
1998-11-17 18:19 ` Wes Bauske
1998-11-17 20:27 Greg Lindahl
1998-11-17 21:50 ` Wes Bauske
1998-11-18 18:15   ` Hirsim{ki Mika
1998-11-18 20:25     ` Wes Bauske
1998-11-17 22:00 Greg Lindahl
1998-11-17 22:38 ` Wes Bauske
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