Unidata / netcdf-fortran

Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
Other
237 stars 95 forks source link

In make check: Linking not done and linker file not found error in version 4.6.0 #402

Open mfleduc opened 1 year ago

mfleduc commented 1 year ago

On windows 11.

The log file is attached. make check gets through libsrc without issues, but in the fortran directory gfortran gives the warning :linker file unused because linking not done" and then the error

error: typeSizes.o: linker input file not found: No such file or directory

I have been unable to resolve this on my own. All I can find suggests that this is an issue with using the -c and -o flags together, however I was unable to resolve the issue that way (see second log file where I removed the -c flag) and it seems like the ./configure command checks to make sure that works correctly anyway. Any help?

I have also included the config.log file and the make file in the /fortran directory.

To be clear: Removing the -c flag in lines 758-765 of the make file changes the issue slightly: Now the issue is just that the .o files are never created and the warning goes away.

In addition, if I manually compile the code using the command gfortran -c typeSizes.F90, both files are generated and when I run make check again, it fails on the next .f90 file, which is module_netcdf_nc_data.F90. However, attempting to run gfortran on that leads to an error as well, given by "Symbol 'c_ptrdiff_t' at (1) conflicts with symbol from module '__iso_c_binding', use-associated at (2)"

logfile.txt logfile_removed_c_flag.txt config.log Makefile_fortrandir.txt