🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #429

Bug in f77 compiler

#429
From: chris moore
Date: Wed, 24 Apr 1985 00:18
34 lines
1475 bytes
I have discovered what appears to be a bug in the f77 compiler
running under 4.2bsd.  Has anyone else encountered this, and
is there a fix for it?

Description:
	A fortran program compiled with 'f77 -c' and then
	passed through 'ld' will not have units 5 and 6
	attached to stdin and stdout.
Reconstruct by:
	Write a program such as:
		write(6,10)
	    10  format('hello')
		stop
	and do an f77 <file>.f
	Running a.out prints 'hello' correctly.
	Now compile using f77 -c <file>.f and then
	ld <file>.o
	Running a.out prints nothing, and the output goes
	into fort.6

I tried doing explicit opens on units 5 and 6 (open (6,'/dev/tty'))
and I keep getting 'Illegal Argument' on the opens.

Any suggestions would be much appreciated.

			Chris Moore
			amdimage!cmoore
-- 

Of course we have backup tapes.  Do you want last year or the
 year before?

 Chris Moore (408) 749-4692
 UUCP: {ucbvax,decwrl,ihnp4,allegra}!amdcad!amdimage!cmoore
Technical Details
Message-ID: <160@amdimage.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!prls!amdimage!cmoore

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site amdimage.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!prls!amdimage!cmoore
From: cmoore@amdimage.UUCP (chris moore)
Newsgroups: net.bugs
Subject: Bug in f77 compiler
Message-ID: <160@amdimage.UUCP>
Date: Tue, 23-Apr-85 19:18:31 EST
Article-I.D.: amdimage.160
Posted: Tue Apr 23 19:18:31 1985
Date-Received: Sat, 27-Apr-85 00:13:19 EST
Distribution: net
Organization: AMDIMAGE, Sunnyvale, CA
Lines: 34