From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2447 invoked from network); 15 Nov 1998 09:55:41 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 15 Nov 1998 09:55:41 -0000 Received: from alpha.cc.tut.fi (alpha.cc.tut.fi [130.230.56.11]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id EAA16973 for ; Sun, 15 Nov 1998 04:55:40 -0500 Received: from tau.cc.tut.fi (tau.cc.tut.fi [130.230.56.19]) by alpha.cc.tut.fi (8.9.1/8.9.1) with SMTP id LAA27433 for ; Sun, 15 Nov 1998 11:55:39 +0200 (EET) From: Hirsim{ki Mika Received: by tau.cc.tut.fi (5.65v4.0/1.1.19.2/26Jun98-0318PM) id AA13857; Sun, 15 Nov 1998 11:55:35 +0200 Date: Sun, 15 Nov 1998 11:55:35 +0200 Message-Id: <199811150955.AA13857@tau.cc.tut.fi> To: axp-list@redhat.com Subject: egcs g77 and DgncppB 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... ---- (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) ---- 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