<div dir="ltr"><div>HI,<br><br></div><div>  I am trying to compile some old version of CLASPACK for CentOS6.2 with gfortran.<br clear="all"></div><div><div><br></div><div>I have already done this job using g77 with 32-bit option: &quot;g77 -m32&quot;.<br>
</div><div>But I encountered with some problem when I switched to gfortran with 64 bit option.<br><br></div><div>The source file that give me error message is <br></div><div>/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/ana/fill_seb_ntn.F<br>
</div><div>The error is Arithmetic overflow.  <br><br>Again, it works fine if you switch the compiler to g77 -m32 <br>I think the best way to solve this error to do some small changes in the source code. <br>I think the owner|author of this file will know it better.<br>
I also know that using option  -fno-range-<em>check </em>with gfortran will also get it through.  <br>But I am not very sure if this option will cause any potential problem.<br></div><br><br><br><br>
<div>The compile command and error message is here:<br></div><div><br>ifarm1102&gt; gfortran -O2 -m64 -fno-automatic -finit-local-zero -ffixed-line-length-none -fno-second-underscore -DLinux -DLinux64 -I. -I../inc_derived/ -I../include/ -I./ -I../ec -I../sc -I../cc -I../seb -I../trk -I../lac -I../user -I../icf -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/ec -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/sc -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/cc -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/seb -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/trk -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/lac -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/user -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/icf -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/include -I/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/inc_derived -I/usr/include -I/usr/include -c fill_seb_ntn.F -o /w/hallb-1/bonus/jixie/clas/builds/release-4-15/obj/Linux64RH6/ana/fill_seb_ntn.o<br>
<br>fill_seb_ntn.F:139.31:<br><br>         stbit=int(iw(ind3+1)/2**31)<br>                               1<br>Error: Arithmetic overflow at (1)<br>fill_seb_ntn.F:140.38:<br><br>         htbit=int((iw(ind3+1)-stbit*2**31)/2**30)<br>
                                      1<br>Error: Arithmetic overflow at (1)<br><br></div></div></div>