[Clas_offline] help needed in compiling clas package
Jixie Zhang
jixie at jlab.org
Fri Aug 30 13:47:57 EDT 2013
HI,
I am trying to compile some old version of CLASPACK for CentOS6.2 with
gfortran.
I have already done this job using g77 with 32-bit option: "g77 -m32".
But I encountered with some problem when I switched to gfortran with 64 bit
option.
The source file that give me error message is
/w/hallb-1/bonus/jixie/clas/builds/release-4-15/packages/ana/fill_seb_ntn.F
The error is Arithmetic overflow.
Again, it works fine if you switch the compiler to g77 -m32
I think the best way to solve this error to do some small changes in the
source code.
I think the owner|author of this file will know it better.
I also know that using option -fno-range-*check *with gfortran will also
get it through.
But I am not very sure if this option will cause any potential problem.
The compile command and error message is here:
ifarm1102> 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
fill_seb_ntn.F:139.31:
stbit=int(iw(ind3+1)/2**31)
1
Error: Arithmetic overflow at (1)
fill_seb_ntn.F:140.38:
htbit=int((iw(ind3+1)-stbit*2**31)/2**30)
1
Error: Arithmetic overflow at (1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/clas_offline/attachments/20130830/ae9bdba4/attachment.html
More information about the Clas_offline
mailing list