[ncl-install] Problems with building NCL using the Intel compiler suite

Mary Haley haley at ucar.edu
Mon Jun 27 13:24:57 MDT 2011


Hi Dave,

Sorry you are having problems with this.

The "warning" statements that you listed below can be safely ignored. It's the "error" statements you need to be concerned with.

It looks like there may be an issue with us using a variable called "compound" when you try to build with the "icc" compiler.

I'll see if we can provide you with some patches to get around this problem.  I've never run into this myself.

--Mary



On Jun 27, 2011, at 9:50 AM, David Mechem wrote:

> Greetings,
> 
> I'm having issues building NCL from source using the Intel compiler 
> suite. I'm building a vanilla version without OPeNDAP and netCDF-4 
> support. The NCARGraphics libraries and many of the utilities seem to be 
> building OK, but NCL does not. I'm using version 11.0 of ifort and icc, 
> 64-bit CENTos kernel 2.6.18-194.17.1.el5.
> 
> I'm getting compilation errors on three files. The errors are all of a 
> similar type and appear to be related to the variable "compound" being 
> multiply defined.
> 
> 1.
> -----------------
> make[5]: Entering directory `/usr/local/ncl_ncarg-6.0.0/ni/src/lib/nfp'
> icc -ansi  -O2 -I../../ncl -I../../../.././include 
> -I/usr/include/X11      -DSYS
> V -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto  
> -DNDEBUG  -c -o
>  areavolW.o areavolW.c
> ../../ncl/NclDataDefs.h(122): error: "compound" has already been 
> declared in the
>  current scope
>   typedef int compound;
>               ^
> 
> areavolW.c(258): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(447): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(636): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(903): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(1141): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(1379): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(1643): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(1927): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> areavolW.c(2262): warning #188: enumerated type mixed with another type
>     return(ret);
>           ^
> 
> compilation aborted for areavolW.c (code 2)
> make[5]: *** [areavolW.o] Error 2
> -------------------------------
> 
> 2.
> ------------------------------
> make[5]: Entering directory `/usr/local/ncl_ncarg-6.0.0/ni/src/lib/nio'
> icc -ansi -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2  
> -I../../../.././include -I/usr/include/X11  -DLinux -DMAJOR=2        
> -DNIO_LIB_ONLY   -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped 
> -DNeedFuncProto  -DNDEBUG  -c -o NclTypedouble.o NclTypedouble.c
> /usr/local/intel/11.0/084/include/math.h(796): error: "compound" has 
> already been declared in the current scope
>   _LIBIMF_EXT _LIBIMF_DOUBLE   _LIBIMF_PUBAPI compound( _LIBIMF_DOUBLE 
> __x, _LIBIMF_DOUBLE __y );
>                                               ^
> 
> compilation aborted for NclTypedouble.c (code 2)
> make[5]: *** [NclTypedouble.o] Error 2
> ---------------------------------
> 
> 3.
> -----------------------------
> icc -ansi -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
> -I/usr/local/include -O2  -I../../.././include -I/usr/include/X11  
> -DLinux -DMAJOR=2           -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE 
> -DByteSwapped -DNeedFuncProto  -DNDEBUG  -c -o MathFuncs.o MathFuncs.c
> NclDataDefs.h(122): error: "compound" has already been declared in the 
> current scope
>   typedef int compound;
>               ^
> 
> compilation aborted for MathFuncs.c (code 2)
> make[4]: *** [MathFuncs.o] Error 2
> -----------------------------
> 
> 
> Any advice will be appreciated!
> 
> Dave
> 
> -- 
> --------------------------------------
> David B. Mechem   dmechem at ku.edu
> Assistant Professor
> Atmospheric Science Program
> Department of Geography
> University of Kansas
> ph: (785) 864-5707 fax: (785) 864-5378
> --------------------------------------
> 
> 
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install



More information about the ncl-install mailing list