[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #WHC-184184]: (No Subject)
- Subject: [netCDF #WHC-184184]: (No Subject)
- Date: Mon, 08 Jun 2015 09:24:57 -0600
Dan,
> I got there in the end. I added the path to the mpif77 compiler to the
> configure command and the make check succeeded and the install looks to have
> gone through. I changed the below commands to:
>
> CC=/usr/local/bin/mpicc FC=/usr/local/bin/mpif90 F77=/usr/local/bin/mpif77
> CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
> --prefix=/usr/local --disable-fortran-type-check.
Thanks for letting us know what worked. I didn't know mpif77 has to
be specified for a Fortran parallel build, so I'll add that to the docs ...
--Russ
> ------------------------------------------------------------------------------------------------------------
> Daniel Potter
> PhD Student
> Room B46 LEC 3
> Lancaster Environmental Centre
>
> ________________________________________
> From: Potter, Dan
> Sent: 05 June 2015 10:33
> To: address@hidden
> Subject: RE: [netCDF #WHC-184184]: (No Subject)
>
> Hi Russ,
>
> So I have run into a problem with the build. I am getting the following error
> output:
>
> Making check in nf_test
> make[1]: Entering directory `/home/dan/netcdf-fortran-4.4.2/nf_test'
> make nf_test tst_f77_v2 ftst_vars ftst_vars2 ftst_vars3 ftst_vars4
> ftst_vars5 ftst_vars6 ftst_types ftst_types2 ftst_types3 ftst_groups
> ftst_path ftst_rengrps f90tst_vars tst_types tst_types2 f90tst_vars_vlen
> tst_f90_nc4 f90tst_grps f90tst_fill f90tst_fill2 f90tst_vars3 f90tst_vars4
> f90tst_vars2 f90tst_path f90tst_rengrps ftst_v2 ftest tst_f90
> make[2]: Entering directory `/home/dan/netcdf-fortran-4.4.2/nf_test'
> /bin/bash ../libtool --tag=F77 --mode=link -I../fortran -I../fortran
> -L/usr/local/lib -o nf_test f03lib_f_interfaces.o test_get.o test_put.o
> nf_error.o nf_test.o test_read.o test_write.o util.o f03lib.o
> ../fortran/libnetcdff.la -lnetcdf
> Usage: /home/dan/netcdf-fortran-4.4.2/libtool [OPTION]... [MODE-ARG]...
> Try 'libtool --help' for more information.
> libtool: error: unrecognised option: '-I../fortran'
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory `/home/dan/netcdf-fortran-4.4.2/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/home/dan/netcdf-fortran-4.4.2/nf_test'
> make: *** [check-recursive] Error 1
>
> My input up to this point has been:
>
> CC=/usr/local/bin/mpicc FC=/usr/local/bin/mpif90
> CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
> --prefix=/usr/local --disable-fortran-type-check
> make check
>
> Cheers,
> Dan
>
> ------------------------------------------------------------------------------------------------------------
> Daniel Potter
> PhD Student
> Room B46 LEC 3
> Lancaster Environmental Centre
>
> ________________________________________
> From: Unidata netCDF Support [address@hidden]
> Sent: 04 June 2015 16:32
> To: Potter, Dan
> Cc: address@hidden
> Subject: [netCDF #WHC-184184]: (No Subject)
>
> Hi Dan,
>
> Here is the documentation for building the netCDF-Fortran library. Please
> let us
> know if you have problems with it or it's not clear:
>
> http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html
>
> --Russ
>
> > regarding my previous problem, I fixed that. I had compiled my HDF5 library
> > using mpicc so I configured like so:
> >
> > CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
> > CC=/usr/local/bin/mpicc ./configure --prefix=/usr/local/ --enable-parallel
> >
> > and the library built just fine. I have just noticed now that the commands
> > I sent earlier I copy and pasted the wrong command for uncompressing my
> > download. However, I have now run into an issue with the build for the
> > netcdf-fortran build. There is no documentation to assist with the build so
> > I am going at it blind. I tried the same command more or less:
> >
> > CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
> > FC=/usr/local/bin/mpif90 F90=/usr/local/bin/mpif90
> > F77=/usr/local/bin/mpif77 CC=/usr/local/bin/mpicc ./configure
> > --prefix=/usr/local/ --enable-parallel
> >
> > but make check fails and gives the following error:
> >
> > Error: Symbol 'nf_endian_big' at (1) has no IMPLICIT type
> > ftst_vars.F:98.63:
> >
> > retval = nf_def_var_fletcher32(ncid, varid, NF_FLETCHER32)
> > 1
> > Error: Symbol 'nf_fletcher32' at (1) has no IMPLICIT type
> > ftst_vars.F:81.48:
> >
> > retval = nf_def_var(ncid, "data", NF_INT64, NDIMS, dimids, varid)
> > 1
> > Error: Symbol 'nf_int64' at (1) has no IMPLICIT type
> > ftst_vars.F:69.46:
> >
> > retval = nf_create(FILE_NAME, NF_NETCDF4, ncid)
> > 1
> > Error: Symbol 'nf_netcdf4' at (1) has no IMPLICIT type
> > ftst_vars.F:56.15:
> >
> > retval = nf_set_chunk_cache(CACHE_SIZE, CACHE_NELEMS,
> > 1
> > Error: Function 'nf_set_chunk_cache' at (1) has no IMPLICIT type
> > ftst_vars.F:61.15:
> >
> > retval = nf_get_chunk_cache(cache_size_in, cache_nelems_in,
> > 1
> > Error: Function 'nf_get_chunk_cache' at (1) has no IMPLICIT type
> > ftst_vars.F:87.15:
> >
> > retval = nf_def_var_chunking(ncid, varid, 0, chunks)
> > 1
> > Error: Function 'nf_def_var_chunking' at (1) has no IMPLICIT type
> > ftst_vars.F:96.15:
> >
> > retval = nf_def_var_deflate(ncid, varid, 0, 1, 4)
> > 1
> > Error: Function 'nf_def_var_deflate' at (1) has no IMPLICIT type
> > ftst_vars.F:102.15:
> >
> > retval = nf_inq_var_deflate(ncid, varid, shuffle, deflate,
> > 1
> > Error: Function 'nf_inq_var_deflate' at (1) has no IMPLICIT type
> > ftst_vars.F:107.15:
> >
> > retval = nf_inq_var_fletcher32(ncid, varid, checksum)
> > 1
> > Error: Function 'nf_inq_var_fletcher32' at (1) has no IMPLICIT type
> > ftst_vars.F:110.15:
> >
> > retval = nf_inq_var_chunking(ncid, varid, contiguous, chunks_in)
> > 1
> > Error: Function 'nf_inq_var_chunking' at (1) has no IMPLICIT type
> > ftst_vars.F:115.15:
> >
> > retval = nf_inq_var_endian(ncid, varid, endianness)
> > 1
> > Error: Function 'nf_inq_var_endian' at (1) has no IMPLICIT type
> > ftst_vars.F:141.15:
> >
> > retval = nf_inq_var_deflate(ncid, varid, shuffle, deflate,
> > 1
> > Error: Function 'nf_inq_var_deflate' at (1) has no IMPLICIT type
> > ftst_vars.F:146.15:
> >
> > retval = nf_inq_var_fletcher32(ncid, varid, checksum)
> > 1
> > Error: Function 'nf_inq_var_fletcher32' at (1) has no IMPLICIT type
> > ftst_vars.F:149.15:
> >
> > retval = nf_inq_var_chunking(ncid, varid, contiguous, chunks_in)
> > 1
> > Error: Function 'nf_inq_var_chunking' at (1) has no IMPLICIT type
> > ftst_vars.F:154.15:
> >
> > retval = nf_inq_var_endian(ncid, varid, endianness)
> > 1
> > Error: Function 'nf_inq_var_endian' at (1) has no IMPLICIT type
> > make[2]: *** [ftst_vars.o] Error 1
> > make[2]: Leaving directory `/home/dan/netcdf-fortran-4.4.2/nf_test'
> > make[1]: *** [check-am] Error 2
> > make[1]: Leaving directory `/home/dan/netcdf-fortran-4.4.2/nf_test'
> > make: *** [check-recursive] Error 1
> >
> > Any ideas? Or is there any documentation out there to assist with the build
> > of the fortran library?
> >
> > Cheers,
> > Dan
> >
> > ------------------------------------------------------------------------------------------------------------
> > Daniel Potter
> > PhD Student
> > Room B46 LEC 3
> > Lancaster Environmental Centre
> >
> > ________________________________________
> > From: Potter, Dan
> > Sent: 03 June 2015 11:41
> > To: address@hidden
> > Subject:
> >
> > Hi there,
> >
> > I am trying to build netcdf but have run into an issue which suggests
> > sending the attached file to this address. The commands I have entered to
> > this point have been:
> >
> > gunzip < netcdf-fortran-4.4.2.tar.gz | tar xf -
> > cd netcdf-4.3.3.1
> > CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
> > --prefix=/usr/local/
> > make check
> >
> > I am using Linux Mint 17.1.
> >
> > Cheers,
> > Dan
> >
> > ------------------------------------------------------------------------------------------------------------
> > Daniel Potter
> > PhD Student
> > Room B46 LEC 3
> > Lancaster Environmental Centre
> >
>
> Russ Rew UCAR Unidata Program
> address@hidden http://www.unidata.ucar.edu
>
>
>
> Ticket Details
> ===================
> Ticket ID: WHC-184184
> Department: Support netCDF
> Priority: Normal
> Status: Closed
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: WHC-184184
Department: Support netCDF
Priority: Normal
Status: Closed