PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 855)

Hello,

While installing HDF4, the following was prompted:

pgf77   -c -o tvsetf.o tvsetf.f
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 855)
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 883)
PGFTN-W-0025-Illegal character (;) - ignored (tvsetf.f: 924)
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 967)
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 990)
  0 inform,   1 warnings,   4 severes, 0 fatal for tvgroups
PGFTN/x86-64 Linux 15.7-0: compilation completed with severe errors
Makefile:771: recipe for target 'tvsetf.o' failed
make[2]: *** [tvsetf.o] Error 2
make[2]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/test'
Makefile:393: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf'
Makefile:481: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Making install in hdf
make[1]: Entering directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf'
Making install in src
make[2]: Entering directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/src'
make[3]: Entering directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/src'
 /usr/bin/mkdir -p '/usr/local/hdf/hdf4/lib'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libdf.la '/usr/local/hdf/hdf4/lib'
libtool: install: /usr/bin/install -c .libs/libdf.lai /usr/local/hdf/hdf4/lib/libdf.la
libtool: install: /usr/bin/install -c .libs/libdf.a /usr/local/hdf/hdf4/lib/libdf.a
libtool: install: chmod 644 /usr/local/hdf/hdf4/lib/libdf.a
libtool: install: ranlib /usr/local/hdf/hdf4/lib/libdf.a
libtool: finish: PATH="/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/waldyd/.local/bin:/home/waldyd/bin:/opt/pgi/linux86-64/15.7/bin:/usr/local/ncl_ncarg/bin/:/sbin" ldconfig -n /usr/local/hdf/hdf4/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/hdf/hdf4/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/hdf/hdf4/include'
 /usr/bin/install -c -m 644 atom.h bitvect.h cdeflate.h cnbit.h cnone.h cskphuff.h crle.h cszip.h df.h dfan.h dfi.h dfgr.h dfrig.h dfsd.h dfstubs.h dfufp2i.h dynarray.h H4api_adpt.h h4config.h hbitio.h hchunks.h hcomp.h hcompi.h hconv.h hdf.h hdfi.h herr.h hfile.h hkit.h hlimits.h hproto.h hntdefs.h htags.h linklist.h mfan.h mfgr.h mstdio.h tbbt.h vattr.h vg.h '/usr/local/hdf/hdf4/include'
 /usr/bin/install -c -m 644 hdatainfo.h hproto_fortran.h dffunc.f90 hdf.f90 dffunc.inc hdf.inc '/usr/local/hdf/hdf4/include'
make[3]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/src'
make[2]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/src'
Making install in fortran
make[2]: Entering directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/fortran'
make[3]: Entering directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/fortran'
make[4]: Entering directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/fortran'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/fortran'
make[3]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/fortran'
make[2]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/fortran'
Making install in test
make[2]: Entering directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/test'
pgf77   -c -o tvsetf.o tvsetf.f
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 855)
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 883)
PGFTN-W-0025-Illegal character (;) - ignored (tvsetf.f: 924)
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 967)
PGFTN-S-0034-Syntax error at or near / (tvsetf.f: 990)
  0 inform,   1 warnings,   4 severes, 0 fatal for tvgroups
PGFTN/x86-64 Linux 15.7-0: compilation completed with severe errors
Makefile:771: recipe for target 'tvsetf.o' failed
make[2]: *** [tvsetf.o] Error 2
make[2]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf/test'
Makefile:393: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/opt/BRAMS-5.0/build/lib/hdf-4.2.11/hdf'
Makefile:481: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

Some of the offending lines are:

855       result = (/2, 3, 4, 5, 6, 7, 8, 9, 10, 11/)
883       result = (/7, 8, 9, 10, 11, 0, 0, 0, 0, 0/)

924         vdref_list(ii) = vdata_ref;

Any ideas about how to solve this issue?

Any ideas about how to solve this issue?

Use the pgfortran driver instead of pgf77. pgf77 only supports F77 language features, but these are F90 constructs. pgfortran supports F77, F90, F95, F2003, and a few F2008 language features.

Hope this helps,
Mat