Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: problems with compilers bundled with RH Linux?
Date: Thu, 11 Dec 1997 12:37:51 -0700 (MST)	[thread overview]
Message-ID: <199712111937.MAA14739@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <199712111807.NAA05630@brg0>

>         
>         My problems are :
> 	1. When it compiles a fortran subroutine of matrix 
> multiplication with parameter and dimension statements, the 
> compilation fails:
>  The error message is : floating exception during constant evaluation;
>                         cannot recover.

Which compiler?  Unpatched f2c?

When I fed this fstuff.f to g77 I got:

g77 -o fstuff fstuff.f
fstuff.f: In subroutine `matrixmulc':
fstuff.f:40:
         do j=1,lx3
         1
fstuff.f:51: (continued):
         end
         2
Statement at (2) invalid in context established by statement at (1)
fstuff.f:40:
         do j=1,lx3
         ^
End of source file before end of block started at (^)

I thought that g77 is a Fortran 77 compiler and it does not support
extensions like 'do ... enddo'.  Am I wrong? BTW - fort77 brought,
correctly,

   Error on line 51: DO loop or BLOCK IF not closed

> 	2. If I don't use that subroutine, I still cannot get through. 
> The error is
> 	/usr/lib/libf2c.so: undefined reference to 'MAIN__'
                                                    ^^^^

This is your main entry point for a Fortran program.  If you failed
to compile then it does not exist.

  --mj

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

  reply	other threads:[~1997-12-11 19:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-11 18:07 problems with compilers bundled with RH Linux? yue-feng sun
1997-12-11 19:37 ` Michal Jaegermann [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-12-11 19:37 Michal Jaegermann
1997-12-11 20:38 yue-feng sun
1997-12-11 23:41 Craig Burley
     [not found] <199712112218.RAA12838@brg0>
1997-12-12  1:57 ` Michal Jaegermann
1997-12-12 14:50 yue-feng sun
1997-12-12 15:26 Craig Burley
1997-12-12 16:08 Dave Gilbert
     [not found] <199712121526.KAA09405@melange.gnu.org>
1997-12-12 16:11 ` Michal Jaegermann
     [not found] <34916168.3B609A37@treblig.org>
1997-12-12 20:36 ` Richard Henderson
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