Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!cunniff From: cunniff@hpfcso.HP.COM (Ross Cunniff) Newsgroups: comp.sys.hp Subject: Re: FORTRAN on 840 and 350 Message-ID: <7370032@hpfcso.HP.COM> Date: 13 Nov 89 23:26:48 GMT References: <435@nisca.ircc.ohio-state.edu> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 31 > I'm able to compile a FORTRAN program on an 840 without > errors (HP-UX3.01). This same program will not compile > on a 350 (HP-UX6.5). The error I get is > f77: signal 11 (segmentation violation) while compiling feff.f > Both machines are running with 16 Meg of memory. > > Any ideas why I can't compile on the 350? I can't tell for certain, but this sounds like a known defect in the 6.5 S300 FORTRAN compiler. There is a patch that you can obtain from your SE for this problem (if it is the one I think it is). The problem occurs with statements like: write (99) (charvar(i),i=1,20) where charvar is a character variable. Try modifying the loop to read: write (99) (charvar(i+1),i=0,19) You can verify approximately which line is causing the compiler to choke by compiling with the -L (listing) flag turned on. > Thanks for your help, > Frank Fiamingo > frank@hpuxa.ircc.ohio-state.edu Ross Cunniff Hewlett-Packard Colorado Language Lab ...{ucbvax,hplabs}!hpfcla!cunniff cunniff%hpfcrt@hplabs.HP.COM