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

[netCDF #TJN-278511]: Check Fail -- Building NetCDF Fortran Libs in Minimal Ubuntu Container



Hi Colin,

Thanks for your patience.  Do you have the `config.log` file generated when you 
ran `configure`? There should be a compiler specified between `../libtool` and 
`--tag=F77`.  Typically this indicates that either the `F77` or `FC` 
environmental variables needs to be defined to specify the compiler you are 
using.  For example, if you're using `gfortran`, you'd want to run configure as 
follows:

    $ FC=gfortran ./configure [configure options for netCDF-Fortran you 
typically use]

If this doesn't fix the issue, let me know; if you provide the `config.log` I 
should be able to try to replicate and fix the issue.  

Thanks! Have a great day,

-Ward

> Dear Support,
> 
> I'm writing because I seem to have an issue in building NetCDF Fortran
> libraries in a minimal Ubuntu containerized environment
> <https://github.com/CW3E/MET-tools/blob/develop/docs/convert_mpas.def>. I
> get an error at the point of running `make check` with the NetCDF Fortran
> download, at this line
> <https://github.com/CW3E/MET-tools/blob/418f18e999c43684b6c7afe68594f9aa6db57b62/docs/convert_mpas.def#L118>
> of my singularity definition file.  The error message is as follows:
> ```
> /bin/bash ../libtool  --tag=F77   --mode=link  -I../fortran
> -fallow-argument-mismatch  -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
> -lm
> Usage: /usr/local/netcdf-fortran-4.6.1/libtool [OPTION]... [MODE-ARG]...
> Try 'libtool --help' for more information.
> libtool:   error: unrecognised option: '-I../fortran'
> make[3]: *** [Makefile:822: nf_test] Error 1
> make[3]: Leaving directory '/usr/local/netcdf-fortran-4.6.1/nf_test'
> make[2]: *** [Makefile:1195: check-am] Error 2
> make[2]: Leaving directory '/usr/local/netcdf-fortran-4.6.1/nf_test'
> make[1]: *** [Makefile:1198: check] Error 2
> make[1]: Leaving directory '/usr/local/netcdf-fortran-4.6.1/nf_test'
> make: *** [Makefile:588: check-recursive] Error 1
> ```
> Nonetheless, when I run `make install` the NetCDF Fortran library does
> install and it appears that I am able to successfully build a working
> `convert_mpas` executable on top of this library in the final lines
> <https://github.com/CW3E/MET-tools/blob/418f18e999c43684b6c7afe68594f9aa6db57b62/docs/convert_mpas.def#L127>
> of the definition file.  I wanted to see if this error is something to be
> concerned about.  When I run my `convert_mpas` executable on top of this,
> it appears that I get valid results in a preliminary inspection, but it
> does throw a new warning that I haven't seen when I've built this in other
> contexts
> ```
> Note: The following floating-point exceptions are signalling:
> IEEE_INVALID_FLAG
> ```
> I have attached my config.log file in this message, thanks for your
> consideration and support.
> 
> Cheers,
> Colin
> --
> Colin James Grudzien <https://cgrudz.github.io> (He/Him/His)
> Senior Data Assimilation Scientist
> 
> 


Ticket Details
===================
Ticket ID: TJN-278511
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with NSF 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.