[ncl-install] build ncl5.1.1 from source code for an Linux ppc64 system

Mary Haley haley at ucar.edu
Tue Jul 6 07:33:36 MDT 2010


This looks like an issue with building HDF4.2r4.

Please try building the latest version, hdf-4.2.5.

Note also that your HDF build is configured to use "g77" and not "xlf".
If you want "xlf" to be used, you should set FC and also F90 like
you did CC.

There's not enough information to go on here, because I don't know
if your HDF build was successful. It looks like it wasn't. given the  
error
you got later from hdfi.h.

This is something that you should write to the HDF folks about. The HDF
folks should be able to suggest the correct set of options to use for
building this software.

--Mary


On Jul 4, 2010, at 9:27 PM, <weim at cma.gov.cn> <weim at cma.gov.cn> wrote:

> Hello,
>
> I try  to build ncl5.1.1 from source code for an Linux ppc64  system.
> uname -a :
> Linux node01 2.6.9-42.EL #1 SMP Wed Jul 12 23:22:51 EDT 2006 ppc64  
> ppc64 ppc64 GNU/Linux
>
> gcc --version :
> gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There  
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
> PURPOSE.\
>
> gfortran --version
> GNU Fortran 95 (GCC) 4.1.0 20060515 (Red Hat 4.1.0-18)
> Copyright (C) 2006 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
>
> xlc -qversion
> IBM XL C/C++ Advanced Edition V8.0 for Linux
> Version: 08.00.0000.0001
>
>  xlf -qversion
> IBM XL Fortran Advanced Edition V10.1 for Linux
> Version: 10.01.0000.0001
>
> 1.  First, I install the HDF4.2r4 from source code,
> export CC=xlc
> export CXX=xlC
> export CPP=cpp
> ./configure --prefix=/data/hxf/wp/code/weimin/HDF4.2r4 --with-szip=/ 
> data/hxf/wp/code/weimin/szip-2.1 --disable-shared --with-zlib=/u
> sr/lib --with-jpeg=/data/hxf/wp/code/weimin/jpeg-6b
>
> the configure information as follow:
>
>  Configure Summary
>                        =================
>
> Compiling Options:
> ------------------
>                Compilation Mode:  Default
>                      C Compiler:  xlc
>                          CFLAGS:   -O
>                        CPPFLAGS:  -I/usr/include/rpc  -I/usr/lib/ 
> include -I/data/hxf/wp/code/weimin/jpeg-6b/include
>                         LDFLAGS:   -L/usr/lib/lib -L/data/hxf/wp/ 
> code/weimin/jpeg-6b/lib
>                Shared Libraries:  no
>                Static Libraries:  yes
>
> Languages:
> ----------
>                         Fortran:  Yes
>                Fortran Compiler:  g77
>                          FFLAGS:   -Wsign-compare -O3 -fomit-frame- 
> pointer
>
> Features:
> ---------
>                SZIP compression:  disabled
>
> HDF support for NetCDF-3 APIs:
> ------------------------------
>                     HDF4-NetCDF:  Yes
>
> 2. Second, make
> make
> Making all in hdf
> make[1]: Entering directory `/data/hxf/wp/code/weimin/HDF4.2r4-src/ 
> hdf'
> Making all in src
> make[2]: Entering directory `/data/hxf/wp/code/weimin/HDF4.2r4-src/ 
> hdf/src'
> make  all-am
> make[3]: Entering directory `/data/hxf/wp/code/weimin/HDF4.2r4-src/ 
> hdf/src'
> source='atom.c' object='atom.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../../bin/depcomp \
> /bin/sh ../../libtool --tag=CC   --mode=compile xlc -DHAVE_CONFIG_H - 
> I.   -I/usr/include/rpc  -I/usr/lib/include -I/data/hxf/wp/code/ 
> weimin/jpeg-6b/include   -O -c -o atom.lo atom.c
> libtool: compile:  xlc -DHAVE_CONFIG_H -I. -I/usr/include/rpc -I/usr/ 
> lib/include -I/data/hxf/wp/code/weimin/jpeg-6b/include -O -c atom.c - 
> o atom.o
> "hdfi.h", line 1460.1: 1506-166 (S) Definition of function No  
> requires parentheses.
> "hdfi.h", line 1460.4: 1506-276 (S) Syntax error: possible missing  
> '{'?
> "hdf.h", line 26.7: 1506-045 (S) Undeclared identifier uint16.
> "hdf.h", line 29.1: 1506-273 (E) Missing type in declaration of DFdi.
> "hdf.h", line 134.9: 1506-166 (S) Definition of function int32  
> requires parentheses.
> "hdf.h", line 134.15: 1506-276 (S) Syntax error: possible missing '{'?
> "hbitio.h", line 35.7: 1506-045 (S) Undeclared identifier int32.
> "hbitio.h", line 40.18: 1506-045 (S) Undeclared identifier max_offset.
> "hbitio.h", line 41.18: 1506-045 (S) Undeclared identifier  
> byte_offset.
> "hbitio.h", line 43.18: 1506-275 (S) Unexpected text count  
> encountered.
> "hbitio.h", line 43.7: 1506-045 (S) Undeclared identifier intn.
> "hbitio.h", line 45.19: 1506-275 (S) Unexpected text access  
> encountered.
> "hbitio.h", line 45.7: 1506-045 (S) Undeclared identifier uint8.
> "hbitio.h", line 46.19: 1506-275 (S) Unexpected text mode encountered.
> "hbitio.h", line 47.19: 1506-275 (S) Unexpected text bits encountered.
> "hbitio.h", line 48.19: 1506-045 (S) Undeclared identifier bytep.
> "hbitio.h", line 49.19: 1506-045 (S) Undeclared identifier bytez.
> "hbitio.h", line 50.19: 1506-045 (S) Undeclared identifier bytea.
> "hbitio.h", line 52.1: 1506-273 (E) Missing type in declaration of  
> bitrec_t.
> "hbitio.h", line 57.7: 1506-166 (S) Definition of function uint8  
> requires parentheses.
> "hbitio.h", line 57.13: 1506-276 (S) Syntax error: possible missing  
> '{'?
> "hcomp.h", line 33.7: 1506-045 (S) Undeclared identifier  
> COMP_MODEL_STDIO.
> "hcomp.h", line 35.1: 1506-273 (E) Missing type in declaration of  
> comp_model_t.
> "hcomp.h", line 62.8: 1506-166 (S) Definition of function uint16  
> requires parentheses.
> "hcomp.h", line 62.15: 1506-276 (S) Syntax error: possible missing  
> '{'?
> "hcomp.h", line 85.9: 1506-007 (S) "struct {...}" is undefined.
> "hcomp.h", line 92.1: 1506-273 (E) Missing type in declaration of  
> model_info.
> "hcomp.h", line 99.13: 1506-046 (S) Syntax error.
> "hcomp.h", line 111.13: 1506-046 (S) Syntax error.
> make[3]: *** [atom.lo] Error 1
> make[3]: Leaving directory `/data/hxf/wp/code/weimin/HDF4.2r4-src/ 
> hdf/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/data/hxf/wp/code/weimin/HDF4.2r4-src/ 
> hdf/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/data/hxf/wp/code/weimin/HDF4.2r4-src/hdf'
> make: *** [all-recursive] Error 1
>
>
>
>
> Thanks in advance for your help.
>
> Wei Min
> National Meteorological Information Centre, CMA, China
> _______________________________________________
> 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