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

[netCDF #WZI-174080]: unrecognized options: unable-netcdf-4 and more (netcdf-fortran)



The issue, I believe, is that you are compiling with gfortran instead of 
mpifort.  Try assigning FC=mpifort and see if this corrects the issue.

Thanks!

-Ward

> Hi,
> 
> I understand that. But my problem it is when I do my "make check". I get this 
> error:
> 
> > % =======================
> > ...
> > gfortran -DHAVE_CONFIG_H -I. -I.. -I../libsrc  -I../fortran -I../fortran 
> > -I/home/asouza/libraries/hdf5/include/ 
> > -I/home/asouza/libraries/netcdf-c/include -I../fortran  -g -O2 -c -o 
> > f90tst_parallel.o f90tst_parallel.F90
> > f90tst_parallel.F90:43: Error: Can't open included file 'mpif.h'
> > Makefile:1337: recipe for target 'f90tst_parallel.o' failed
> > make[2]: *** [f90tst_parallel.o] Error 1
> > make[2]: Leaving directory '/home/asouza/nemo-ersem/netcdf-fortran/nf_test'
> > Makefile:1875: recipe for target 'check-am' failed
> > make[1]: *** [check-am] Error 2
> > make[1]: Leaving directory '/home/asouza/nemo-ersem/netcdf-fortran/nf_test'
> > Makefile:545: recipe for target 'check-recursive' failed
> > make: *** [check-recursive] Error 1
> > % =======================
> 
> 
> 
> MarÃa Yesenia Torres HernÃndez
> 
> 
> --"En fin, atrÃvete y verÃs cÃmo los riachuelos se convierten en grandes 
> afluentes"--
> --------Sony Labou Tansi-------
> ________________________________
> De: Unidata netCDF Support <address@hidden>
> Enviado: lunes, 25 de marzo de 2019 15:43
> Para: Maria Yesenia Torres Hernandez
> Cc: address@hidden
> Asunto: [netCDF #WZI-174080]: unrecognized options: unable-netcdf-4 and more 
> (netcdf-fortran)
> 
> When building netcdf-fortran, you do not need to specify
> any of the flags --disable-dap, --disable-dap-remote-tests,
> or --enable-netcdf-4. Those will have been taken care of when
> you build netcdf-c.
> 
> > Package Version: Netcdf-fortran-4.4.5
> > Operating System: Ubuntu 18.04
> > Hardware:
> > Description of problem: Hi,
> >
> > I have successfully built the netcdf-c (v-4.6.3) when I've tried to install 
> > netCDF- fortran (v-4.4.5 and I tried with v-4.4.4) with my configure:
> >
> > % ====================
> > export CC=mpicc
> > export CXX=mpicxx
> >
> > CPPFLAGS='-I/home/asouza/libraries/hdf5/include/ 
> > -I/home/asouza/libraries/netcdf-c/include' 
> > LDFLAGS='-L/home/asouza/libraries/hdf5/lib 
> > -L/home/asouza/libraries/netcdf-c/lib' ./configure --disable-dap 
> > --disable-dap-remote-tests --enable-netcdf-4 --enable-shared 
> > --enable-parallel-tests --prefix=/home/asouza/libraries/netcdf-fortran
> >
> > % =======================
> >
> > I had this warning:
> >
> > % =======================
> > configure: WARNING: unrecognized options: --disable-dap, 
> > --disable-dap-remote-tests, --enable-netcdf-4
> > % =======================
> >
> > so, when I do the "make" and "make check"" I have this error:
> >
> > % =======================
> > ...
> > gfortran -DHAVE_CONFIG_H -I. -I.. -I../libsrc  -I../fortran -I../fortran 
> > -I/home/asouza/libraries/hdf5/include/ 
> > -I/home/asouza/libraries/netcdf-c/include -I../fortran  -g -O2 -c -o 
> > f90tst_parallel.o f90tst_parallel.F90
> > f90tst_parallel.F90:43: Error: Can't open included file 'mpif.h'
> > Makefile:1337: recipe for target 'f90tst_parallel.o' failed
> > make[2]: *** [f90tst_parallel.o] Error 1
> > make[2]: Leaving directory '/home/asouza/nemo-ersem/netcdf-fortran/nf_test'
> > Makefile:1875: recipe for target 'check-am' failed
> > make[1]: *** [check-am] Error 2
> > make[1]: Leaving directory '/home/asouza/nemo-ersem/netcdf-fortran/nf_test'
> > Makefile:545: recipe for target 'check-recursive' failed
> > make: *** [check-recursive] Error 1
> > % =======================
> >
> > How can I resolved this?
> >
> > My pre-requisites:
> >
> > HDF5-version 1.10.5
> > zlib-version 1.2.11
> > MPICH and gfortran
> > Ubuntu 18.04
> >
> > (add my nc-config.in and configure of netcdf-c)
> >
> >
> 
> =Dennis Heimbigner
> Unidata
> 
> 
> Ticket Details
> ===================
> Ticket ID: WZI-174080
> Department: Support netCDF
> Priority: Normal
> Status: Open
> ===================
> NOTE: All email exchanges with Unidata User Support are recorded in the 
> Unidata inquiry tracking system and then made publicly available through the 
> web.  If you do not want to have your interactions made available in this 
> way, you must let us know in each email you send to us.
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: WZI-174080
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.



NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.