[ncl-install] Build question on ncl_ncarg-6.1.2 on SUSE Linux 11/SP2 IA64
David Brown
dbrown at ucar.edu
Wed Feb 26 16:10:18 MST 2014
Hi Bill,
The errors in FileSupport.c all have to do with defines that should be coming from NetCDF library header file: netcdf.h.
I think the most likely possibility is that you have an old version of netcdf.h somewhere in your include path ahead of the one
that belongs to your NetCDF4 build.
You could try searching through the directories on your IncSearch path:
> #define IncSearch -I/usr/include/X11 -I/usr/include -I/usr/lib/gcc/ia64-suse-lin
> ux/4.6/include -I/usr/include/linux -I/usr/local/include -I/DreamLand/JunqueYard
> /ncl_ncarg-6.1.2/ni/src/ncl -I/usr/local/include/freetype2 -I/GroomLake/HDF/HDF5
> /include -I/GroomLake/HDF/HDF4/include -I/GroomLake/netCDF/netCDF-4/include -I/G
> roomLake/unidata/include
or maybe just rearrange IncSearch put -I/GroomLake/netCDF/netCDF-4/include at the head of the pack.
Another possibility is that you built NetCDF without enabling NetCDF4 support. The configure line for NetCDF4 needs to include the option "--enable-netcdf-4".
Of course if you don't want NetCDF4 support you need to set BuildNetCDF4 to 0 in the Site.local file.
Hope this helps.
-dave
On Feb 26, 2014, at 12:32 PM, Bill.Glessner at cwu.EDU wrote:
>
> Good morning,
>
> I am trying to build NCL/NCARgraphics version 6.1.2 on an hp4640 ia64
> platform running SUSE Linux 11/SP2
>
> # uname -a
> Linux logopolis 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012
> (d73692b) ia64 ia64 ia64 GNU/Linux
>
> # gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/ia64-suse-linux/4.6/lto-wrapper
> Target: ia64-suse-linux
> Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/
> usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,f
> ortran --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6 --e
> nable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.o
> rg/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-
> slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocat
> or=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-
> suffix=-4.6 --enable-linux-futex --with-system-libunwind --build=ia64-suse-linux
> Thread model: posix
> gcc version 4.6.1 20110701 [gcc-4_6-branch revision 175746] (SUSE Linux)
>
> # g++ -v
> Using built-in specs.
> COLLECT_GCC=/usr/bin/g++
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/ia64-suse-linux/4.6/lto-wrapper
> Target: ia64-suse-linux
> Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/
> usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,f
> ortran --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6 --e
> nable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.o
> rg/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-
> slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocat
> or=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-
> suffix=-4.6 --enable-linux-futex --with-system-libunwind --build=ia64-suse-linux
> Thread model: posix
> gcc version 4.6.1 20110701 [gcc-4_6-branch revision 175746] (SUSE Linux)
>
> # gfortran -v
> Using built-in specs.
> COLLECT_GCC=gfortran
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/ia64-suse-linux/4.6/lto-wrapper
> Target: ia64-suse-linux
> Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/
> usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,f
> ortran --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6 --e
> nable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.o
> rg/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-
> slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocat
> or=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-
> suffix=-4.6 --enable-linux-futex --with-system-libunwind --build=ia64-suse-linux
> Thread model: posix
> gcc version 4.6.1 20110701 [gcc-4_6-branch revision 175746] (SUSE Linux)
>
> The FC, F77, F90 environemnt variables all reference the gfortran compiler.
>
> The build seems to complete successfully; however, in checking the
> make-output.out record of the build I find 4 instances where the module
> FileSupport.c failed with the following exception(s):
>
> (2 in the build/link part and 2 in the install part corresponding to those
> in the build/link part)
>
> in ./ncl_ncarg-6.1.2/ni/src/lib/nio
>
> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O -I../../../.././i
> nclude -I/usr/include/X11 -I/usr/include -I/usr/lib/gcc/1-suse-1/4.6/include -I/
> usr/include/1 -I/usr/local/include -I/DreamLand/JunqueYard/ncl_ncarg-6.1.2/ni/sr
> c/ncl -I/usr/local/include/freetype2 -I/GroomLake/HDF/HDF5/include -I/GroomLake/
> HDF/HDF4/include -I/GroomLake/netCDF/netCDF-4/include -I/GroomLake/unidata/inclu
> de -DLinux -DMAJOR=3 -DUSE_NETCDF4 -DBuildHDF5 -DBuildGRIB2 -D__64BIT__ -DN
> IO_LIB_ONLY -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncPro
> to -DNDEBUG -c -o FileSupport.o FileSupport.c
> FileSupport.c: In function b_NclVerifyFileb:
> FileSupport.c:2911:23: error: bNC_FORMAT_NETCDF4_CLASSICb undeclared (first use
> in this function)
> FileSupport.c:2911:23: note: each undeclared identifier is reported only once fo
> r each function it appears in
> FileSupport.c:2912:23: error: bNC_FORMAT_64BITb undeclared (first use in this fu
> nction)
> FileSupport.c:2913:23: error: bNC_FORMAT_CLASSICb undeclared (first use in this
> function)
> <builtin>: recipe for target 'FileSupport.o' failed
> make[5]: *** [FileSupport.o] Error 1
>
> in ./ncl_ncarg-6.1.2/ni/src/ncl
>
> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O -I../../.././incl
> ude -I/usr/include/X11 -I/usr/include -I/usr/lib/gcc/1-suse-1/4.6/include -I/usr
> /include/1 -I/usr/local/include -I/DreamLand/JunqueYard/ncl_ncarg-6.1.2/ni/src/n
> cl -I/usr/local/include/freetype2 -I/GroomLake/HDF/HDF5/include -I/GroomLake/HDF
> /HDF4/include -I/GroomLake/netCDF/netCDF-4/include -I/GroomLake/unidata/include
> -DLinux -DMAJOR=3 -DUSE_NETCDF4
> -DUSE_NETCDF4_FEATURES
> -DBuildHDF5 -DBuildGRIB2 -D__64BIT__
> -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -DNDEBU
> G -c -o FileSupport.o FileSupport.c
> FileSupport.c: In function b_NclVerifyFileb:
> FileSupport.c:2905:23: error: bNC_FORMAT_NETCDF4b undeclared (first use in this
> function)
> FileSupport.c:2905:23: note: each undeclared identifier is reported only once fo
> r each function it appears in
> FileSupport.c:2911:23: error: bNC_FORMAT_NETCDF4_CLASSICb undeclared (first use
> in this function)
> FileSupport.c:2912:23: error: bNC_FORMAT_64BITb undeclared (first use in this fu
> nction)
> FileSupport.c:2913:23: error: bNC_FORMAT_CLASSICb undeclared (first use in this
> function)
> <builtin>: recipe for target 'FileSupport.o' failed
> make[4]: *** [FileSupport.o] Error 1
>
>> From the ./config diretory
>
> # cat ./LINUX
> /*
> * Description: This file contains all the directives needed to
> * tell ymake how to build NCARG/NCL on a LINUX
> * system.
> *
> * The default version of this file assumes you are
> * using the GNU compilers, gcc and gfortran.
> *
> * You may need to modify it to change or include
> * options. You can also look at the other LINUX*
> * files in this directory for help on how to configure
> * this file.
> */
>
> #define HdfDefines -DIA64
> #define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
> #define ByteSwapped
> #define Cstatic
> #define Cdynamic
> #define CppCommand '/usr/bin/cpp -traditional'
> #define CCompiler gcc
> #define FCompiler gfortran
> #define CtoFLibraries -lgfortran -lm
> #define CcOptions -ansi -fPIC
> #define FcOptions -fPIC -fno-second-underscore
> #define XToolLibrary -lXt -lSM -lICE
> #define BuildShared NO
> #define XLibrary -lX11 -lXext
> #define ExtraExportFlags -rdynamic
>
> #define ArchRecLibSearch -L/usr/X11R6/lib64
> #define ArchRecIncSearch -I/usr/X11R6/include
>
> FC = $(F77)
>
> /*************** Redefine Macros from Rules ********************************/
>
> /*
> * Macro: MakeDir
> *
> * Description: This rule creates a directory - if a parent dir doesn't exist
> * it attempts to create it.
> */
> #ifndef MakeDir
> #define MakeDir(dir) @if (test ! -d dir); then ($(MKDIRHIER) dir); fi
> #endif
>
> # cat ./Site.local
> /*
> * This file was created by the Configure script.
> */
>
> #ifdef FirstSite
>
> #endif /* FirstSite */
>
>
> #ifdef SecondSite
>
> #define YmakeRoot /GroomLake/ncarg2nd
>
> #define NetCDFlib -lnetcdf
>
> #define LibSearch -L/usr/lib -L/usr/local/lib -L/GroomLake/HDF/HDF5/lib -L/Groom
> Lake/netCDF/netCDF-4/lib -L/GroomLake/unidata/lib
> #define IncSearch -I/usr/include/X11 -I/usr/include -I/usr/lib/gcc/ia64-suse-lin
> ux/4.6/include -I/usr/include/linux -I/usr/local/include -I/DreamLand/JunqueYard
> /ncl_ncarg-6.1.2/ni/src/ncl -I/usr/local/include/freetype2 -I/GroomLake/HDF/HDF5
> /include -I/GroomLake/HDF/HDF4/include -I/GroomLake/netCDF/netCDF-4/include -I/G
> roomLake/unidata/include
>
>
>
> #define BuildRasterHDF 0
> #define HDFlib
> #define BuildHDF4 0
> #define HDFlib
> #define BuildTRIANGLE 0
> #define BuildHDFEOS 0
> #define HDFEOSlib
> #define BuildHDFEOS5 0
> #define HDFEOS5lib
>
>
> #endif /* SecondSite */
>
> The command
>
> # make Everything >& ./make-outout.out &
>
> was used to do the build/link/install
>
> The test of the installation from the Install Docs was successful.
>
> I guess that my specific question is:
> "In which part of the NCL/NCARgraphics processing environment will the
> FileSupport.c compile failure manifest itself?" Can I get NCL/NCARgraphics
> to build/install without the FileSupport.c compile failure?
>
> I can provide the entire make-output.out and any other pieces of the local
> source build/istall procedure, if that would be more helpful.
>
> Thanks you for your assistance,
> Bill Glessner System programmer
> Central Washington University
> _______________________________________________
> 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