REMO compilation errors

Hi,

I have downloaded REMO on my Mac (OS Sierra). However, because FAMR is not executable (error: -bash: ./FAMR: cannot execute binary file), I tried to compile the source f90 code. The command line that I used is:

gfortran -ffree-line-length-0 FAMR.f90

which gives a number of errors listed at the end of this message (some of which seem due to kinda non-standard syntax).
Can you please advice if you used gfortran and which additional options were used? Is there a way to compile FAMR.f90 on a mac using gfortran AND without painfully having to take care of all the error messages?

THank you,
Fabio

FAMR.f90:271:12:

30 read(1,"A100",end=31)ss !!F1 structure file
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:282:24:

read(ss,"A30")kfp(in)
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:412:19:

write(10,"A30,3f8.3"),kfp(k),xx(i),yy(i),zz(i)
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:504:17:

33 read(1,"A100",end=333)ss !!F1 structure file
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:741:13:

write(*,"A6,f8.4,6I4,2f12.2,A5"),"initd",RMSD,labelcycle,Nreshb0,Nhbonds,Nhbhit,Ncaclash,Nbroken,e0,etasser,ssclass
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:822:23:

write(*,"A10,2f8.2,4I4,I6,2f12.2"),"betterHB",RMSD,RMSDcut,NHB0,mmhb0,Nhbonds,Nhbhit,labelcycle,e0,eg0
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:856:23:

write(*,"A10,2f8.2,4I4,I6,2f12.2"),"betterHB0",RMSD,RMSDcut,NHB0,mmhb0,Nhbonds,Nhbhit,labelcycle,e0,eg0
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:933:10:

write(*,"3(A5,3I8)"),"Lmpr",relax(1,1),relax(1,2),relax(1,3),"CaCa",relax(2,1),relax(2,2),relax(2,3),"Glob",relax(3,1),relax(3,2),relax(3,3)
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:966:9:

write(*,"A22,I6,f11.4"),"number of Hbonds(EHB)",Nhbonds,EHbond
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:1120:13:

write(*,"A6,2f8.3,6I5"),"avg3pn",1.0*npc1/ntp1,1.0*npc2/ntp2,ntp1,ntp2,np1min,np1max,np2min,np2max
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:1124:15:

function energy
1
Error: Expected formal argument list in function definition at (1)
FAMR.f90:1125:13:

implicit none
1
Error: Unexpected IMPLICIT NONE statement in CONTAINS section at (1)
FAMR.f90:1126:11:

real energy,eLca,ehb
1
Error: Symbol 'energy' at (1) has already been host associated
FAMR.f90:1127:17:

call IMERGE(2)
1
Error: Unexpected CALL statement in CONTAINS section at (1)
FAMR.f90:1128:40:

call Hbonds(2) !!count the BB Hbonds
1
Error: Unexpected CALL statement in CONTAINS section at (1)
FAMR.f90:1130:16:

call calclash
1
Error: Unexpected CALL statement in CONTAINS section at (1)
FAMR.f90:1131:13:

ebbcon=0.0
1
Error: Unexpected assignment statement in CONTAINS section at (1)
FAMR.f90:1132:26:

if(bbconlog)call bbcont
1
Error: Unexpected simple IF statement in CONTAINS section at (1)
FAMR.f90:1133:22:

if(templatelog)then
1
Error: Unexpected block IF statement in CONTAINS section at (1)
FAMR.f90:1134:17:

call CARMSD
1
Error: Unexpected CALL statement in CONTAINS section at (1)
FAMR.f90:1135:7:

else
1
Error: Unexpected ELSE statement in CONTAINS section at (1)
FAMR.f90:1136:14:

RMSD=0.0
1
Error: Unexpected assignment statement in CONTAINS section at (1)
FAMR.f90:1137:6:

endif
1
Error: Expecting END PROGRAM statement at (1)
FAMR.f90:1138:17:

if(tarest)then
1
Error: Unexpected block IF statement in CONTAINS section at (1)
FAMR.f90:1139:22:

call rest_tasser
1
Error: Unexpected CALL statement in CONTAINS section at (1)
FAMR.f90:1140:76:

etasser=ftasser*(cacontactk*CAcontact+cashortk*CAdist+calongk*CAdistL)
1
Error: Unexpected assignment statement in CONTAINS section at (1)
FAMR.f90:1141:50:

eLca=engk*eclash !(10*Ncaclash+20.0*Nbroken)
1
Error: Unexpected assignment statement in CONTAINS section at (1)
FAMR.f90:1142:44:

ehb=Nhbonds+fhb*Nhbhit !NHB0+fhb*mmhb0
1
Error: Unexpected assignment statement in CONTAINS section at (1)
FAMR.f90:1143:12:

energy=engk*etasser+eLca+fRMSD*RMSD-ehb+1.5*ebbcon
1
Error: Symbol 'energy' at (1) has already been host associated
FAMR.f90:1145:7:

else
1
Error: Unexpected ELSE statement in CONTAINS section at (1)
FAMR.f90:1146:50:

eLca=engk*eclash !(10*Ncaclash+20.0*Nbroken)
1
Error: Unexpected assignment statement in CONTAINS section at (1)
FAMR.f90:1147:44:

ehb=Nhbonds+fhb*Nhbhit !NHB0+fhb*mmhb0
1
Error: Unexpected assignment statement in CONTAINS section at (1)
FAMR.f90:1148:12:

energy=eLca+fRMSD*RMSD-ehb+1.5*ebbcon
1
Error: Symbol 'energy' at (1) has already been host associated
FAMR.f90:1149:6:

endif
1
Error: Expecting END PROGRAM statement at (1)
FAMR.f90:1153:6:

return
1
Error: Unexpected RETURN statement in CONTAINS section at (1)
FAMR.f90:1154:3:

end function energy
1
Error: Expecting END PROGRAM statement at (1)
FAMR.f90:1157:13:

implicit none
1
Error: Duplicate IMPLICIT NONE statement at (1)
FAMR.f90:3999:18:

write(*,"A15,3I5,6f8.3"),"protein too large",NMAXx,NMAXy,NMAXz,xx0(nkatm),xx0(1),yy0(nkatm),yy0(1),zz0(nkatm),zz0(1)
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:4085:15:

write(*,"A16,I6,A8,I5,A4,f12.3"),"CACLASH(<3.6A):",Ncaclash," BROKEN",Nbroken," Rg",Rg
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:4125:22:

write(71,'I5,A5,4f9.4'),j,resd(ca(j,1)),phipsichi(j,3),phipsichi(j,4),phipsichi(j,1),phipsichi(j,2) !!chi1 chi2 phi psi
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:4332:13:

write(10,"I5,3x,A3,1x,I4,1x,I4"),i,resd(ca(i,1)),seq2(i,1),9
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:4770:16:

write(11,"I3,A2,I4,A2,I4,I3,2I3"),k,"N",ir1,"O",ir2,reshbn(i,3),seq(ir1,1),seq(ir2,1) !0 coil, 1 helix, 2 an-sheet, 3 p-sheet
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:4802:16:

write(11,"I3,A2,I4,A2,I4,I3,2I3"),j,"N",ir1,"O",ir2,k,seq(ir1,1),seq(ir2,1)
1
Error: Missing leading left parenthesis in format string at (1)
FAMR.f90:720:14:

ee0=energy
1
Error: Symbol 'energy' at (1) has no IMPLICIT type
FAMR.f90:4364:27:

read(12,*,end=201),i,aa,i0,aa,i1
1
Warning: Legacy Extension: Comma before i/o item list at (1)
FAMR.f90:3663:22:

if(atom(i,3)=='PRO'.and.ress2(i)==1)then !!PRO N-term
1
Warning: Array reference at (1) is out of bounds (3 > 2) in dimension 2
FAMR.f90:290:13:

goto 30
1
Error: Label 30 referenced at (1) is never defined
FAMR.f90:410:22:

write(10,129),0,atomty(i),resd(i),ir2,xx(i),yy(i),zz(i),ASSrd(i)
1
Warning: Legacy Extension: Comma before i/o item list at (1)
FAMR.f90:480:21:

read(10,810),i7,i1,i2,i3,i4,i5,i6,i8,(bbcoord(ii,j),j=1,6)
1
Warning: Legacy Extension: Comma before i/o item list at (1)
FAMR.f90:516:16:

goto 33
1
Error: Label 33 referenced at (1) is never defined
FAMR.f90:602:24:

write(10,129),k,atomty(i),resd(i),ress(i),xx(i),yy(i),zz(i),ASSrd(i)
1
Warning: Legacy Extension: Comma before i/o item list at (1)
FAMR.f90:886:24:

write(10,129),k,atomty(i),resd(i),ress(i),xx(i),yy(i),zz(i),ASSrd(i)
1
Warning: Legacy Extension: Comma before i/o item list at (1)
FAMR.f90:929:22:

write(10,129),k,atomty(i),resd(i),ress(i),xx(i),yy(i),zz(i),ASSrd(i)
1
Warning: Legacy Extension: Comma before i/o item list at (1)
FAMR.f90:964:13:

write(*,117),i,ir1,resd(ia),atomty(hbn(i,1)),ir2,resd(ib),atomty(hbn(i,2)),tp1,tp2,draa,htbon(i,1),htbon(i,2),htbon(i,3)
1
Warning: Legacy Extension: Comma before i/o item list at (1)
FAMR.f90:444:2:

85 close(85)
1
FAMR.f90:973:47:

read(58,*,err=85)k,abc,seq(i,1),seq(i,2)
2
Warning: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2)