home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!cs.utexas.edu!hermes.chpc.utexas.edu!michael
- From: michael@chpc.utexas.edu (Michael Lemke)
- Subject: Re: really weird compiler hang!
- Message-ID: <1992Nov19.194741.26006@chpc.utexas.edu>
- Organization: The University of Texas System - CHPC
- References: <EJH.92Nov19092632@khonshu.colorado.edu>
- Date: Thu, 19 Nov 92 19:47:41 GMT
- Lines: 68
-
- In article <EJH.92Nov19092632@khonshu.colorado.edu> ejh@khonshu.colorado.edu (Edward J. Hartnett) writes:
- >
- [notes that following routine hangs Sun's compiler:]
- >
- > subroutine get_days(LU, h, typenum, filein)
- >ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
- >c
- > implicit none
- >c
- > structure /cond_samp_hdr/
- > integer data_rate, num_chan, num_ind_val
- > integer start_jday, stop_jday
- > real start_time, stop_time
- > character*80 data_type
- > character*80 set_name
- > character*100 comment1, comment2, comment3
- > character*100 reserved
- > end structure
- >c
- > record /cond_samp_hdr/ h
- >c
- > date = h.set_name(lnblnk(h.set_name)-7:lnblnk(h.set_name))
- > end
- >
- >
- >Here's what make gives me:
- >cd /home/khonshu/ejh/cond_samp/atob_src/
- >f77 -c -e test.f
- >test.f:
- > get_days:
- >
- >
- >Can anyone explain this bizarre behavior? I'm running this on a Sun
- >IPC, running 4.1.1, using the Sun fortran compiler.
- >--
- >Edward Hartnett ejh@khonshu.colorado.edu
- >
-
-
- This is what I got on our Sparc station after a few seconds:
-
-
- version-id of "/usr/lang/SC1.0.1/f77pass1": SC1.0 Fortran V1.4, Patch Release 6, 13Apr1992
- /usr/lang/SC1.0.1/f77pass1 "-P -cg87" x.f /tmp/f77pass1.16664.s.0.s /tmp/f77pass1.16664.i.1.s /tmp/f77pass1.16664.d.2.s
- x.f:
- get_days:
- "x.f", line 18: Error: attempt to use undefined variable "lu"
- "x.f", line 18: Error: attempt to use undefined variable "typenum"
- "x.f", line 18: Error: attempt to use undefined variable "filein"
- "x.f", line 18: Error: attempt to use undefined variable "date"
- "x.f", line 18: Error: attempt to use untyped function "lnblnk"
- "x.f", line 18: Error: attempt to use untyped function "lnblnk"
- "x.f", line 18: Error: attempt to use untyped function "lnblnk"
- "x.f", line 18: Error: attempt to use untyped function "lnblnk"
- "x.f", line 18: Error: attempt to use untyped function "lnblnk"
- rm /tmp/f77pass1.16664.s.0.s
- rm /tmp/f77pass1.16664.i.1.s
- rm /tmp/f77pass1.16664.d.2.s
- Compilation failed
-
-
- Maybe fixing the declarations helps or setting -O1 to turn off optimization.
-
-
- --
- Michael Lemke
- Astronomy, UT Austin, Texas
- (michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
-