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

[Support #STV-915256]: Problems building netcdf



> Hi,
> 
> so I've tried the following. I build a fresh hdf5 for
> sun including the fortran interface, switched to the netcdf source
> and tried the same settings:
> 
> # building HDF5 with
> #
> export CPPFLAGS="-D__FUNCTION__=__func__ -DsunFortran"
> export CC=suncc
> export FC=sunf90
> export F90=sunf90
> export CXX=sunCC
> export CFLAGS=-fast
> export FFLAGS="-dalign -fast"
> export FCFLAGS="-dalign -fast"
> #
> ./configure --enable-fortran --enable-shared --enable-cxx\
> --prefix=/usr/local/apps/hdf/hdf5_sun
> 
> make -j6
> make check
> make install

Gutentag Peer-Joachim!

First, a couple of comments about your HDF5 build. The HDF5 fortran API is not 
used by netCDF - all calls to HDF5 are directly to the HDF5 C API, even if you 
are using the netCDF F90 API. So the way that the HDF5 fortran API is built (or 
if it is built at all) does not matter to netCDF.

But I notice you don't specify --with-zlib=/some/location when building HDF5. 
If I don't do this, the netCDF build doesn't work for me, because the zlib 
functions of HDF5 are not present. How come this doesn't happen to you?

> 
> # for netcdf use the above - same shell
> make distclean
> 
> ./configure --enable-shared --enable-separate-fortran\
> --prefix=/usr/local/apps/hdf/hdf5_sun\
> --prefix=/usr/local/apps/netcdf/4.1.1_sun

Why are you specifying the prefix twice, and --with-hdf5= not at all? Could 
this be a typo?


> 
> make
> make check
> ...
> *** testing ncvgt1 ...
> *** testing ncvpt ...
> *** testing ncopn, ncinq, ncdinq, ncvinq, ncanam, ncainq ...
> *** testing ncvgt, ncvgtc ...
> *** testing ncagt, ncagtc ...
> *** testing ncredf, ncdren, ncvren, ncaren, ncendf ...
> *** testing ncacpy ...
> *** testing ncadel ...
> *** testing fill values ...
> Total number of failures:  0
> *** SUCCESS!
> PASS: ftest
> 
> *** Testing netCDF-3 Fortran 90 API.
> NetCDF: Numeric conversion not representable
> STOP: 2
> FAIL: tst_f90
> ================================================
> 2 of 5 tests failed
> Please report to address@hidden
> ================================================
> make[2]: *** [check-TESTS] Fehler 1
> make[2]: Leaving directory
> `/Net/Groups/Services/LNX_Local64/SLES10/apps/netcdf/4.1.1_sun/nf_test'
> make[1]: *** [check-am] Fehler 2
> make[1]: Leaving directory
> `/Net/Groups/Services/LNX_Local64/SLES10/apps/netcdf/4.1.1_sun/nf_test'
> make: *** [check-recursive] Fehler 1
> 
> 

This is strange. Can you try building like this, and tell me if it works?

./configure --with-hdf5=/some/where --enable-logging --disable-cxx && make check

Set your CC, FC, and F77 environment variables to the names of your compilers. 
Don't see anything in CPPFLAGS. Let's see if that works.

Thanks,

Ed

Ticket Details
===================
Ticket ID: STV-915256
Department: Support netCDF
Priority: Normal
Status: Closed