On 16/04/2014 09:36, Chuck Forsberg WA7KGX wrote:
I recently got Fedora Rawhide with GCC 4.9 and Linux 3.15 rc1 running on my office machine.

After loading the usual libraries, I got WSPR 4.0 r3015 and WSJT-X 1.3 r3680 to compile and run using the standard Fedora hamlib. (It is possible some wsjt-x modules were
left over from a previous compilation.)

WSJT-X 4031 fails to compile jt9.f90:
gfortran -O2 -fbounds-check -Wall -Wno-conversion -fno-second-underscore -fPIE -DUNIX -c jt9.f90
jt9.f90:22.49:

call getopt('s:e:a:r:p:d:f:',(/type(option) ::/),c,optarg,arglen,stat,offs
                                                 1
Error: Syntax error in array constructor at (1)
I can confirm that this appears to be a defect in the gfortran 4.9.0 implementation. That syntax is a valid and the only way I know to construct an empty array on the fly. The relevant Fortran 2003 syntax is:

R468 array-constructor is (/ ac-spec /)
                       or lbracket ac-spec rbracket
R469 ac-spec is type-spec ::
             or [type-spec ::] ac-value-list

I'm no Fortran expert but someone who is really ought to raise a defect report on the compiler unless they know of another way of constructing an empty array of user defined type.

For us I have changed the WSJT-X code to use a stack variable empty array instead and that seems to work as expected.

Also I can confirm that WSJT-X built with gcc/g++/gfortran v4.9.0 as at Today's gcc master SVN HEAD (r209443) appears to work but I only did a very cursory sanity check.

Using an older jt9 file, I was able to start wsjt-x 4031 but it cannot talk to my
756PRO as reported previously.

73
Bill
G4WJS.
_______________________________________________
Wsjt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/wsjt-devel

Reply via email to