Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mfleduc opened this issue May 30, 2023 · 0 comments

Comments

@mfleduc
Copy link

mfleduc commented May 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant