I have pgfortran 17.4-0 64-bit, pgcc 17.4-0 64-bit, and pgc++ 17.4-0 64-bit installed on Red Hat Enterprise Linux Server release 7.3 (Maipo). (3.10.0-514.16.1.el7.x86_64)
I try to build NetCDF for Fortran following the guidance on the page http://www.pgroup.com/resources/netcdf/netcdf43_pgi2014.htm.
I received error during configuring.
configure:4645: checking whether we are using the GNU C compiler
configure:4664: pgcc -c -O tp=p7-64 -DpgiFortran conftest.c >&5
PGC-S-0040-Illegal use of symbol, choke (conftest.c: 16)
PGC-W-0156-Type not specified, ‘int’ assumed (conftest.c: 16)
PGC/x86-64 Linux 17.4-0: compilation completed with severe errors
configure:4664: $? = 2
configure: failed program was:
| /* confdefs.h */
I received the following error when building HDF5,
Making install in hl
make[1]: Entering directory /data/Util/WORK_DIR/hdf5/hdf5-1.8.19/hl' Making install in src make[2]: Entering directory
/data/Util/WORK_DIR/hdf5/hdf5-1.8.19/hl/src’
make[3]: Entering directory `/data/Util/WORK_DIR/hdf5/hdf5-1.8.19/hl/src’
/usr/bin/mkdir -p ‘/data/Util/INSTALL_DIR/hdf5/lib’
/bin/sh …/…/libtool --mode=install /usr/bin/install -c libhdf5_hl.la ‘/data/Util/INSTALL_DIR/hdf5/lib’
libtool: warning: relinking ‘libhdf5_hl.la’
libtool: install: (cd /data/Util/WORK_DIR/hdf5/hdf5-1.8.19/hl/src; /bin/sh “/data/Util/WORK_DIR/hdf5/hdf5-1.8.19/libtool” --silent --tag CC --mode=relink pgcc -c99 -Minform=inform -fast -s -O tp=p7-64 -version-info 12:0:2 -o libhdf5_hl.la -rpath /data/Util/INSTALL_DIR/hdf5/lib H5DO.lo H5DS.lo H5IM.lo H5LT.lo H5LTanalyze.lo H5LTparse.lo H5PT.lo H5TB.lo …/…/src/libhdf5.la -lz -ldl -lm )
/data/Util/WORK_DIR/hdf5/hdf5-1.8.19/libtool: line 10545: pgcc: command not found
libtool: error: error: relink ‘libhdf5_hl.la’ with the above command before installing it
Could you please help me with this?