Re: [netcdf-hdf] compiling error

NOTE: The netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.

winthan <keshunli@xxxxxxxxx> writes:

> I used the following to configure the netcdf and hdf.ÃÂÂ
> ./configure
> --prefix=/usr/rmt_share/scratch95/w/wwinthan/pnetcdf/installnetcdf
> --enable-netcdf-4
> --with-hdf5=/apps/rhel5/graphics/x86_64/intel/11.1.038/hdf5-1.8.3p/
> --with-szlib=/apps/rhel5/graphics/x86_64/intel/11.1.038/hdf5-1.8.3p/
> --disable-f90
> i have previously installed hdf5 with parallel mode and also with szlib.
> i attached the config.log. can you tell me what i'm missing?
> if needed,i can also install the hdf5 and szlib again. can you help me
> with how to configure ?
> after i make all,i get the following error
> make ÃÂÂall-recursive
> make[1]: Entering directory
> `/usr/rmt_share/scratch95/w/wwinthan/pnetcdf/netcdf-4.0.1'
> Making all in fortran
> make[2]: Entering directory
> `/usr/rmt_share/scratch95/w/wwinthan/pnetcdf/netcdf-4.0.1/fortran'
> make ÃÂÂall-am
> make[3]: Entering directory
> `/usr/rmt_share/scratch95/w/wwinthan/pnetcdf/netcdf-4.0.1/fortran'
> depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> ÃÂÂÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ/bin/sh ../libtool --tag=CC ÃÂÂ --mode=compile mpicc 
> -DHAVE_CONFIG_H
> -I. -I.. ÃÂÂ -I../libsrc4
> -I/apps/rhel5/graphics/x86_64/intel/11.1.038/hdf5-1.8.3p//include ÃÂÂ ÃÂÂ -g
> -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o fort-attio.lo
> fort-attio.c &&\
> ÃÂÂÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂmv -f $depbase.Tpo $depbase.Plo
> libtool: compile: ÃÂÂmpicc -DHAVE_CONFIG_H -I. -I.. -I../libsrc4
> -I/apps/rhel5/graphics/x86_64/intel/11.1.038/hdf5-1.8.3p//include -g -O2
> -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o
> fort-attio.o
> icc: command line warning #10120: overriding '-O3' with '-O2'
> cfortran.h(138): catastrophic error: #error directive: "cfortran.h: ÃÂÂCan't
> find your environment among: ÃÂÂ ÃÂÂ- MIPS cc and f77 2.0. (e.g. Silicon
> Graphics, DECstations, ...) ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ - IBM AIX XL C and FORTRAN
> Compiler/6000 Version 01.01.0000.0000 ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ - VAX ÃÂÂ VMS CC 3.1 and
> FORTRAN 5.4. ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ ÃÂÂ 
> ÃÂÂ ÃÂÂ ÃÂÂ- Alpha VMS DEC C 1.3

Sorry, I couldn't quite read your output - too much gobbledy-goop. But
when building with parallel you need to set the CPPFLAGS=-DgFortran.

(If you are not using gfortran, you can also try -Df2cFortran or
-DpgiFortran. One of these three works for almost any fortran compiler.)

Also note that all component parts (HDF5, zlib, and szlib, if you are
using it) must be built with the same C compiler command, usually
"mpicc". Also hdf5 requires the --enable-parallel option.

Good luck,

Ed
-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-hdf archives: