<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    I'm getting this error:<br>
    <blockquote><font face="monospace">/bin/gcc
        -I../../../src/utils/ncvalidator -o cdfdiff cdfdiff.c</font><br>
      <font face="monospace">In file included from
        /usr/include/stdlib.h:55,</font><br>
      <font face="monospace">                 from
/home/cponder/WRF/PGI/100.NVHPC/Linux_x86_64/21.11/compilers/include/stdlib.h:13,</font><br>
      <font face="monospace">                 from cdfdiff.c:19:</font><br>
      <font face="monospace">/home/cponder/WRF/PGI/100.NVHPC/Linux_x86_64/21.11/compilers/include/bits/floatn.h:60:17:
        error: two or more data types in declaration specifiers</font><br>
      <font face="monospace">   typedef float _Float32;</font><br>
      <font face="monospace">                 ^~~~~~~~</font><br>
      <font face="monospace">/home/cponder/WRF/PGI/100.NVHPC/Linux_x86_64/21.11/compilers/include/bits/floatn.h:63:18:
        error: two or more data types in declaration specifiers</font><br>
      <font face="monospace">   typedef double _Float64;</font><br>
      <font face="monospace">                  ^~~~~~~~</font><br>
      <font face="monospace">/home/cponder/WRF/PGI/100.NVHPC/Linux_x86_64/21.11/compilers/include/bits/floatn.h:74:18:
        error: two or more data types in declaration specifiers</font><br>
      <font face="monospace">   typedef double _Float32x;</font><br>
      <font face="monospace">                  ^~~~~~~~~</font><br>
      <font face="monospace">/home/cponder/WRF/PGI/100.NVHPC/Linux_x86_64/21.11/compilers/include/bits/floatn.h:78:25:
        error: two or more data types in declaration specifiers</font><br>
      <font face="monospace">     typedef long double _Float64x;</font><br>
      <font face="monospace">                         ^~~~~~~~~</font><br>
      <font face="monospace">make[3]: *** [Makefile:847: cdfdiff] Error
        1</font><br>
      <font face="monospace">make[3]: Leaving directory
        '/home/cponder/WRF/PGI/A.106.PNetCDF/distro/src/utils/ncmpidiff'</font><br>
      <font face="monospace">make[2]: *** [Makefile:545: all-recursive]
        Error 1</font><br>
      <font face="monospace">make[2]: Leaving directory
        '/home/cponder/WRF/PGI/A.106.PNetCDF/distro/src/utils'</font><br>
      <font face="monospace">make[1]: *** [Makefile:476: all-recursive]
        Error 1</font><br>
      <font face="monospace">make[1]: Leaving directory
        '/home/cponder/WRF/PGI/A.106.PNetCDF/distro/src'</font><br>
      <font face="monospace">make: *** [Makefile:533: all-recursive]
        Error 1</font><br>
    </blockquote>
    I believe the problem is that it's trying to use the system-default
    <b><font face="monospace">gcc</font></b> here<br>
    <blockquote><font face="monospace">checking for mpiexec...
        /home/cponder/WRF/PGI/105.OpenMPI/bin/mpiexec</font><br>
      <b><font face="monospace">checking for gcc... /bin/gcc</font></b><b><br>
      </b><b><font face="monospace">checking C compiler for serial
          utility programs... /bin/gcc</font></b><br>
    </blockquote>
    which is incompatible with all the NVHPC_specific paths that I'm
    setting for the overall build:<br>
    <blockquote><font face="monospace">export CC=`which pgcc`</font><br>
      <font face="monospace">export CXX=`which pgc++`</font><br>
      <font face="monospace">export F77=`which pgf77`</font><br>
      <font face="monospace">export F90=`which pgf90`</font><br>
      <font face="monospace">export FC=`which pgfortran`</font><br>
      <br>
      <font face="monospace">export MPICC=`which mpicc`</font><br>
      <font face="monospace">export MPICXX=`which mpicxx`</font><br>
      <font face="monospace">export MPIF77=`which mpif77`</font><br>
      <font face="monospace">export MPIF90=`which mpif90`</font><br>
      <br>
      <font face="monospace">export   CFLAGS="-fPIC -m64 -tp=px"</font><br>
      <font face="monospace">export CXXFLAGS="-fPIC -m64 -tp=px"</font><br>
      <font face="monospace">export  FCFLAGS="-fPIC -m64 -tp=px"</font><br>
      <br>
      <font face="monospace">export LDFLAGS+=" -L$PGI/cuda/lib64
        -lnvidia-ml"</font><br>
    </blockquote>
    I'm guessing that the old compilers & old OS levels didn't
    enable these types so there was no collision during the compilation.<br>
    Is there a way to override the <b><font face="monospace">gcc</font></b>
    default for the utilities? I don't see any such setting in the <font
      face="monospace">configure --help</font> output.<br>
    <br>
    <br>
  </body>
</html>