https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117258
--- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to David Binderman from comment #2) > I had a quick look: > > BUILD $ find elk* -name libxcifc.f90 -print > elk-9.2.12/src.orig/libxcifc.f90 > elk-9.2.12/src/libxcifc.f90 > BUILD $ find elk-9.2.12 -name xc_f03_lib_m.mod -print > BUILD $ > > So where should this file be ? I am not a FORTRAN programmer. There should be another file that contains that module with header: module xc_f03_lib_m ... end module Without having a testcase that resolves all module references it is impossible to see what is going on.