[comp.sys.hp] Request for help with f77 compiler

mike@hpfclq.HP.COM (Mike McNelly) (03/29/88)

> when I try and compile using the fortran compiler 
	> f77 -c backgroundx.f
> I get an error message
	> f77: Cannot execute /usr/lib/f77pass1 while compiling backgroundx.f
> 
> I look in /usr/lib and I can find that is relevant is
	> f77pass110 f77pass120 libF77.a libI77.a
> 
> Do I have the most recent verson? What am I doing wrong?
	> Thanks
	> Bruce

The f77 driver program has a simple minded idea (based on history) that only
one version of f77pass1 exists. In fact, f77pass1 has two variants:
f77pass110 and f77pass120. Depending on whether your machine has a MC68020
processor or a MC68010 processor and depending on the system defaults set
up by your system administrator, one or the other will be used as f77pass1.

I'm not sure what the problem is but I would suggest checking that
/usr/lib/f77pass110 and /usr/lib/f77pass120 have the appropriate execute
permissions for you.

I can't tell what release you are working on. To find out, use the 
"uname -a" command.

Mike McNelly	hplabs!hpfcla!mike

decot@hpisod2.HP.COM (Dave Decot) (03/31/88)

> when I try and compile using the fortran compiler 
> 	f77 -c backgroundx.f
> I get an error message
> 	f77: Cannot execute /usr/lib/f77pass1 while compiling backgroundx.f
> 
> I look in /usr/lib and I can find that is relevant is
> 	f77pass110 f77pass120 libF77.a libI77.a
> 
> Do I have the most recent verson? What am I doing wrong?

Nothing, probably.  I'm not sure why that file would be missing.

Anyway, become the superuser, then do the following:

If you are compiling for a 68020 processor, link /usr/lib/f77pass120 to
/usr/lib/f77pass1; if you're compiling for a 68010 processor, link
/usr/lib/f77pass110 to /usr/lib/f77pass1.

Now you should be able to use f77 normally.

Dave Decot
hpda!decot