This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Incorrect module file format in Fortran netCDF package
- From: marco atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 04 Oct 2013 10:57:00 +0200
- Subject: Re: Incorrect module file format in Fortran netCDF package
- Authentication-results: sourceware.org; auth=none
- References: <A4BDD8E3859F92478F09D5AACD6D79C0956EEFB9 at welwexmb01 dot niwa dot local> <A4BDD8E3859F92478F09D5AACD6D79C0956EF060 at welwexmb01 dot niwa dot local>
Il 10/4/2013 6:32 AM, Mark Hadfield ha scritto:
There's a second issue. In the output of "/usr/bin/nf-config --all" (below) a -no-undefined option is printed. This is not a valid option for gfortran.
With these two issues fixed I can compile and link Fortran 90 programs that use the netCDF Fortran interface.
---------------------------------------------
$ /usr/bin/nf-config --all
This netCDF-Fortran 4.2 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/include
--libs -> -L/usr/lib -no-undefined -lnetcdf -lnetcdf
--fc -> gfortran
--fflags -> -g -O2 -pipe -I/usr/include
--flibs -> -L/usr/lib -lnetcdff -no-undefined -lnetcdf -lnetcdf
--has-f90 -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--prefix -> /usr
--includedir-> /usr/include
--version -> netCDF-Fortran 4.2
Dr Mark Hadfield
Noted.
I will rebuild the package reusing the configuration used on
cygwin 64 bit package.
$ /usr/bin/nf-config --all
This netCDF-Fortran 4.2 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/include
--libs -> -L/usr/lib -lnetcdf -lnetcdf
--fc -> gfortran
--fflags -> -ggdb -O2 -pipe
-fdebug-prefix-map=/pub/devel/netcdf/netcdf-fortran-4.2-2/build=/usr/src/debug/netcdf-fortran-4.2-2
-fdebug-prefix-map=/pub/devel/netcdf/netcdf-fortran-4.2-2/src/netcdf-fortran-4.2=/usr/src/debug/netcdf-fortran-4.2-2
-I/usr/include
--flibs -> -L/usr/lib -lnetcdff -lnetcdf -lnetcdf
--has-f90 -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--prefix -> /usr
--includedir-> /usr/include
--version -> netCDF-Fortran 4.2
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple