[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #COH-631372]: Problem compiling NetCDF-C 4.6.0 with PGI



A change for this was merged a few weeks ago.
You should be able to fix it by replacing that code
with just
> #define DBLVAL 12345678.12345678

> The NetCDF-C 4.6. 0 code has this in a few files:
> 
>      16 #if defined _MSC_VER || defined __APPLE__
>      17 #define DBLVAL 12345678.12345678
>      18 #else
>      19 #define DBLVAL 12345678.12345678*d*
>      20 #endif
> 
> The PGI 18.1 compiler is giving me this compilation error
> 
> libtool: compile:
> /cm/extra/apps/OpenMPI/3.1.0rc1/PGI-18.1_CUDA-9.1.85_HWLoc-1.11.9/bin/mpicc
> -DHAVE_CONFIG_H -I. -I../.. -DpgiFortran -fPIC -m64 -tp=px -c
> H5Zmisc.c -MD  -DPIC -o .libs/H5Zmisc.o
> PGC-S-0037-Syntax error: Recovery attempted by *deleting double 
> 1.23456781234567799E+7* (H5Zmisc.c: 175)
> PGC-S-0039-Use of *undeclared variable d* (H5Zmisc.c: 175)
> PGC/x86-64 Linux 18.1-1: compilation completed with severe errors
> make[3]: *** [H5Zmisc.lo] Error 1
> 
> I'm told that the double-precision "d" suffix is not standard C.
> I can remove the error by using the first convention instead of the second
> 
>      16 #if defined _MSC_VER || defined __APPLE__ || *__PGIC__*
>      17 #define DBLVAL 12345678.12345678
>      18 #else
>      19 #define DBLVAL 12345678.12345678d
>      20 #endif
> 
> Can you please add this edit to your future releases?
> Thanks,
> 
>                     Carl Ponder
> 
> 
> -----------------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and may 
> contain
> confidential information.  Any unauthorized review, use, disclosure or 
> distribution
> is prohibited.  If you are not the intended recipient, please contact the 
> sender by
> reply email and destroy all copies of the original message.
> -----------------------------------------------------------------------------------
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: COH-631372
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.