Hi,
I came across this issue when compiling my Fortran77 code. I don’t have any source line close to being 72 columns wide. But I get a compilation error.
myneni@ca-amd01 p4/os > pgf77 -g -c test.F
PGFTN-S-0066-Too few data constants in initialization statement (test.F: 45)
0 inform, 0 warnings, 1 severes, 0 fatal for respnmes
C…BEGIN …SOURCE…
myneni@ca-amd01 p4/os > cat test.F
block data respnmes
implicit none
#define RESVALS_OWNER
#ifndef RESPTYPE_H
#define RESPTYPE_H
#define IR1_equa_wcomp -1
#define IR1_equa_wfreq -2
#define IR1_equa_comb -3
#define IR_mass 1
#define IR_massfrac 2
#define IR_volume 3
#define IR_volfrac 4
#define IR_freq 5
#define IR_buck 6
#define IR_comp 7
#define IR_disp 8
#define IR_stress 9
#define IR_strain 10
#define IR_force 11
#define IR_cstrain 12
#define IR_cstress 13
#define IR_cfailure 14
#define IR_cog 15
#define IR_inertia 16
#define IR_equa 17
#define IR_external 18
#define NRESNAMES 22
integer respval(NRESNAMES)
common /resvals/ respval
data respval / IR_mass, IR_mass, IR_volume, IR_volfrac,
$ IR_buck, IR_buck, IR_buck, IR_freq, IR_comp, IR_disp,
$ IR_stress, IR_strain, IR_cog, IR_inertia, IR_force,
$ IR_cstress, IR_cfailure, IR1_equa_wcomp, IR1_equa_wfreq,
$ IR1_equa_comb, IR_equa, IR_external /
end
C…END … SOURCE…
I am using 5.2-4 which I downloaded for evaluation.
I would appreciate help / comments on this issue. I tried using ‘-Mextend’ option but that messes up the compilation of some 3rd party libraries that contains tons of Hollerith constants in the format statements that extend beyond a single line…well, that’s for another post.
Thanks!!
-Sachin